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.veryfit" // vectorDrawables.useSupportLibrary = true minSdkVersion 26 targetSdkVersion 35 versionCode 23 versionName "0.6.25" 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.jks") storePassword "sikey2024" keyAlias "SikeyRelease" keyPassword "sikey2024" } release { storeFile file("../release_keystore_sikey.jks") storePassword "sikey2024" keyAlias "SikeyRelease" 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 //proguardFiles 'proguard-android.txt','proguard-rules.pro' minifyEnabled true proguardFiles getDefaultProguardFile('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.veryfit' 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' implementation 'com.github.yalantis:ucrop:2.2.8' // Baidu Map implementation (name: 'BaiduLBS_Android_V7.6.5', ext: 'aar') implementation 'org.locationtech.jts:jts-core:1.19.0' implementation 'org.locationtech.jts.io:jts-io-common:1.19.0' }