mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 02:36:24 -04:00
Upgraded Gradle to 8.1.3 * Added the namespace property in the build.gradle file because, in the newer Gradle version, it is necessary to specify the namespace in the build.gradle file instead of declaring it in the manifest file.
This commit is contained in:
parent
2b8f7300f6
commit
f314e70d0c
@ -20,7 +20,7 @@ fun generateVersionName() = "${Config.versionMajor}.${Config.versionMinor}.${Con
|
||||
val apkPrefix get() = System.getenv("TAG") ?: "kiwix"
|
||||
|
||||
android {
|
||||
|
||||
namespace = "org.kiwix.kiwixmobile"
|
||||
defaultConfig {
|
||||
base.archivesName.set(apkPrefix)
|
||||
resValue("string", "app_name", "Kiwix")
|
||||
|
@ -1,7 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
package="org.kiwix.kiwixmobile">
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<uses-permission
|
||||
android:name="android.permission.ACCESS_FINE_LOCATION"
|
||||
|
@ -11,7 +11,7 @@ repositories {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("com.android.tools.build:gradle:7.4.2")
|
||||
implementation("com.android.tools.build:gradle:8.1.3")
|
||||
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.0")
|
||||
implementation("org.jacoco:org.jacoco.core:0.8.8")
|
||||
implementation("org.jlleitschuh.gradle:ktlint-gradle:10.3.0")
|
||||
|
@ -44,7 +44,7 @@ object Versions {
|
||||
|
||||
const val android_arch_lifecycle_extensions: String = "1.1.1"
|
||||
|
||||
const val com_android_tools_build_gradle: String = "7.4.2"
|
||||
const val com_android_tools_build_gradle: String = "8.1.3"
|
||||
|
||||
const val de_fayard_buildsrcversions_gradle_plugin: String = "0.7.0"
|
||||
|
||||
|
@ -45,6 +45,7 @@ class AllProjectConfigurer {
|
||||
|
||||
fun configureBaseExtension(target: Project) {
|
||||
target.configureExtension<BaseExtension> {
|
||||
namespace = ""
|
||||
setCompileSdkVersion(Config.compileSdk)
|
||||
defaultConfig {
|
||||
minSdk = Config.minSdk
|
||||
@ -115,7 +116,7 @@ class AllProjectConfigurer {
|
||||
}
|
||||
|
||||
fun configureCommonExtension(target: Project) {
|
||||
target.configureExtension<CommonExtension<*, *, *, *>> {
|
||||
target.configureExtension<CommonExtension<*, *, *, *, *>> {
|
||||
lint {
|
||||
abortOnError = true
|
||||
checkAllWarnings = true
|
||||
|
@ -1,6 +1,5 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
package="org.kiwix.kiwixmobile.core"
|
||||
android:installLocation="auto">
|
||||
|
||||
<uses-permission
|
||||
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,6 +1,6 @@
|
||||
#Mon Dec 19 16:13:45 IST 2022
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
|
||||
distributionPath=wrapper/dists
|
||||
zipStorePath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
|
Loading…
x
Reference in New Issue
Block a user