123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200 |
- apply plugin: 'com.android.application'
- apply plugin: 'kotlin-android'
- apply plugin: 'com.google.gms.google-services'
- android {
- compileSdkVersion 34
- useLibrary 'org.apache.http.legacy'
- sourceSets.main
- {
- jniLibs.srcDirs = ['libs']
- }
- dexOptions {
- javaMaxHeapSize "4g"
- }
- defaultConfig {
- applicationId "com.sikey.interconnect"
- // vectorDrawables.useSupportLibrary = true
- minSdkVersion 26
- targetSdkVersion 34
- versionCode 1
- versionName "1.1.03"
- multiDexEnabled true
- //manifestPlaceholders=[UMENG_CHANNEL_VALUE:name]
- }
- packagingOptions {
- resources {
- excludes += ['META-INF/DEPENDENCIES', 'META-INF/NOTICE', 'META-INF/LICENSE', 'META-INF/LICENSE.txt', 'META-INF/NOTICE.txt']
- }
- }
- signingConfigs {
- debug {
- storeFile file("../release_keystore_sikey_kidswatch.jks")
- storePassword "sikey2024"
- keyAlias "kidswatchrelease"
- keyPassword "sikey2024"
- }
- release {
- storeFile file("../release_keystore_sikey_kidswatch.jks")
- storePassword "sikey2024"
- keyAlias "kidswatchrelease"
- keyPassword "sikey2024"
- }
- }
- buildTypes {
- debug {
- //show log
- buildConfigField "boolean", "LOG_DEBUG", "true"
- versionNameSuffix ""
- minifyEnabled false
- zipAlignEnabled false
- shrinkResources false
- signingConfig signingConfigs.debug
- }
- release {
- signingConfig signingConfigs.release
- //do not show log
- buildConfigField "boolean", "LOG_DEBUG", "false"
- //zipalign optimize
- zipAlignEnabled true
- //remove unused resource files
- shrinkResources true
- minifyEnabled true
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- //proguardFiles 'proguard-android.txt','proguard-rules.pro'
- }
- }
- /*
- productFlavors{
- GooglePlay {}
- xiaomi {}
- umeng {}
- _360 {}
- baidu {}
- _91 {}
- wandoujia {}
- yingyongbao{}
- }
- productFlavors.all{
- flavor->flavor.manifestPlaceholders=[UMENG_CHANNEL_VALUE: name]
- }
- applicationVariants.all{ variant->
- variant.outputs.each{ output->
- def outputFile=output.outputFile
- if(outputFile!=null && outputFile.name.endsWith('.apk')){
- def fileName=outputFile.name.replace(".apk","-${defaultConfig.versionName}.apk")
- output.outputFile=new File(outputFile.parent,fileName)
- }
- }
- }
- */
- repositories {
- flatDir {
- // this way we can find the .aar file in libs folder
- dirs 'libs'
- }
- }
- compileOptions {
- targetCompatibility 17
- sourceCompatibility 17
- }
- kotlinOptions {
- jvmTarget = '17'
- }
- lint {
- abortOnError false
- disable 'MissingTranslation'
- }
- namespace 'com.sikey.interconnect'
- buildFeatures {
- buildConfig true
- }
- }
- dependencies {
- implementation 'androidx.multidex:multidex:2.0.1'
- implementation fileTree(include: ['*.jar'], dir: 'libs')
- implementation(name: 'crop_image', ext: 'aar')
- //compile project(':social_sdk_library_project')
- // implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
- implementation 'com.google.android.material:material:1.9.0'
- //kotlin coroutines
- implementation(platform('org.jetbrains.kotlin:kotlin-bom:1.8.0'))
- implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1"
- implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1"
- // androidX
- implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.2'
- implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.6.2'
- implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2'
- implementation 'androidx.appcompat:appcompat:1.6.1'
- implementation 'androidx.activity:activity-ktx:1.7.0'
- implementation 'androidx.fragment:fragment-ktx:1.5.6'
- implementation 'androidx.legacy:legacy-support-v4:1.0.0'
- implementation 'androidx.recyclerview:recyclerview:1.3.0'
- implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
- implementation 'androidx.cardview:cardview:1.0.0'
- implementation 'androidx.transition:transition:1.4.1'
- implementation 'androidx.exifinterface:exifinterface:1.3.6'
- implementation 'com.airbnb.android:lottie:3.0.0'
- implementation 'com.ashokvarma.android:bottom-navigation-bar:1.3.1'
- implementation 'com.lcodecorex:tkrefreshlayout:1.0.5'
- //zxing核心依赖
- implementation 'com.google.zxing:core:3.5.0'
- implementation 'com.journeyapps:zxing-android-embedded:4.3.0'
- implementation 'com.koushikdutta.async:androidasync:2.2.1'
- // GMS
- implementation 'com.google.android.gms:play-services-maps:18.1.0'
- implementation 'com.google.android.libraries.places:places:3.0.0'
- implementation 'com.google.android.gms:play-services-location:21.0.1'
- implementation 'com.google.android.gms:play-services-auth:20.4.1'
- implementation 'com.google.android.gms:play-services-basement:18.2.0'
- implementation 'com.github.pengrad:mapscaleview:1.2.1'
- // implementation 'com.google.firebase:firebase-messaging:23.4.0'
- implementation 'com.google.firebase:firebase-messaging-ktx:23.4.0'
- implementation 'com.google.firebase:firebase-core:21.1.1'
- implementation(platform("com.google.firebase:firebase-bom:32.7.1"))
- //rxpremissions
- implementation 'io.reactivex.rxjava2:rxjava:2.2.21'
- implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
- implementation 'com.tbruyelle.rxpermissions2:rxpermissions:0.9.4@aar'
- //retrofit
- implementation 'com.squareup.retrofit2:retrofit:2.9.0'
- implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
- implementation 'com.squareup.retrofit2:adapter-rxjava2:2.9.0'
- implementation 'com.squareup.retrofit2:retrofit-converters:2.5.0'
- implementation 'com.squareup.okhttp3:logging-interceptor:5.0.0-alpha.10'
- implementation 'io.reactivex.rxjava2:rxjava:2.2.21'
- implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
- //gson
- implementation 'com.google.code.gson:gson:2.10'
- implementation 'org.greenrobot:eventbus:3.1.0-RC'
- }
|