import java.text.SimpleDateFormat def getCurrentTime() { return new Date().time } plugins { id 'com.android.application' id 'org.jetbrains.kotlin.android' id 'kotlin-kapt' id 'kotlinx-serialization' id 'com.alibaba.arouter' } ext { versionCode = Integer.parseInt(new SimpleDateFormat("yyMMddHH").format(new Date()) + 1) // versionCode=230617180 // brandCode="000B" brandCode = "083A" // model = "5037" model = "1039" } android { compileSdk 31 lintOptions { checkReleaseBuilds false } defaultConfig { applicationId "com.develop.foodcooking" minSdk 21 targetSdk 31 versionCode project.ext.versionCode versionName "${project.ext.model}.${project.ext.brandCode}.${project.ext.versionCode}" archivesBaseName = "cofar-cooking_${versionName}" javaCompileOptions { annotationProcessorOptions { arguments = ["room.schemaLocation": "$projectDir/schemas".toString()] } } ndk { abiFilters 'armeabi-v7a' } packagingOptions { pickFirst 'lib/armeabi-v7a/libc++_shared.so' } testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" kapt { arguments { arg("AROUTER_MODULE_NAME", project.getName()) arg("room.schemaLocation", "$projectDir/schemas".toString()) } } multiDexEnabled true } flavorDimensions "platform" productFlavors { brand000ATuya { manifestPlaceholders = [channelName: "brand000ATuya"] dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"normal\"") resValue("string", "app_theme", "@style/SplashTheme") buildConfigField("String", "model", "\"1039\"") buildConfigField("String", "brandCode", "\"000A\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") // buildConfigField("String", "appCode", "\"2.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand000BTuya { manifestPlaceholders = [channelName: "brand000BTuya"] dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"night\"") resValue("string", "app_theme", "@style/SplashTheme") buildConfigField("String", "model", "\"1039\"") buildConfigField("String", "brandCode", "\"000B\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") // buildConfigField("String", "appCode", "\"2.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand000A5037Tuya { manifestPlaceholders = [channelName: "brand000A5037Tuya"] dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"normal\"") resValue("string", "app_theme", "@style/SplashTheme") buildConfigField("String", "model", "\"5037\"") buildConfigField("String", "brandCode", "\"000A\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") // buildConfigField("String", "appCode", "\"2.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand000B5037Tuya { manifestPlaceholders = [channelName: "brand000B5037Tuya"] dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"night\"") resValue("string", "app_theme", "@style/SplashTheme") buildConfigField("String", "model", "\"5037\"") buildConfigField("String", "brandCode", "\"000B\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") // buildConfigField("String", "appCode", "\"2.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand000A5067Tuya { manifestPlaceholders = [channelName: "brand000A5067Tuya"] dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"normal\"") resValue("string", "app_theme", "@style/SplashTheme") buildConfigField("String", "model", "\"5067\"") buildConfigField("String", "brandCode", "\"000A\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") // buildConfigField("String", "appCode", "\"2.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand045ATuya { manifestPlaceholders = [channelName: "brand045ATuya"] dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"night\"") resValue("string", "app_theme", "@style/SplashThemeNotLogo") buildConfigField("String", "model", "\"5037\"") buildConfigField("String", "brandCode", "\"045A\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } // brand011ATuya { // dimension "platform" // applicationId "com.develop.foodcooking" // buildConfigField("String", "UpdatePlatform", "\"normal\"") // resValue("string", "app_theme", "@style/Splash007DTheme") // // } brand011ATuya { manifestPlaceholders = [channelName: "brand011ATuya"] dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"011\"") resValue("string", "app_theme", "@style/Splash011ATheme") buildConfigField("String", "model", "\"1039\"") buildConfigField("String", "brandCode", "\"011A\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand011A5037Tuya { manifestPlaceholders = [channelName: "brand011A5037Tuya"] dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"011\"") resValue("string", "app_theme", "@style/Splash011A5037Theme") buildConfigField("String", "model", "\"5037\"") buildConfigField("String", "brandCode", "\"011A\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") // buildConfigField("String", "appCode", "\"2.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand011DTuya { manifestPlaceholders = [channelName: "brand011DTuya"] dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"011\"") resValue("string", "app_theme", "@style/Splash011DTheme") buildConfigField("String", "model", "\"1039\"") buildConfigField("String", "brandCode", "\"011D\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand011FTuya { manifestPlaceholders = [channelName: "brand011FTuya"] dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"011\"") resValue("string", "app_theme", "@style/Splash011DTheme") buildConfigField("String", "model", "\"1039\"") buildConfigField("String", "brandCode", "\"011F\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand011ETuya { manifestPlaceholders = [channelName: "brand011ETuya"] dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"011\"") resValue("string", "app_theme", "@style/Splash011ETheme") buildConfigField("String", "model", "\"5037\"") buildConfigField("String", "brandCode", "\"011E\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand014ATuya { dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"normal\"") resValue("string", "app_theme", "@style/SplashThemeNotLogo") buildConfigField("String", "model", "\"1039\"") buildConfigField("String", "brandCode", "\"014A\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") // buildConfigField("String", "appCode", "\"2.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand017ATuya { dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"normal\"") resValue("string", "app_theme", "@style/Splash017Theme") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") // buildConfigField("String", "appCode", "\"2.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand030ATuya { dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"normal\"") resValue("string", "app_theme", "@style/SplashTheme") buildConfigField("String", "model", "\"1039\"") buildConfigField("String", "brandCode", "\"030A\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") // buildConfigField("String", "appCode", "\"2.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand029CTuya { manifestPlaceholders = [channelName: "brand029CTuya"] dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"normal\"") resValue("string", "app_theme", "@style/SplashThemeNotLogo") buildConfigField("String", "model", "\"1039\"") buildConfigField("String", "brandCode", "\"029C\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand029C5037Tuya { dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"normal\"") resValue("string", "app_theme", "@style/SplashThemeNotLogo") buildConfigField("String", "model", "\"5037\"") buildConfigField("String", "brandCode", "\"029C\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand036I { manifestPlaceholders = [channelName: "brand036I"] dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"036I\"") buildConfigField("String", "model", "\"1039\"") buildConfigField("String", "brandCode", "\"036I\"") resValue("string", "app_theme", "@style/SplashThemeNotLogo") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand036ITuya { dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"036I\"") resValue("string", "app_theme", "@style/SplashThemeNotLogo") buildConfigField("String", "model", "\"1039\"") buildConfigField("String", "brandCode", "\"036I\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand033FTuya { manifestPlaceholders = [channelName: "brand033FTuya"] dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"normal\"") resValue("string", "app_theme", "@style/SplashThemeNotLogo") buildConfigField("String", "model", "\"1039\"") buildConfigField("String", "brandCode", "\"033F\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") // buildConfigField("String", "appCode", "\"2.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand033ITuya { manifestPlaceholders = [channelName: "brand033ITuya"] dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"normal\"") resValue("string", "app_theme", "@style/SplashThemeNotLogo") buildConfigField("String", "model", "\"1039\"") buildConfigField("String", "brandCode", "\"033I\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") // buildConfigField("String", "appCode", "\"2.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand033KTuya { manifestPlaceholders = [channelName: "brand033KTuya"] dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"normal\"") resValue("string", "app_theme", "@style/SplashThemeNotLogo") buildConfigField("String", "model", "\"1039\"") buildConfigField("String", "brandCode", "\"033K\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") // buildConfigField("String", "appCode", "\"2.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand033HTuya { manifestPlaceholders = [channelName: "brand033HTuya"] dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"normal\"") resValue("string", "app_theme", "@style/SplashThemeNotLogo") buildConfigField("String", "model", "\"1039\"") buildConfigField("String", "brandCode", "\"033H\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") // buildConfigField("String", "appCode", "\"2.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand033GTuya { manifestPlaceholders = [channelName: "brand033GTuya"] dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"normal\"") resValue("string", "app_theme", "@style/SplashThemeNotLogo") buildConfigField("String", "model", "\"1039\"") buildConfigField("String", "brandCode", "\"033G\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") // buildConfigField("String", "appCode", "\"2.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand000A { dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"normal\"") resValue("string", "app_theme", "@style/SplashTheme") buildConfigField("String", "model", "\"1039\"") buildConfigField("String", "brandCode", "\"000A\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand010D { manifestPlaceholders = [channelName: "brand010D"] dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"night\"") resValue("string", "app_theme", "@style/Splash010DTheme") buildConfigField("String", "model", "\"1039\"") buildConfigField("String", "brandCode", "\"010D\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand010H { manifestPlaceholders = [channelName: "brand010H"] dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"normal\"") resValue("string", "app_theme", "@style/SplashThemeNotLogo") buildConfigField("String", "model", "\"1039\"") buildConfigField("String", "brandCode", "\"010H\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand010I { manifestPlaceholders = [channelName: "brand010I"] dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"normal\"") resValue("string", "app_theme", "@style/SplashThemeNotLogo") buildConfigField("String", "model", "\"1039\"") buildConfigField("String", "brandCode", "\"010I\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand010F { dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"night\"") resValue("string", "app_theme", "@style/Splash010DTheme") buildConfigField("String", "model", "\"1039\"") buildConfigField("String", "brandCode", "\"010F\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand010DUpdate { dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"night\"") resValue("string", "app_theme", "@style/Splash010DTheme") buildConfigField("String", "model", "\"1039\"") buildConfigField("String", "brandCode", "\"010D\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand010FUpdate { dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"night\"") resValue("string", "app_theme", "@style/Splash010DTheme") buildConfigField("String", "model", "\"1039\"") buildConfigField("String", "brandCode", "\"010F\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand025ATuya { manifestPlaceholders = [channelName: "brand025ATuya"] dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"night\"") resValue("string", "app_theme", "@style/SplashThemeNotLogo") buildConfigField("String", "model", "\"1039\"") buildConfigField("String", "brandCode", "\"025A\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") // buildConfigField("String", "appCode", "\"2.01\"") } brand030A { dimension "platform" applicationId "com.develop.foodcooking" resValue("string", "app_theme", "@style/SplashTheme") buildConfigField("String", "UpdatePlatform", "\"normal\"") buildConfigField("String", "model", "\"1039\"") buildConfigField("String", "brandCode", "\"030A\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand032DTuya { manifestPlaceholders = [channelName: "brand032DTuya"] dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"normal\"") resValue("string", "app_theme", "@style/Splash032DTheme") buildConfigField("String", "model", "\"1039\"") buildConfigField("String", "brandCode", "\"032D\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand032D { dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"normal\"") resValue("string", "app_theme", "@style/Splash032DTheme") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand032ETuya { manifestPlaceholders = [channelName: "brand032ETuya"] dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"normal\"") resValue("string", "app_theme", "@style/Splash032DTheme") buildConfigField("String", "model", "\"1039\"") buildConfigField("String", "brandCode", "\"032E\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand002DTuya { manifestPlaceholders = [channelName: "brand002DTuya"] dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"normal\"") resValue("string", "app_theme", "@style/Splash002DTheme") buildConfigField("String", "model", "\"1039\"") buildConfigField("String", "brandCode", "\"002D\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand007DTuya { dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"normal\"") resValue("string", "app_theme", "@style/Splash007DTheme") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand049BTuya { manifestPlaceholders = [channelName: "brand049BTuya"] dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"normal\"") resValue("string", "app_theme", "@style/SplashThemeNotLogo") buildConfigField("String", "model", "\"1039\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") buildConfigField("String", "brandCode", "\"049B\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand053A { manifestPlaceholders = [channelName: "brand053A"] dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"night\"") resValue("string", "app_theme", "@style/SplashThemeNotLogo") buildConfigField("String", "model", "\"1039\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") buildConfigField("String", "brandCode", "\"053A\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand054ATuya { manifestPlaceholders = [channelName: "brand054ATuya"] dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"011\"") resValue("string", "app_theme", "@style/Splash054ATheme") buildConfigField("String", "model", "\"1039\"") buildConfigField("String", "brandCode", "\"054A\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand054A5037Tuya { manifestPlaceholders = [channelName: "brand054A5037Tuya"] dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"011\"") resValue("string", "app_theme", "@style/Splash054ATheme") buildConfigField("String", "model", "\"5037\"") buildConfigField("String", "brandCode", "\"054A\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } brand058A { manifestPlaceholders = [channelName: "brand058A"] dimension "platform" applicationId "com.develop.foodcooking" resValue("string", "app_theme", "@style/Splash062ATheme") buildConfigField("String", "UpdatePlatform", "\"normal\"") buildConfigField("String", "model", "\"1039\"") buildConfigField("String", "brandCode", "\"058A\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") // buildConfigField("String", "appCode", "\"2.01\"") } brand062ATuya { manifestPlaceholders = [channelName: "brand062ATuya"] dimension "platform" applicationId "com.develop.foodcooking" resValue("string", "app_theme", "@style/Splash062ATheme") buildConfigField("String", "UpdatePlatform", "\"062A\"") buildConfigField("String", "model", "\"1039\"") buildConfigField("String", "brandCode", "\"062A\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") // buildConfigField("String", "appCode", "\"2.01\"") } brand063ATuya { dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"normal\"") resValue("string", "app_theme", "@style/SplashThemeNotLogo") buildConfigField("String", "model", "\"1039\"") buildConfigField("String", "brandCode", "\"063A\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") // buildConfigField("String", "appCode", "\"2.01\"") } brand063BTuya { manifestPlaceholders = [channelName: "brand063BTuya"] dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"normal\"") resValue("string", "app_theme", "@style/SplashThemeNotLogo") buildConfigField("String", "model", "\"1039\"") buildConfigField("String", "brandCode", "\"063B\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") // buildConfigField("String", "appCode", "\"2.01\"") } brand077ATuya { manifestPlaceholders = [channelName: "brand077ATuya"] dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"night\"") resValue("string", "app_theme", "@style/SplashThemeNotLogo") buildConfigField("String", "model", "\"1039\"") buildConfigField("String", "brandCode", "\"077A\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") // buildConfigField("String", "appCode", "\"2.01\"") } brand083ATuya { manifestPlaceholders = [channelName: "brand083ATuya"] dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"normal\"") resValue("string", "app_theme", "@style/SplashThemeNotLogo") buildConfigField("String", "model", "\"1039\"") buildConfigField("String", "brandCode", "\"083A\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") // buildConfigField("String", "appCode", "\"2.01\"") } brand083BTuya { manifestPlaceholders = [channelName: "brand083BTuya"] dimension "platform" applicationId "com.develop.foodcooking" buildConfigField("String", "UpdatePlatform", "\"normal\"") resValue("string", "app_theme", "@style/SplashThemeNotLogo") buildConfigField("String", "model", "\"1039\"") buildConfigField("String", "brandCode", "\"083B\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") // buildConfigField("String", "appCode", "\"2.01\"") } } // sourceSets { // main { // manifest.srcFile 'src/main/AndroidManifest.xml' // java.srcDirs = ['src/main/java'] // resources.srcDirs = ['src/main/resources'] // aidl.srcDirs = ['src/main/aidl'] // renderscript.srcDirs = ['src/maom'] // res.srcDirs = ['src/main/res'] // assets.srcDirs = ['src/main/assets'] // jniLibs.srcDir 'src/main/jniLibs' // } // // //用各自对应的资源文件路径 // brand011ATuya.res.srcDirs = ['src/main/res-zerooneone'] //// huawei.res.srcDirs = ['src/main/res-huawei'] // // // Move the tests to tests/java, tests/res, etc... // androidTest.setRoot('tests') // // Move the build types to build-types/ // // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... // // This moves them out of them default location under src//... which would // // conflict with src/ being used by the main source set. // // Adding new build types or product flavors should be accompanied // // by a similar customization. // debug.setRoot('build-types/debug') // release.setRoot('build-types/release') // } signingConfigs { debug { storeFile file('..\\signature\\rk.jks') storePassword '123456' keyAlias 'rk' keyPassword '123456' } foodCooking { storeFile file("..\\signature\\rk.jks") storePassword '123456' keyAlias 'rk' keyPassword '123456' } release { storeFile file('..\\signature\\rk.jks') storePassword '123456' keyAlias 'rk' keyPassword '123456' } } buildTypes { release { minifyEnabled false debuggable true productFlavors.brand010D.signingConfig signingConfigs.release productFlavors.brand029CTuya.signingConfig signingConfigs.release productFlavors.brand000ATuya.signingConfig signingConfigs.release productFlavors.brand030A.signingConfig signingConfigs.release productFlavors.brand011ATuya.signingConfig signingConfigs.release productFlavors.brand036ITuya.signingConfig signingConfigs.release productFlavors.brand030ATuya.signingConfig signingConfigs.release productFlavors.brand017ATuya.signingConfig signingConfigs.release productFlavors.brand036I.signingConfig signingConfigs.release productFlavors.brand000A.signingConfig signingConfigs.release productFlavors.brand045ATuya.signingConfig signingConfigs.release productFlavors.brand032DTuya.signingConfig signingConfigs.release productFlavors.brand032D.signingConfig signingConfigs.release productFlavors.brand063ATuya.signingConfig signingConfigs.release productFlavors.brand002DTuya.signingConfig signingConfigs.release proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } debug { debuggable true productFlavors.brand032DTuya.signingConfig signingConfigs.debug // buildConfigField("String", "UpdatePlatform", "\"054A\"") ////// buildConfigField("String", "FLAVOR", "\"brand054ATuya\"") // resValue("string", "app_theme", "@style/Splash054ATheme") // buildConfigField("String", "UpdatePlatform", "\"normal\"") // resValue("string", "app_theme", "@style/SplashTheme") // buildConfigField("String", "model", "\"1039\"") // buildConfigField("String", "brandCode", "\"017A\"") // //versionCode 1.01 指向bug修复,2.01指向功能变更 // buildConfigField("String", "appCode", "\"1.01\"") // buildConfigField("String", "appCode", "\"2.01\"") // resValue("string", "app_theme", "@style/SplashTheme") // buildConfigField("String", "UpdatePlatform", "\"normal\"") // buildConfigField("String", "model", "\"5037\"") // buildConfigField("String", "brandCode", "\"000A\"") // //versionCode 1.01 指向bug修复,2.01指向功能变更 // buildConfigField("String", "appCode", "\"1.01\"") //// buildConfigField("String", "appCode", "\"2.01\"") // manifestPlaceholders = [channelName: "brand0062ATuya"] // resValue("string", "app_theme", "@style/Splash062ATheme") // buildConfigField("String", "UpdatePlatform", "\"062A\"") // buildConfigField("String", "model", "\"1039\"") // buildConfigField("String", "brandCode", "\"062A\"") // //appCode 1.01 指向bug修复,2.01指向功能变更 // buildConfigField("String", "appCode", "\"1.01\"") // manifestPlaceholders = [channelName: "brand000BTuya"] // buildConfigField("String", "UpdatePlatform", "\"night\"") // resValue("string", "app_theme", "@style/SplashTheme") // buildConfigField("String", "model", "\"1039\"") // buildConfigField("String", "brandCode", "\"000B\"") // //appCode 1.01 指向bug修复,2.01指向功能变更 // buildConfigField("String", "appCode", "\"1.01\"") // manifestPlaceholders = [channelName: "brand000B5037Tuya"] // resValue("string", "app_theme", "@style/SplashTheme") // buildConfigField("String", "UpdatePlatform", "\"night\"") // buildConfigField("String", "model", "\"5037\"") // buildConfigField("String", "brandCode", "\"000B\"") // //versionCode 1.01 指向bug修复,2.01指向功能变更 // buildConfigField("String", "appCode", "\"1.01\"") //// buildConfigField("String", "appCode", "\"2.01\"") // // manifestPlaceholders = [channelName: "brand000ATuya"] // buildConfigField("String", "UpdatePlatform", "\"normal\"") // resValue("string", "app_theme", "@style/SplashTheme") // buildConfigField("String", "model", "\"1039\"") // buildConfigField("String", "brandCode", "\"000A\"") // //appCode 1.01 指向bug修复,2.01指向功能变更 // buildConfigField("String", "appCode", "\"1.01\"") // manifestPlaceholders = [channelName: "brand000ATuya"] // buildConfigField("String", "UpdatePlatform", "\"normal\"") // resValue("string", "app_theme", "@style/SplashTheme") // buildConfigField("String", "model", "\"5067\"") // buildConfigField("String", "brandCode", "\"000A\"") // //appCode 1.01 指向bug修复,2.01指向功能变更 // buildConfigField("String", "appCode", "\"1.01\"") // manifestPlaceholders = [channelName: "brand011ATuya"] // buildConfigField("String", "UpdatePlatform", "\"011\"") // resValue("string", "app_theme", "@style/Splash011ATheme") // buildConfigField("String", "model", "\"1039\"") // buildConfigField("String", "brandCode", "\"011A\"") // //appCode 1.01 指向bug修复,2.01指向功能变更 // buildConfigField("String", "appCode", "\"1.01\"") // manifestPlaceholders = [channelName: "brand011FTuya"] // buildConfigField("String", "UpdatePlatform", "\"011\"") // resValue("string", "app_theme", "@style/Splash011DTheme") // buildConfigField("String", "model", "\"1039\"") // buildConfigField("String", "brandCode", "\"011F\"") // //appCode 1.01 指向bug修复,2.01指向功能变更 // buildConfigField("String", "appCode", "\"1.01\"") // manifestPlaceholders = [channelName: "brand011DTuya"] // buildConfigField("String", "UpdatePlatform", "\"011\"") // resValue("string", "app_theme", "@style/Splash011DTheme") // buildConfigField("String", "model", "\"1039\"") // buildConfigField("String", "brandCode", "\"011D\"") // //appCode 1.01 指向bug修复,2.01指向功能变更 // buildConfigField("String", "appCode", "\"1.01\"") // manifestPlaceholders = [channelName: "brand032DTuya"] // buildConfigField("String", "UpdatePlatform", "\"normal\"") // resValue("string", "app_theme", "@style/Splash032DTheme") // buildConfigField("String", "model", "\"1039\"") // buildConfigField("String", "brandCode", "\"032D\"") // //appCode 1.01 指向bug修复,2.01指向功能变更 // buildConfigField("String", "appCode", "\"1.01\"") // // buildConfigField("String", "UpdatePlatform", "\"night\"") // resValue("string", "app_theme", "@style/Splash010DTheme") // buildConfigField("String", "model", "\"1039\"") // buildConfigField("String", "brandCode", "\"010D\"") // //appCode 1.01 指向bug修复,2.01指向功能变更 // buildConfigField("String", "appCode", "\"1.01\"") // buildConfigField("String", "UpdatePlatform", "\"night\"") // resValue("string", "app_theme", "@style/Splash010DTheme") // buildConfigField("String", "model", "\"1039\"") // buildConfigField("String", "brandCode", "\"010F\"") // //appCode 1.01 指向bug修复,2.01指向功能变更 // buildConfigField("String", "appCode", "\"1.01\"") // buildConfigField("String", "UpdatePlatform", "\"011A\"") // resValue("string", "app_theme", "@style/Splash011ATheme") // buildConfigField("String", "model", "\"1039\"") // buildConfigField("String", "brandCode", "\"011A\"") // // //appCode 1.01 指向bug修复,2.01指向功能变更 // buildConfigField("String", "appCode", "\"1.01\"") // buildConfigField("String", "UpdatePlatform", "\"normal\"") // resValue("string", "app_theme", "@style/SplashTheme") // buildConfigField("String", "model", "\"1039\"") // buildConfigField("String", "brandCode", "\"030A\"") // //appCode 1.01 指向bug修复,2.01指向功能变更 // buildConfigField("String", "appCode", "\"1.01\"") // manifestPlaceholders = [channelName: "brand010I"] // buildConfigField("String", "UpdatePlatform", "\"normal\"") // resValue("string", "app_theme", "@style/SplashThemeNotLogo") // buildConfigField("String", "model", "\"1039\"") // buildConfigField("String", "brandCode", "\"010I\"") // //appCode 1.01 指向bug修复,2.01指向功能变更 // buildConfigField("String", "appCode", "\"1.01\"") // buildConfigField("String", "time", "\"${getCurrentTime()}\"") // buildConfigField("String", "UpdatePlatform", "\"normal\"") // resValue("string", "app_theme", "@style/SplashThemeNotLogo") // buildConfigField("String", "model", "\"1039\"") // buildConfigField("String", "brandCode", "\"014A\"") // //appCode 1.01 指向bug修复,2.01指向功能变更 // buildConfigField("String", "appCode", "\"1.01\"") // // manifestPlaceholders = [channelName: "brand033HTuya"] // buildConfigField("String", "UpdatePlatform", "\"normal\"") // resValue("string", "app_theme", "@style/SplashThemeNotLogo") // buildConfigField("String", "model", "\"1039\"") // buildConfigField("String", "brandCode", "\"033H\"") // //appCode 1.01 指向bug修复,2.01指向功能变更 // buildConfigField("String", "appCode", "\"1.01\"") // buildConfigField("String", "appCode", "\"2.01\"") // manifestPlaceholders = [channelName: "brand033FTuya"] // buildConfigField("String", "UpdatePlatform", "\"normal\"") // resValue("string", "app_theme", "@style/SplashThemeNotLogo") // buildConfigField("String", "model", "\"1039\"") // buildConfigField("String", "brandCode", "\"033F\"") // //appCode 1.01 指向bug修复,2.01指向功能变更 // buildConfigField("String", "appCode", "\"1.01\"") // manifestPlaceholders = [channelName: "brand029CTuya"] // buildConfigField("String", "UpdatePlatform", "\"normal\"") // resValue("string", "app_theme", "@style/SplashThemeNotLogo") // buildConfigField("String", "model", "\"1039\"") // buildConfigField("String", "brandCode", "\"029C\"") // //appCode 1.01 指向bug修复,2.01指向功能变更 // buildConfigField("String", "appCode", "\"1.01\"") // manifestPlaceholders = [channelName: "brand033GTuya"] // buildConfigField("String", "UpdatePlatform", "\"normal\"") // resValue("string", "app_theme", "@style/SplashThemeNotLogo") // buildConfigField("String", "model", "\"1039\"") // buildConfigField("String", "brandCode", "\"033G\"") // //appCode 1.01 指向bug修复,2.01指向功能变更 // buildConfigField("String", "appCode", "\"1.01\"") //// buildConfigField("String", "appCode", "\"2.01\"") // buildConfigField("String", "UpdatePlatform", "\"normal\"") // resValue("string", "app_theme", "@style/SplashThemeNotLogo") // buildConfigField("String", "model", "\"1039\"") // buildConfigField("String", "brandCode", "\"049B\"") // //appCode 1.01 指向bug修复,2.01指向功能变更 // buildConfigField("String", "appCode", "\"1.01\"") // // // buildConfigField("String", "time","\"${getCurrentTime()}\"" ) // manifestPlaceholders = [channelName: "brand036I"] // buildConfigField("String", "UpdatePlatform", "\"036I\"") // resValue("string", "app_theme", "@style/Splash036IDTheme") // ` buildConfigField("String", "model", "\"1039\"") // buildConfigField("String", "brandCode", "\"036I\"") // //appCode 1.01 指向bug修复,2.01指向功能变更 // buildConfigField("String", "appCode", "\"1.01\"") // manifestPlaceholders = [channelName: "brand011ETuya"] // buildConfigField("String", "UpdatePlatform", "\"011\"") // resValue("string", "app_theme", "@style/Splash011ETheme") // buildConfigField("String", "model", "\"5037\"") // buildConfigField("String", "brandCode", "\"011E\"") // //appCode 1.01 指向bug修复,2.01指向功能变更 // buildConfigField("String", "appCode", "\"1.01\"") // buildConfigField("String", "time","\"${getCurrentTime()}\"" ) // manifestPlaceholders = [channelName: "brand045ATuya"] // buildConfigField("String", "UpdatePlatform", "\"night\"") // resValue("string", "app_theme", "@style/SplashThemeNotLogo") // buildConfigField("String", "model", "\"5037\"") // buildConfigField("String", "brandCode", "\"045A\"") // //appCode 1.01 指向bug修复,2.01指向功能变更 // buildConfigField("String", "appCode", "\"1.01\"") // buildConfigField("String", "time","\"${getCurrentTime()}\"" ) // manifestPlaceholders = [channelName: "brand010D"] // buildConfigField("String", "UpdatePlatform", "\"night\"") // resValue("string", "app_theme", "@style/Splash010DTheme") // buildConfigField("String", "model", "\"1039\"") // buildConfigField("String", "brandCode", "\"010D\"") // //appCode 1.01 指向bug修复,2.01指向功能变更 // buildConfigField("String", "appCode", "\"1.01\"") // buildConfigField("String", "time","\"${getCurrentTime()}\"" ) // manifestPlaceholders = [channelName: "brand002DTuya"] // buildConfigField("String", "UpdatePlatform", "\"normal\"") // resValue("string", "app_theme", "@style/Splash002DTheme") // buildConfigField("String", "model", "\"1039\"") // buildConfigField("String", "brandCode", "\"002D\"") // //appCode 1.01 指向bug修复,2.01指向功能变更 // buildConfigField("String", "appCode", "\"1.01\"") // buildConfigField("String", "time","\"${getCurrentTime()}\"" ) //// // manifestPlaceholders = [channelName: "brand063BTuya"] // buildConfigField("String", "UpdatePlatform", "\"normal\"") // resValue("string", "app_theme", "@style/SplashThemeNotLogo") // buildConfigField("String", "model", "\"1039\"") // buildConfigField("String", "brandCode", "\"063B\"") // //appCode 1.01 指向bug修复,2.01指向功能变更 // buildConfigField("String", "appCode", "\"1.01\"") // buildConfigField("String", "time","\"${getCurrentTime()}\"" ) // // manifestPlaceholders = [channelName: "brand058A"] // resValue("string", "app_theme", "@style/Splash062ATheme") // buildConfigField("String", "UpdatePlatform", "\"normal\"") // buildConfigField("String", "model", "\"1039\"") // buildConfigField("String", "brandCode", "\"058A\"") // //appCode 1.01 指向bug修复,2.01指向功能变更 // buildConfigField("String", "appCode", "\"1.01\"") // buildConfigField("String", "time", "\"${getCurrentTime()}\"") // manifestPlaceholders = [channelName: "brand053A"] // buildConfigField("String", "UpdatePlatform", "\"night\"") // resValue("string", "app_theme", "@style/SplashThemeNotLogo") // buildConfigField("String", "model", "\"1039\"") // buildConfigField("String", "brandCode", "\"053A\"") // //appCode 1.01 指向bug修复,2.01指向功能变更 // buildConfigField("String", "appCode", "\"1.01\"") // manifestPlaceholders = [channelName: "brand054ATuya"] // buildConfigField("String", "UpdatePlatform", "\"011\"") // resValue("string", "app_theme", "@style/Splash054ATheme") // buildConfigField("String", "model", "\"5037\"") // buildConfigField("String", "brandCode", "\"054A\"") // //appCode 1.01 指向bug修复,2.01指向功能变更 // buildConfigField("String", "appCode", "\"1.01\"") // buildConfigField("String", "time","\"${getCurrentTime()}\"" ) // manifestPlaceholders = [channelName: "brand025ATuya"] // buildConfigField("String", "UpdatePlatform", "\"night\"") // resValue("string", "app_theme", "@style/SplashThemeNotLogo") // buildConfigField("String", "model", "\"1039\"") // buildConfigField("String", "brandCode", "\"025A\"") // //appCode 1.01 指向bug修复,2.01指向功能变更 // buildConfigField("String", "appCode", "\"1.01\"") // buildConfigField("String", "time","\"${getCurrentTime()}\"" ) // manifestPlaceholders = [channelName: "brand077ATuya"] // buildConfigField("String", "UpdatePlatform", "\"night\"") // resValue("string", "app_theme", "@style/SplashThemeNotLogo") // buildConfigField("String", "model", "\"1039\"") // buildConfigField("String", "brandCode", "\"077A\"") // //appCode 1.01 指向bug修复,2.01指向功能变更 // buildConfigField("String", "appCode", "\"1.01\"") // buildConfigField("String", "time","\"${getCurrentTime()}\"" ) manifestPlaceholders = [channelName: "brand083ATuya"] buildConfigField("String", "UpdatePlatform", "\"normal\"") resValue("string", "app_theme", "@style/SplashThemeNotLogo") buildConfigField("String", "model", "\"1039\"") buildConfigField("String", "brandCode", "\"083A\"") //appCode 1.01 指向bug修复,2.01指向功能变更 buildConfigField("String", "appCode", "\"1.01\"") buildConfigField("String", "time", "\"${getCurrentTime()}\"") } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = '1.8' } viewBinding { enabled = true } } dependencies { implementation project(path: ':libBase') //基础工具模块,不涉及业务逻辑 implementation project(path: ':BusinessCommon')//业务相关的基础类 implementation project(path: ':BusinessMain') //烹饪主模块 implementation project(path: ':BusinessAuth')//登录-注册-个人信息模块 implementation project(path: ':BusinessSetting') //设置模块 implementation project(path: ':BusinessStep') //烹饪步骤模块 kapt 'com.alibaba:arouter-compiler:1.5.2' }