2018-02-20 13:54:18 +01:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
|
|
|
android {
|
2020-12-07 09:43:38 +01:00
|
|
|
compileSdkVersion 30
|
|
|
|
buildToolsVersion "30.0.2"
|
2018-02-20 13:54:18 +01:00
|
|
|
defaultConfig {
|
2019-11-20 23:08:51 +01:00
|
|
|
minSdkVersion 17
|
2020-12-07 09:43:38 +01:00
|
|
|
targetSdkVersion 30
|
2020-07-09 14:56:42 +02:00
|
|
|
versionCode 10
|
|
|
|
versionName "2.1.1"
|
2020-12-07 15:17:47 +01:00
|
|
|
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
|
2018-02-20 13:54:18 +01:00
|
|
|
}
|
2020-12-07 14:10:58 +01:00
|
|
|
flavorDimensions "default"
|
2018-02-20 13:54:18 +01:00
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
2018-04-12 12:25:35 +02:00
|
|
|
lintOptions {
|
|
|
|
disable 'MissingTranslation'
|
|
|
|
}
|
2018-02-20 13:54:18 +01:00
|
|
|
}
|
|
|
|
}
|
2020-12-07 14:10:58 +01:00
|
|
|
|
|
|
|
lintOptions {
|
|
|
|
disable 'MissingTranslation'
|
|
|
|
checkReleaseBuilds false
|
|
|
|
abortOnError false
|
|
|
|
}
|
|
|
|
|
|
|
|
productFlavors {
|
2021-01-11 11:38:08 +01:00
|
|
|
exodus_google {
|
2020-12-07 14:10:58 +01:00
|
|
|
applicationId "org.eu.exodus_privacy.exodusprivacy"
|
2021-01-11 11:38:08 +01:00
|
|
|
buildConfigField "boolean", "amal", "false"
|
2020-12-07 14:10:58 +01:00
|
|
|
}
|
2021-01-11 11:38:08 +01:00
|
|
|
amal_google {
|
2020-12-07 14:10:58 +01:00
|
|
|
applicationId "app.fedilab.amal"
|
2021-01-11 11:38:08 +01:00
|
|
|
buildConfigField "boolean", "amal", "true"
|
2020-12-07 14:10:58 +01:00
|
|
|
}
|
2021-01-11 11:38:08 +01:00
|
|
|
fedilab_google {
|
2020-12-15 18:21:10 +01:00
|
|
|
applicationId "app.fedilab.exodusprivacy"
|
2021-01-11 11:38:08 +01:00
|
|
|
buildConfigField "boolean", "amal", "false"
|
|
|
|
}
|
|
|
|
exodus_fdroid {
|
|
|
|
applicationId "org.eu.exodus_privacy.exodusprivacy"
|
|
|
|
buildConfigField "boolean", "amal", "false"
|
|
|
|
}
|
|
|
|
amal_fdroid {
|
|
|
|
applicationId "app.fedilab.amal"
|
|
|
|
buildConfigField "boolean", "amal", "true"
|
|
|
|
}
|
|
|
|
fedilab_fdroid {
|
|
|
|
applicationId "app.fedilab.exodusprivacy"
|
|
|
|
buildConfigField "boolean", "amal", "false"
|
2020-12-15 18:21:10 +01:00
|
|
|
}
|
2020-12-07 14:10:58 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
2021-01-11 11:38:08 +01:00
|
|
|
exodus_google {
|
|
|
|
res.srcDirs = ['src/main/res', 'src/exodus/res']
|
|
|
|
manifest.srcFile 'src/google/AndroidManifest.xml'
|
|
|
|
}
|
|
|
|
fedilab_google {
|
|
|
|
res.srcDirs = ['src/main/res', 'src/fedilab/res']
|
|
|
|
manifest.srcFile 'src/google/AndroidManifest.xml'
|
|
|
|
}
|
|
|
|
amal_google {
|
|
|
|
res.srcDirs = ['src/main/res', 'src/amal/res']
|
|
|
|
manifest.srcFile 'src/google/AndroidManifest.xml'
|
|
|
|
}
|
|
|
|
exodus_fdroid {
|
2020-12-07 14:10:58 +01:00
|
|
|
res.srcDirs = ['src/main/res', 'src/exodus/res']
|
2021-01-11 11:38:08 +01:00
|
|
|
manifest.srcFile 'src/fdroid/AndroidManifest.xml'
|
2020-12-07 14:10:58 +01:00
|
|
|
}
|
2021-01-11 11:38:08 +01:00
|
|
|
fedilab_fdroid {
|
2020-12-15 18:21:10 +01:00
|
|
|
res.srcDirs = ['src/main/res', 'src/fedilab/res']
|
2021-01-11 11:38:08 +01:00
|
|
|
manifest.srcFile 'src/fdroid/AndroidManifest.xml'
|
2020-12-15 18:21:10 +01:00
|
|
|
}
|
2021-01-11 11:38:08 +01:00
|
|
|
amal_fdroid {
|
2020-12-07 14:10:58 +01:00
|
|
|
res.srcDirs = ['src/main/res', 'src/amal/res']
|
2021-01-11 11:38:08 +01:00
|
|
|
manifest.srcFile 'src/fdroid/AndroidManifest.xml'
|
2020-12-07 14:10:58 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2018-02-20 13:54:18 +01:00
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
2020-07-07 01:48:10 +02:00
|
|
|
buildFeatures {
|
|
|
|
dataBinding = true
|
2018-04-11 15:27:05 +02:00
|
|
|
}
|
2018-02-20 13:54:18 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2019-01-09 16:42:55 +01:00
|
|
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
2020-12-07 15:17:47 +01:00
|
|
|
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', {
|
2018-02-20 13:54:18 +01:00
|
|
|
exclude group: 'com.android.support', module: 'support-annotations'
|
|
|
|
})
|
2020-12-07 09:43:38 +01:00
|
|
|
implementation 'androidx.appcompat:appcompat:1.2.0'
|
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
|
2020-07-07 01:48:10 +02:00
|
|
|
implementation 'androidx.recyclerview:recyclerview:1.1.0'
|
|
|
|
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
|
2020-12-07 09:43:38 +01:00
|
|
|
implementation 'com.google.android.material:material:1.2.1'
|
|
|
|
testImplementation 'junit:junit:4.13.1'
|
2018-02-20 13:54:18 +01:00
|
|
|
}
|