123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029 |
- 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="054A"
- brandCode = "000B"
- // 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", "\"normal\"")
- 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()}\"" )
- }
- 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()}\"" )
- }
- 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()}\"" )
- }
- brand010I {
- manifestPlaceholders = [channelName: "brand010I"]
- dimension "platform"
- applicationId "com.develop.foodcooking"
- buildConfigField("String", "UpdatePlatform", "\"night\"")
- resValue("string", "app_theme", "@style/Splash010DTheme")
- 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", "\"night\"")
- 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", "\"night\"")
- 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\"")
- }
- }
- // 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/<type>
- // // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
- // // This moves them out of them default location under src/<type>/... 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: "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: "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\"")
- // 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: "brand033ITuya"]
- // 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", "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: "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", "\"night\"")
- // 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()}\"" )
- }
- }
- 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'
- }
|