Skip to content

Commit 6b5e90b

Browse files
committed
Corrección de label, minSdk 29. Arreglos de sintaxis en AndroidManifest.xml, y algunos errores en strings.xml relacionados. Implementación con coroutines en MainActivity.kt, mejorando el rendimiento. Limpieza de código, dejando solo comentarios indicativos y no de aprendizaje autodidacta personales. Versión de release compilada
1 parent 0a4b13f commit 6b5e90b

7 files changed

Lines changed: 194 additions & 181 deletions

File tree

.idea/misc.xml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle.kts

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ plugins {
55
}
66

77
android {
8-
namespace = "com.d4vram.np.exporter"
8+
namespace = "com.d4vram.nowplayingexporterpy"
99
compileSdk = 35
1010

1111
defaultConfig {
12-
applicationId = "com.d4vram.np.exporter"
13-
minSdk = 28
12+
applicationId = "com.d4vram.nowplayingexporterpy"
13+
minSdk = 29
1414
targetSdk = 35
15-
versionCode = 1
16-
versionName = "1.0.0"
15+
versionCode = 2
16+
versionName = "1.0.1"
1717

1818
// Requisito de Chaquopy: declarar ABI
1919
ndk {
@@ -36,7 +36,7 @@ android {
3636
}
3737
}
3838

39-
// 👇 ESTE es el bloque que te fallaba: debe ir *dentro* de android { }
39+
4040
compileOptions {
4141
sourceCompatibility = JavaVersion.VERSION_17
4242
targetCompatibility = JavaVersion.VERSION_17
@@ -46,21 +46,15 @@ android {
4646
}
4747
}
4848

49-
// No necesitas pip; si algún día lo usas en Kotlin DSL:
50-
// extensions.configure<com.chaquo.python.PythonExtension>("python") {
51-
// pip { install("numpy==1.26.4") }
52-
// }
53-
5449
dependencies {
5550
implementation("androidx.core:core-ktx:1.13.1")
5651
implementation("androidx.appcompat:appcompat:1.7.0")
5752
implementation("com.google.android.material:material:1.12.0")
5853

59-
// Root (desde JitPack, recuerda tener jitpack en settings.gradle.kts)
54+
// Root access
6055
implementation("com.github.topjohnwu.libsu:core:5.2.2")
6156
implementation("com.github.topjohnwu.libsu:service:5.2.2")
6257

63-
// Tests opcionales
6458
testImplementation("junit:junit:4.13.2")
6559
androidTestImplementation("androidx.test.ext:junit:1.1.5")
6660
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")

app/src/main/AndroidManifest.xml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,29 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
xmlns:tools="http://schemas.android.com/tools" >
3+
xmlns:tools="http://schemas.android.com/tools">
44

55
<application
66
android:allowBackup="true"
77
android:dataExtractionRules="@xml/data_extraction_rules"
88
android:fullBackupContent="@xml/backup_rules"
99
android:icon="@mipmap/ic_launcher"
10-
android:label="@string/NPExporterPy"
10+
android:label="@string/app_name"
1111
android:roundIcon="@mipmap/ic_launcher_round"
1212
android:supportsRtl="true"
13-
android:theme="@style/Theme.NowPlayingExporterPy" >
13+
android:theme="@style/Theme.NowPlayingExporterPy">
1414
<activity
1515
android:name=".MainActivity"
1616
android:exported="true"
17-
android:label="@string/app_name"
18-
android:theme="@style/Theme.NowPlayingExporterPy" >
17+
android:theme="@style/Theme.NowPlayingExporterPy">
1918
<intent-filter>
20-
<action android:name="android.intent.action.MAIN" />
19+
<action android:name="android.intent.action.MAIN"/>
2120

22-
<category android:name="android.intent.category.LAUNCHER" />
21+
<category android:name="android.intent.category.LAUNCHER"/>
2322
</intent-filter>
2423
</activity>
2524
<meta-data
2625
android:name="preloaded_fonts"
27-
android:resource="@array/preloaded_fonts" />
26+
android:resource="@array/preloaded_fonts"/>
2827
</application>
2928

3029
</manifest>

0 commit comments

Comments
 (0)