mirror of
https://github.com/amnezia-vpn/amneziawg-android.git
synced 2026-06-02 06:23:39 +02:00
Refactor gradle build scripts
This commit is contained in:
@@ -4,10 +4,3 @@ plugins {
|
|||||||
alias(libs.plugins.kotlin.android) apply false
|
alias(libs.plugins.kotlin.android) apply false
|
||||||
alias(libs.plugins.kotlin.kapt) apply false
|
alias(libs.plugins.kotlin.kapt) apply false
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks {
|
|
||||||
wrapper {
|
|
||||||
gradleVersion = "8.3"
|
|
||||||
distributionSha256Sum = "591855b517fc635b9e04de1d05d5e76ada3f89f5fc76f87978d1b245b4f69225"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[versions]
|
[versions]
|
||||||
agp = "8.2.0-alpha15"
|
agp = "8.2.0"
|
||||||
kotlin = "1.9.0"
|
kotlin = "1.9.20"
|
||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
androidx-activity-ktx = "androidx.activity:activity-ktx:1.7.2"
|
androidx-activity-ktx = "androidx.activity:activity-ktx:1.7.2"
|
||||||
|
|||||||
+14
-2
@@ -1,4 +1,4 @@
|
|||||||
@file:Suppress("UnstableApiUsage")
|
import com.android.build.api.dsl.SettingsExtension
|
||||||
|
|
||||||
pluginManagement {
|
pluginManagement {
|
||||||
repositories {
|
repositories {
|
||||||
@@ -8,6 +8,7 @@ pluginManagement {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("UnstableApiUsage")
|
||||||
dependencyResolutionManagement {
|
dependencyResolutionManagement {
|
||||||
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
||||||
repositories {
|
repositories {
|
||||||
@@ -16,7 +17,18 @@ dependencyResolutionManagement {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
rootProject.name = "wireguard-android"
|
plugins {
|
||||||
|
id("com.android.settings") version "8.2.0"
|
||||||
|
}
|
||||||
|
|
||||||
|
rootProject.name = "amneziawg-android"
|
||||||
|
|
||||||
include(":tunnel")
|
include(":tunnel")
|
||||||
include(":ui")
|
include(":ui")
|
||||||
|
|
||||||
|
configure<SettingsExtension> {
|
||||||
|
buildToolsVersion = "34.0.0"
|
||||||
|
compileSdk = 34
|
||||||
|
minSdk = 24
|
||||||
|
ndkVersion = "26.1.10909125"
|
||||||
|
}
|
||||||
|
|||||||
@@ -11,15 +11,11 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdk = 34
|
|
||||||
compileOptions {
|
compileOptions {
|
||||||
sourceCompatibility = JavaVersion.VERSION_17
|
sourceCompatibility = JavaVersion.VERSION_17
|
||||||
targetCompatibility = JavaVersion.VERSION_17
|
targetCompatibility = JavaVersion.VERSION_17
|
||||||
}
|
}
|
||||||
namespace = "${pkg}.tunnel"
|
namespace = "${pkg}.tunnel"
|
||||||
defaultConfig {
|
|
||||||
minSdk = 21
|
|
||||||
}
|
|
||||||
externalNativeBuild {
|
externalNativeBuild {
|
||||||
cmake {
|
cmake {
|
||||||
path("tools/CMakeLists.txt")
|
path("tools/CMakeLists.txt")
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdk = 34
|
|
||||||
buildFeatures {
|
buildFeatures {
|
||||||
buildConfig = true
|
buildConfig = true
|
||||||
dataBinding = true
|
dataBinding = true
|
||||||
@@ -21,7 +20,6 @@ android {
|
|||||||
namespace = pkg
|
namespace = pkg
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId = pkg
|
applicationId = pkg
|
||||||
minSdk = 21
|
|
||||||
targetSdk = 34
|
targetSdk = 34
|
||||||
versionCode = providers.gradleProperty("wireguardVersionCode").get().toInt()
|
versionCode = providers.gradleProperty("wireguardVersionCode").get().toInt()
|
||||||
versionName = providers.gradleProperty("wireguardVersionName").get()
|
versionName = providers.gradleProperty("wireguardVersionName").get()
|
||||||
|
|||||||
Reference in New Issue
Block a user