apply plugin: 'com.android.library' repositories { mavenCentral() google() //// flatDir { //// dirs 'libs' //// } } configurations { compile.exclude module: 'support-v4' } configurations.all { exclude group: 'com.google.firebase', module: 'firebase-core' exclude group: 'androidx.recyclerview', module: 'recyclerview' } dependencies { coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5' implementation 'androidx.core:core:1.7.0' implementation 'androidx.palette:palette:1.0.0' implementation 'androidx.exifinterface:exifinterface:1.3.3' implementation 'androidx.dynamicanimation:dynamicanimation:1.0.0' implementation 'androidx.multidex:multidex:2.0.1' // implementation "androidx.sharetarget:sharetarget:1.1.0" compileOnly 'org.checkerframework:checker-qual:3.5.0' compileOnly 'org.checkerframework:checker-compat-qual:2.5.0' implementation 'com.google.firebase:firebase-messaging:23.1.0' implementation 'com.google.firebase:firebase-config:21.0.1' implementation 'com.google.firebase:firebase-datatransport:18.1.7' implementation 'com.google.firebase:firebase-appindexing:20.0.0' implementation 'com.google.android.gms:play-services-maps:17.0.1' implementation 'com.google.android.gms:play-services-auth:19.2.0' implementation 'com.google.android.gms:play-services-vision:20.1.3' implementation 'com.google.android.gms:play-services-wearable:17.1.0' implementation 'com.google.android.gms:play-services-location:18.0.0' implementation 'com.google.android.gms:play-services-wallet:18.1.3' implementation 'com.googlecode.mp4parser:isoparser:1.0.6' implementation 'com.stripe:stripe-android:2.0.2' implementation 'com.google.mlkit:language-id:16.1.1' implementation 'com.android.billingclient:billing:5.0.0' //-------------------------------------Cricdit相关----------------------------------------// //-------------------------------------Cricdit相关----------------------------------------// //-------------------------------------Cricdit相关----------------------------------------// implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation 'com.google.android.material:material:1.5.0' implementation 'androidx.appcompat:appcompat:1.4.1' implementation 'androidx.work:work-runtime:2.7.1' //网络请求 implementation 'com.squareup.okhttp3:okhttp:4.9.3' implementation 'io.reactivex.rxjava2:rxjava:2.2.8' implementation 'io.reactivex.rxjava2:rxandroid:2.1.1' implementation 'com.squareup.retrofit2:retrofit:2.9.0' implementation 'com.squareup.retrofit2:converter-gson:2.6.0' implementation 'com.squareup.retrofit2:adapter-rxjava2:2.6.0' implementation 'com.squareup.okhttp3:logging-interceptor:3.9.0' implementation 'com.google.code.gson:gson:2.9.0' implementation 'com.github.bumptech.glide:glide:4.13.0' annotationProcessor 'com.github.bumptech.glide:compiler:4.13.0' implementation 'com.github.bumptech.glide:okhttp3-integration:4.13.0' implementation 'io.github.scwang90:refresh-layout-kernel:2.0.5' implementation 'io.github.scwang90:refresh-header-classics:2.0.5' implementation 'io.github.scwang90:refresh-footer-classics:2.0.5' implementation 'androidx.recyclerview:recyclerview:1.2.1' implementation 'com.makeramen:roundedimageview:2.3.0' implementation 'com.airbnb.android:lottie:5.2.0' implementation 'com.tencent.bugly:crashreport:4.0.4' implementation 'io.github.youth5201314:banner:2.2.2' implementation "androidx.cardview:cardview:1.0.0" implementation "org.greenrobot:eventbus:3.1.1" implementation 'com.github.piasy:BigImageViewer:1.8.1' implementation 'com.github.piasy:GlideImageLoader:1.8.1' implementation 'com.github.piasy:GlideImageViewFactory:1.8.1' implementation 'com.github.piasy:ProgressPieIndicator:1.8.1' implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.6' implementation 'com.hyman:flowlayout-lib:1.1.2' implementation 'com.lzy.widget:ninegridview:0.2.1' implementation 'io.github.lucksiege:pictureselector:v3.10.6' implementation 'io.github.lucksiege:compress:v3.10.6' implementation 'com.classic.common:multiple-status-view:1.7' } android { compileSdkVersion 31 buildToolsVersion '31.0.0' ndkVersion "21.4.7075529" sourceSets.main.jniLibs.srcDirs = ['./jni/'] externalNativeBuild { cmake { path 'jni/CMakeLists.txt' } } lintOptions { disable 'MissingTranslation' disable 'ExtraTranslation' disable 'BlockedPrivateApi' } dexOptions { jumboMode = true preDexLibraries = true } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 coreLibraryDesugaringEnabled true } defaultConfig.versionCode = Integer.parseInt(APP_VERSION_CODE) defaultConfig { minSdkVersion 19 targetSdkVersion 31 versionName "1" vectorDrawables.generatedDensities = ['mdpi', 'hdpi', 'xhdpi', 'xxhdpi'] multiDexEnabled true externalNativeBuild { cmake { version '3.10.2' arguments '-DANDROID_STL=c++_static', '-DANDROID_PLATFORM=android-16', "-j=16" } } } buildTypes { debug { debuggable true jniDebuggable true minifyEnabled false shrinkResources false multiDexEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro' ndk.debugSymbolLevel = 'FULL' buildConfigField "String", "APP_CENTER_HASH", "\"\"" buildConfigField "boolean", "DEBUG_VERSION", "true" buildConfigField "boolean", "DEBUG_PRIVATE_VERSION", "false" } HA_private { debuggable false jniDebuggable false minifyEnabled true multiDexEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro' ndk.debugSymbolLevel = 'FULL' buildConfigField "String", "APP_CENTER_HASH", "\"" + getProps("APP_CENTER_HASH_PRIVATE") + "\"" buildConfigField "boolean", "DEBUG_VERSION", "true" buildConfigField "boolean", "DEBUG_PRIVATE_VERSION", "true" } HA_public { debuggable false jniDebuggable false minifyEnabled true multiDexEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro' ndk.debugSymbolLevel = 'FULL' buildConfigField "String", "APP_CENTER_HASH", "\"" + getProps("APP_CENTER_HASH_PUBLIC") + "\"" buildConfigField "boolean", "DEBUG_VERSION", "true" buildConfigField "boolean", "DEBUG_PRIVATE_VERSION", "false" } standalone { debuggable false jniDebuggable false minifyEnabled true multiDexEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro' ndk.debugSymbolLevel = 'FULL' buildConfigField "String", "APP_CENTER_HASH", "\"\"" buildConfigField "boolean", "DEBUG_VERSION", "false" buildConfigField "boolean", "DEBUG_PRIVATE_VERSION", "false" } release { debuggable false jniDebuggable false minifyEnabled true shrinkResources false multiDexEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro' ndk.debugSymbolLevel = 'FULL' buildConfigField "String", "APP_CENTER_HASH", "\"\"" buildConfigField "boolean", "DEBUG_VERSION", "false" buildConfigField "boolean", "DEBUG_PRIVATE_VERSION", "false" } } buildFeatures { viewBinding true } } def getProps(String propName) { def propsFile = rootProject.file('local.properties') if (propsFile.exists()) { def props = new Properties() props.load(new FileInputStream(propsFile)) return props[propName] } else { return ""; } } apply plugin: 'com.google.gms.google-services'