diff --git a/app/build.gradle b/app/build.gradle index 33c88d1d4a..ebf0518f5a 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -13,7 +13,7 @@ ext { } android { - namespace "com.termux" + namespace = "com.termux" compileSdkVersion project.properties.compileSdkVersion.toInteger() ndkVersion = System.getenv("JITPACK_NDK_VERSION") ?: project.properties.ndkVersion @@ -68,11 +68,11 @@ android { splits { abi { - enable ((gradle.startParameter.taskNames.any { it.contains("Debug") } && splitAPKsForDebugBuilds == "1") || + enable = ((gradle.startParameter.taskNames.any { it.contains("Debug") } && splitAPKsForDebugBuilds == "1") || (gradle.startParameter.taskNames.any { it.contains("Release") } && splitAPKsForReleaseBuilds == "1")) reset () include 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a' - universalApk true + universalApk = true } } } @@ -88,19 +88,20 @@ android { buildTypes { release { - minifyEnabled true - shrinkResources false // Reproducible builds + minifyEnabled = true + shrinkResources = false // Reproducible builds + signingConfig = signingConfigs.debug proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } debug { - signingConfig signingConfigs.debug + signingConfig = signingConfigs.debug } } compileOptions { // Flag to enable support for the new language APIs - coreLibraryDesugaringEnabled true + coreLibraryDesugaringEnabled = true sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 @@ -124,7 +125,7 @@ android { packagingOptions { jniLibs { - useLegacyPackaging true + useLegacyPackaging = true } } @@ -141,7 +142,7 @@ android { } buildFeatures { - buildConfig true + buildConfig = true } } diff --git a/build.gradle b/build.gradle index 65f0e42715..64cd56e6b0 100644 --- a/build.gradle +++ b/build.gradle @@ -12,6 +12,6 @@ allprojects { repositories { google() mavenCentral() - maven { url "https://jitpack.io" } + maven { url = "https://jitpack.io" } } } diff --git a/terminal-emulator/build.gradle b/terminal-emulator/build.gradle index ff1ebae3c7..24cdc5f607 100644 --- a/terminal-emulator/build.gradle +++ b/terminal-emulator/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'com.android.library' apply plugin: 'maven-publish' android { - namespace "com.termux.emulator" + namespace = "com.termux.emulator" compileSdkVersion project.properties.compileSdkVersion.toInteger() ndkVersion = System.getenv("JITPACK_NDK_VERSION") ?: project.properties.ndkVersion @@ -24,7 +24,7 @@ android { buildTypes { release { - minifyEnabled false + minifyEnabled = false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } diff --git a/terminal-view/build.gradle b/terminal-view/build.gradle index 75dff01fa3..26684b26fe 100644 --- a/terminal-view/build.gradle +++ b/terminal-view/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'com.android.library' apply plugin: 'maven-publish' android { - namespace "com.termux.view" + namespace = "com.termux.view" compileSdkVersion project.properties.compileSdkVersion.toInteger() dependencies { @@ -18,7 +18,7 @@ android { buildTypes { release { - minifyEnabled false + minifyEnabled = false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } diff --git a/termux-shared/build.gradle b/termux-shared/build.gradle index 5e8d16ae41..623a2beaa9 100644 --- a/termux-shared/build.gradle +++ b/termux-shared/build.gradle @@ -45,14 +45,14 @@ android { buildTypes { release { - minifyEnabled false + minifyEnabled = false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } compileOptions { // Flag to enable support for the new language APIs - coreLibraryDesugaringEnabled true + coreLibraryDesugaringEnabled = true sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8