Build 2026: AGP 9.4.1 + Gradle 9.6, compileSdk 37/target 36, minSdk 26, AndroidX y AdMob 25.5.0 al día, firma release vía keystore.properties

This commit is contained in:
kprkpr committed 2026-10-20 12:44:50 +00:00
1 parent 592e96366d
commit cab30c2a98
11 files changed
+113 -102

No files matched your search

+45 -20
View File
@@ -1,45 +1,70 @@
apply plugin: 'com.android.application'
plugins {
id 'com.android.application'
}
// Credenciales de firma de release: viven en keystore.properties (ignorado por git).
// Si el fichero no existe el build sigue funcionando (release sin firmar).
def keystorePropsFile = rootProject.file('keystore.properties')
def keystoreProps = new Properties()
if (keystorePropsFile.exists()) {
keystoreProps.load(new FileInputStream(keystorePropsFile))
}
android {
namespace 'com.jkanetwork.st.calendariodefrases'
compileSdk 37
defaultConfig {
applicationId "com.jkanetwork.st.calendariodefrases"
minSdkVersion 21
compileSdk 34
targetSdkVersion 34
minSdk 26
targetSdk 36
versionName "1.3.5"
// Sube automáticamente la build en cada
// Sube automáticamente la build en cada compilación
def versionPropsFile = file('version.count')
def Properties versionProps = new Properties()
versionProps.load(new FileInputStream(versionPropsFile))
def code = versionProps['VERSION_CODE'].toInteger() + 1
versionCode code
versionProps['VERSION_CODE'] = code.toString()
versionProps.store(versionPropsFile.newWriter(), null)
versionCode code
// Fin de subida automática de build
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
signingConfigs {
release {
if (keystorePropsFile.exists()) {
storeFile file(keystoreProps['storeFile'])
storePassword keystoreProps['storePassword']
keyAlias keystoreProps['keyAlias']
keyPassword keystoreProps['keyPassword']
}
}
}
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
if (keystorePropsFile.exists()) {
signingConfig signingConfigs.release
}
}
}
namespace 'com.jkanetwork.st.calendariodefrases'
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
/*androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})*/
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.core:core:1.12.0'
implementation 'com.google.android.material:material:1.11.0'
implementation 'androidx.appcompat:appcompat:1.8.0'
implementation 'androidx.core:core:1.19.1'
implementation 'androidx.work:work-runtime:2.12.0'
implementation 'com.github.marcohc:robotocalendarview:3.1.1'
implementation 'com.google.android.gms:play-services-ads:23.0.0'
//compile 'com.tappx.sdk.android:tappx-sdk:3.+'
//testImplementation 'junit:junit:4.12'
implementation 'com.google.android.gms:play-services-ads:25.5.0'
implementation 'com.google.android.ump:user-messaging-platform:4.0.0'
}