mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 10:46:53 -04:00
Added target, compileSdkVersion versions since now there are sources available for SDK 36.
This commit is contained in:
parent
5d88048976
commit
f34d46cc7b
@ -28,13 +28,7 @@ android {
|
|||||||
// This is now specified in the Gradle configuration instead of declaring
|
// This is now specified in the Gradle configuration instead of declaring
|
||||||
// it directly in the AndroidManifest file.
|
// it directly in the AndroidManifest file.
|
||||||
namespace = "org.kiwix.kiwixmobile"
|
namespace = "org.kiwix.kiwixmobile"
|
||||||
compileSdkPreview = Config.compileSdk
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
// TODO: We will move this from here to AllProjectConfigure once
|
|
||||||
// Android 16 stable release is available.
|
|
||||||
minSdk = Config.minSdk
|
|
||||||
base.archivesName.set(apkPrefix)
|
|
||||||
targetSdkPreview = Config.targetSdk
|
|
||||||
resValue("string", "app_name", "Kiwix")
|
resValue("string", "app_name", "Kiwix")
|
||||||
resValue("string", "app_search_string", "Search Kiwix")
|
resValue("string", "app_search_string", "Search Kiwix")
|
||||||
versionCode = "".getVersionCode()
|
versionCode = "".getVersionCode()
|
||||||
|
@ -22,9 +22,9 @@ object Config {
|
|||||||
|
|
||||||
// Here is a list of all Android versions with their corresponding API
|
// Here is a list of all Android versions with their corresponding API
|
||||||
// levels: https://apilevels.com/
|
// levels: https://apilevels.com/
|
||||||
const val compileSdk = "Baklava" // SDK version used by Gradle to compile our app.
|
const val compileSdk = 36 // SDK version used by Gradle to compile our app.
|
||||||
const val minSdk = 25 // Minimum SDK (Minimum Support Device) is 25 (Android 7.1 Nougat).
|
const val minSdk = 25 // Minimum SDK (Minimum Support Device) is 25 (Android 7.1 Nougat).
|
||||||
const val targetSdk = "Baklava" // Target SDK (Maximum Support Device) is Baklava (Android 16).
|
const val targetSdk = 36 // Target SDK (Maximum Support Device) is Baklava (Android 16).
|
||||||
|
|
||||||
val javaVersion = JavaVersion.VERSION_17
|
val javaVersion = JavaVersion.VERSION_17
|
||||||
|
|
||||||
|
@ -59,6 +59,13 @@ class AllProjectConfigurer {
|
|||||||
namespace = "org.kiwix.kiwixmobile.core"
|
namespace = "org.kiwix.kiwixmobile.core"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setCompileSdkVersion(Config.compileSdk)
|
||||||
|
defaultConfig {
|
||||||
|
minSdk = Config.minSdk
|
||||||
|
setTargetSdkVersion(Config.targetSdk)
|
||||||
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||||
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
getByName("debug") {
|
getByName("debug") {
|
||||||
isTestCoverageEnabled = true
|
isTestCoverageEnabled = true
|
||||||
|
@ -18,12 +18,7 @@ plugins.apply(KiwixConfigurationPlugin::class)
|
|||||||
apply(plugin = "io.objectbox")
|
apply(plugin = "io.objectbox")
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkPreview = Config.compileSdk
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
// TODO: We will move this from here to AllProjectConfigure once
|
|
||||||
// Android 16 stable release is available.
|
|
||||||
minSdk = Config.minSdk
|
|
||||||
targetSdkPreview = Config.targetSdk
|
|
||||||
buildConfigField("long", "VERSION_CODE", "".getVersionCode().toString())
|
buildConfigField("long", "VERSION_CODE", "".getVersionCode().toString())
|
||||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
|
@ -22,13 +22,8 @@ plugins {
|
|||||||
plugins.apply(KiwixConfigurationPlugin::class)
|
plugins.apply(KiwixConfigurationPlugin::class)
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkPreview = Config.compileSdk
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId = "org.kiwix"
|
applicationId = "org.kiwix"
|
||||||
// TODO: We will move this from here to AllProjectConfigure once
|
|
||||||
// Android 16 stable release is available.
|
|
||||||
minSdk = Config.minSdk
|
|
||||||
targetSdkPreview = Config.targetSdk
|
|
||||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user