Skip to content

Update build.gradle #85

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 13 additions & 10 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,20 @@ android {
namespace 'com.chess.clock'

defaultConfig {
minSdkVersion 16
targetSdkVersion 35
applicationId "com.chess.clock" // Added to ensure a unique app ID
minSdk 21 // Updated from 16 to 21 for better support and security
targetSdk 35
versionCode 28
versionName "1.2.2"

vectorDrawables.useSupportLibrary = true // Enable vector drawables for older devices
}

buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
shrinkResources true // Added to remove unused resources, reducing APK size
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
debug {
minifyEnabled false
Expand All @@ -23,19 +27,18 @@ android {
}

buildFeatures {
buildConfig = true
resValues = true
buildConfig true
resValues true
}

lint {
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false
}

compileOptions {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

Expand All @@ -44,5 +47,5 @@ dependencies {
implementation 'androidx.recyclerview:recyclerview:1.2.1'
implementation 'com.google.android.material:material:1.11.0'

testImplementation "junit:junit:4.13.2"
testImplementation 'junit:junit:4.13.2'
}