Migración a toolchain moderna y eliminación de Anko
Gradle 8.11.1, AGP 8.10.0, Kotlin 2.2.10, compile/targetSdk 36 (requisito Play 2026), minSdk 24 (exige ads 25.5.0), AdMob 25.5.0. anko-sqlite -> SQLiteOpenHelper nativo, commons -> helpers propios, layouts DSL -> XML + ViewBinding. Fixes: PendingIntent FLAG_IMMUTABLE, canal de notificaciones STN, ID de unidad correcto en RewardedAd.load, startService sobre receiver -> sendBroadcast, POST_NOTIFICATIONS en manifest.
This commit is contained in:
1 parent
8dd05334ec
commit
5a01a42cd7
18 files changed
+316
-283
No files matched your search
+17
-31
@@ -1,17 +1,16 @@
|
||||
def anko_version = '0.10.8'
|
||||
def kotlin_version = '1.5.20'
|
||||
ext.kotlin_version = '1.5.20'
|
||||
|
||||
apply plugin: 'com.android.application'
|
||||
apply plugin: 'kotlin-android' // apply kotlin android plugin
|
||||
plugins {
|
||||
id 'com.android.application'
|
||||
id 'kotlin-android'
|
||||
}
|
||||
|
||||
android {
|
||||
namespace 'com.jkanetwork.st.frasesdeanime'
|
||||
compileSdk 36
|
||||
|
||||
defaultConfig {
|
||||
applicationId "com.jkanetwork.st.frasesdeanime"
|
||||
minSdkVersion 21
|
||||
compileSdk 31
|
||||
targetSdkVersion 31
|
||||
minSdk 24
|
||||
targetSdk 36
|
||||
// Sube automáticamente la build en cada compilacion
|
||||
def versionPropsFile = file('versioncode.count')
|
||||
def Properties versionProps = new Properties()
|
||||
@@ -21,7 +20,7 @@ android {
|
||||
versionProps.store(versionPropsFile.newWriter(), null)
|
||||
// Fin de subir automáticamente la build en cada compilación
|
||||
versionCode code
|
||||
versionName "1.4.6"
|
||||
versionName "1.4.7"
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
buildTypes {
|
||||
@@ -34,9 +33,13 @@ android {
|
||||
buildFeatures {
|
||||
viewBinding true
|
||||
}
|
||||
productFlavors {
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_8
|
||||
targetCompatibility JavaVersion.VERSION_1_8
|
||||
}
|
||||
kotlinOptions {
|
||||
jvmTarget = '1.8'
|
||||
}
|
||||
namespace 'com.jkanetwork.st.frasesdeanime'
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
@@ -44,24 +47,7 @@ sourceSets {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
||||
implementation "org.jetbrains.anko:anko-sqlite:$anko_version"
|
||||
implementation "org.jetbrains.anko:anko-commons:$anko_version"
|
||||
// Anko Layouts
|
||||
implementation "org.jetbrains.anko:anko-sdk25:$anko_version"
|
||||
// sdk15, sdk19, sdk21, sdk23 are also available
|
||||
implementation "org.jetbrains.anko:anko-appcompat-v7:$anko_version"
|
||||
// Coroutine listeners for Anko Layouts
|
||||
implementation "org.jetbrains.anko:anko-sdk25-coroutines:$anko_version"
|
||||
implementation "org.jetbrains.anko:anko-appcompat-v7-coroutines:$anko_version"
|
||||
implementation 'com.github.mirrajabi:kotlin-preferences-extensions:1.0.1'
|
||||
implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
||||
implementation 'androidx.appcompat:appcompat:1.7.0'
|
||||
|
||||
implementation 'com.google.android.gms:play-services-ads:21.0.0'
|
||||
//testImplementation 'junit:junit:4.12'
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
||||
implementation 'com.google.android.gms:play-services-ads:25.5.0'
|
||||
}
|
||||
|
||||
configurations.configureEach() {
|
||||
resolutionStrategy.force "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
||||
}
|
||||
Reference in new issue
Block a user