mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-23 06:33:42 +00:00
[android][sdk] Create empty SDK library
Signed-off-by: Andrei Shkrob <github@shkrob.dev>
This commit is contained in:
committed by
Konstantin Pastbin
parent
6da8b69a1b
commit
3352279d9d
@@ -15,12 +15,6 @@ buildscript {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
|
||||||
google()
|
|
||||||
mavenCentral()
|
|
||||||
maven { url 'https://www.jitpack.io' } // MPAndroidChart
|
|
||||||
}
|
|
||||||
|
|
||||||
apply plugin: 'com.android.application'
|
apply plugin: 'com.android.application'
|
||||||
apply plugin: 'com.github.triplet.play'
|
apply plugin: 'com.github.triplet.play'
|
||||||
apply plugin: 'ru.cian.huawei-publish-gradle-plugin'
|
apply plugin: 'ru.cian.huawei-publish-gradle-plugin'
|
||||||
@@ -412,6 +406,8 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
implementation project(':sdk')
|
||||||
|
|
||||||
coreLibraryDesugaring libs.android.tools.desugar
|
coreLibraryDesugaring libs.android.tools.desugar
|
||||||
|
|
||||||
// Google Play Location Services
|
// Google Play Location Services
|
||||||
|
|||||||
28
android/sdk/build.gradle
Normal file
28
android/sdk/build.gradle
Normal 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 {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -5,13 +5,14 @@ pluginManagement {
|
|||||||
gradlePluginPortal()
|
gradlePluginPortal()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// See comment in buildscript block of app/build.gradle
|
dependencyResolutionManagement {
|
||||||
//dependencyResolutionManagement {
|
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
||||||
// repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
repositories {
|
||||||
// repositories {
|
google()
|
||||||
// google()
|
mavenCentral()
|
||||||
// mavenCentral()
|
maven { url 'https://www.jitpack.io' } // MPAndroidChart
|
||||||
// }
|
}
|
||||||
//}
|
}
|
||||||
rootProject.name = 'CoMaps'
|
rootProject.name = 'CoMaps'
|
||||||
include ':app'
|
include ':app'
|
||||||
|
include ':sdk'
|
||||||
|
|||||||
Reference in New Issue
Block a user