12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019 |
- 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 = "011A"
- // 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()}\"" )
- }
- 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 {
- 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')
- // }
- sourceSets {
- main {
- jniLibs.srcDirs = ['src/main/jniLibs']
- }
- }
- 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 {
- multiDexEnabled true
- 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 {
- multiDexEnabled true
- 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: "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
- }
- // packaging {
- // resources {
- // excludes += '/META-INF/{AL2.0,LGPL2.1}'
- // }
- // }
- }
- 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'
- }
|