gradle build clean-up, inc. dropping +free suffix

This commit is contained in:
Sergei Poljanski 2024-08-06 20:42:07 +03:00
parent 9efe732c91
commit 7fba65b594
Signed by: Sergei Poljanski
GPG key ID: 4F8851660FA4121B

View file

@ -18,20 +18,13 @@ apply plugin: 'org.jetbrains.kotlin.android'
repositories { repositories {
google() google()
mavenCentral() mavenCentral()
jcenter()
maven { url='https://jitpack.io'} maven { url='https://jitpack.io'}
jcenter()
} }
configurations { configurations {
playstoreImplementation
freeImplementation freeImplementation
conversationsFreeImplementation conversationsFreeImplementation
conversationsPlaystorImplementation
conversationsPlaystoreImplementation
quicksyPlaystoreImplementation
quicksyPlaystoreImplementation
quicksyFreeImplementation
quicksyImplementation
} }
dependencies { dependencies {
@ -39,13 +32,6 @@ dependencies {
implementation 'androidx.viewpager:viewpager:1.0.0' implementation 'androidx.viewpager:viewpager:1.0.0'
playstoreImplementation('com.google.firebase:firebase-messaging:23.3.1') {
exclude group: 'com.google.firebase', module: 'firebase-core'
exclude group: 'com.google.firebase', module: 'firebase-analytics'
exclude group: 'com.google.firebase', module: 'firebase-measurement-connector'
}
conversationsPlaystoreImplementation("com.android.installreferrer:installreferrer:2.2")
quicksyPlaystoreImplementation 'com.google.android.gms:play-services-auth-api-phone:18.0.1'
implementation 'com.github.open-keychain.open-keychain:openpgp-api:v5.7.1' implementation 'com.github.open-keychain.open-keychain:openpgp-api:v5.7.1'
implementation("com.github.CanHub:Android-Image-Cropper:2.2.0") implementation("com.github.CanHub:Android-Image-Cropper:2.2.0")
implementation 'androidx.appcompat:appcompat:1.6.1' implementation 'androidx.appcompat:appcompat:1.6.1'
@ -90,6 +76,7 @@ dependencies {
implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation "androidx.recyclerview:recyclerview:1.2.1" implementation "androidx.recyclerview:recyclerview:1.2.1"
implementation 'com.github.bumptech.glide:glide:4.15.1' implementation 'com.github.bumptech.glide:glide:4.15.1'
// https://mvnrepository.com/artifact/info.androidhive/imagefilters
implementation 'info.androidhive:imagefilters:1.0.7' implementation 'info.androidhive:imagefilters:1.0.7'
implementation 'com.github.chrisbanes:PhotoView:2.3.0' implementation 'com.github.chrisbanes:PhotoView:2.3.0'
@ -154,58 +141,22 @@ android {
flavorDimensions += "distribution" flavorDimensions += "distribution"
productFlavors { productFlavors {
quicksy {
dimension "mode"
applicationId = "im.quicksy.client"
resValue "string", "applicationId", applicationId
def appName = "Quicksy"
resValue "string", "app_name", appName
buildConfigField "String", "APP_NAME", "\"$appName\""
}
conversations { conversations {
dimension "mode" dimension "mode"
} }
playstore {
dimension "distribution"
versionNameSuffix "+playstore"
}
free { free {
dimension "distribution" dimension "distribution"
versionNameSuffix "+free" //versionNameSuffix "+free"
} }
} }
sourceSets { sourceSets {
quicksyFree {
java {
srcDir 'src/quicksyFree/java'
}
}
quicksyPlaystore {
java {
srcDir 'src/quicksyPlaystore/java'
}
res {
srcDir 'src/quicksyPlaystore/res'
}
}
conversationsFree { conversationsFree {
java { java {
srcDir 'src/conversationsFree/java' srcDir 'src/conversationsFree/java'
} }
} }
conversationsPlaystore {
java {
srcDir 'src/conversationsPlaystore/java'
}
res {
srcDir 'src/conversationsPlaystore/res'
}
}
} }
buildTypes { buildTypes {