apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-kapt' if (getGradle().getStartParameter().getTaskRequests().toString().contains("Base")) apply plugin: 'io.fabric' android { buildToolsVersion "28.0.3" compileSdkVersion 28 defaultConfig { applicationId "be.mygod.vpnhotspot" minSdkVersion 21 targetSdkVersion 28 resConfigs "zh-rCN" versionCode 102 versionName "2.0.2" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" javaCompileOptions { annotationProcessorOptions { arguments = ["room.schemaLocation": "$projectDir/schemas".toString()] } } } buildTypes { debug { pseudoLocalesEnabled true } release { shrinkResources true minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } dataBinding.enabled = true flavorDimensions("fdroid", "freedom") productFlavors { base { dimension "fdroid" } fdroid { dimension "fdroid" } freedom { dimension "freedom" buildConfigField "boolean", "DONATIONS", "true" } google { dimension "freedom" buildConfigField "boolean", "DONATIONS", "false" } } } dependencies { kapt "androidx.room:room-compiler:$roomVersion" implementation fileTree(dir: 'libs', include: ['*.jar']) implementation "androidx.browser:browser:$androidxVersion" implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha2' implementation "androidx.core:core-ktx:$androidxVersion" implementation "androidx.preference:preference:$androidxVersion" implementation "androidx.room:room-runtime:$roomVersion" implementation 'com.github.luongvo:BadgeView:1.1.5' implementation 'com.github.topjohnwu:libsu:2.0.2' implementation "com.google.android.material:material:$androidxVersion" implementation 'com.jakewharton.timber:timber:4.7.1' implementation 'com.linkedin.dexmaker:dexmaker-mockito:2.19.1' implementation 'com.takisoft.preferencex:preferencex:1.0.0' implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion" baseImplementation 'com.android.billingclient:billing:1.1' baseImplementation 'com.crashlytics.sdk.android:crashlytics:2.9.5' testImplementation "androidx.room:room-testing:$roomVersion" testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test:runner:1.1.0-beta01' androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-beta01' } if (getGradle().getStartParameter().getTaskRequests().toString().contains("Base")) apply plugin: 'com.google.gms.google-services'