Skip to content
Snippets Groups Projects
Commit 6a30027a authored by Taras's avatar Taras
Browse files

Add flavours to core

parent 348d9043
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,6 @@ android {
buildFeatures {
viewBinding true
buildConfig true
}
buildTypes {
......@@ -30,6 +29,17 @@ android {
}
}
def flavor_dimension_name = "store"
flavorDimensions.add(flavor_dimension_name)
productFlavors {
gplay {
dimension flavor_dimension_name
}
fdroid {
dimension flavor_dimension_name
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
......@@ -110,10 +120,10 @@ dependencies {
api "io.noties.markwon:linkify:$markwon_version"
api "io.noties.markwon:ext-strikethrough:$markwon_version"
api "io.noties.markwon:ext-tasklist:$markwon_version"
api 'io.element.android:wysiwyg:2.36.0'
api 'io.element.android:wysiwyg:2.37.0'
//ExoPlayer
def exoplayer_version = '1.3.0'
def exoplayer_version = '1.3.1'
api "androidx.media3:media3-exoplayer:$exoplayer_version"
api "androidx.media3:media3-ui:$exoplayer_version"
......@@ -132,13 +142,22 @@ kapt {
publishing {
publications {
release(MavenPublication) {
gplayRelease(MavenPublication) {
groupId = rootProject.ext.modules_groupId
artifactId = "core_gplay"
version rootProject.ext.modules_version
afterEvaluate {
from components.gplayRelease
}
}
fdroidRelease(MavenPublication) {
groupId = rootProject.ext.modules_groupId
artifactId = "core"
artifactId = "core_fdroid"
version rootProject.ext.modules_version
afterEvaluate {
from components.release
from components.fdroidRelease
}
}
}
......
......@@ -14,6 +14,8 @@ android {
minSdk rootProject.ext.min_sdk_version
targetSdk rootProject.ext.sdk_version
missingDimensionStrategy "store", "gplay", "fdroid"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment