[android][sdk] Create empty SDK library

Signed-off-by: Andrei Shkrob <github@shkrob.dev>
This commit is contained in:
Andrei Shkrob
2025-06-25 19:34:26 +02:00
committed by Konstantin Pastbin
parent 6da8b69a1b
commit 3352279d9d
39 changed files with 39 additions and 14 deletions

View File

@@ -15,12 +15,6 @@ buildscript {
}
}
repositories {
google()
mavenCentral()
maven { url 'https://www.jitpack.io' } // MPAndroidChart
}
apply plugin: 'com.android.application'
apply plugin: 'com.github.triplet.play'
apply plugin: 'ru.cian.huawei-publish-gradle-plugin'
@@ -412,6 +406,8 @@ android {
}
dependencies {
implementation project(':sdk')
coreLibraryDesugaring libs.android.tools.desugar
// Google Play Location Services

28
android/sdk/build.gradle Normal file
View File

@@ -0,0 +1,28 @@
plugins {
id 'com.android.library'
}
android {
namespace 'app.organicmaps.sdk'
compileSdk propCompileSdkVersion.toInteger()
defaultConfig {
minSdk propMinSdkVersion.toInteger()
targetSdk propTargetSdkVersion.toInteger()
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
}
dependencies {
}

View File

@@ -5,13 +5,14 @@ pluginManagement {
gradlePluginPortal()
}
}
// See comment in buildscript block of app/build.gradle
//dependencyResolutionManagement {
// repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
// repositories {
// google()
// mavenCentral()
// }
//}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url 'https://www.jitpack.io' } // MPAndroidChart
}
}
rootProject.name = 'CoMaps'
include ':app'
include ':sdk'