Skip to content

Commit

Permalink
Merge pull request #25 from yangyiyu08/main
Browse files Browse the repository at this point in the history
upgrade and add icon
  • Loading branch information
shapun963 authored May 19, 2023
2 parents 0c3d741 + 5eac347 commit bcfa9d4
Show file tree
Hide file tree
Showing 26 changed files with 19 additions and 62 deletions.
18 changes: 8 additions & 10 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ android {
defaultConfig {
minSdk = 26
targetSdk = 33
versionCode = 3
versionName = "1.3"
versionCode = 5
versionName = "1.5"
applicationId = android.namespace
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down Expand Up @@ -43,17 +43,15 @@ android {
}

dependencies {
implementation("androidx.core:core-ktx:1.9.0")
implementation("androidx.core:core-ktx:1.10.1")
implementation("androidx.appcompat:appcompat:1.6.1")
implementation("com.google.android.material:material:1.8.0")
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.6.0")
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4")
implementation("com.google.android.material:material:1.9.0")
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1")

implementation("com.google.guava:guava:31.1-jre")
implementation("com.google.protobuf:protobuf-java:3.21.2")
implementation("com.android.tools.build:apksig:7.4.2")
implementation("com.android.tools.build:bundletool:1.14.0")
implementation("com.google.protobuf:protobuf-java:3.23.0")
implementation("com.android.tools.build:apksig:8.0.1")
implementation("com.android.tools.build:bundletool:1.15.0")
implementation("org.bouncycastle:bcprov-jdk15on:1.70")

testImplementation("junit:junit:4.13.2")
Expand Down
4 changes: 1 addition & 3 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@
android:extractNativeLibs="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.MyApplication">
<activity
android:name=".activity.MainActivity"
android:exported="true"
android:theme="@style/Theme.MyApplication">
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class AABToApkDialogFragment : BaseDialogFragment<DialogAabToApkBinding>() {
private var mApkUri: Uri? = null
private var mLogger: Logger? = null
private val mResultLauncherSelectApkPath = registerForActivityResult(
CreateDocument("*/*")
CreateDocument("application/octet-stream")
) {
if (it != null) {
val contentResolver = requireContext().contentResolver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ class ApkToAABDialogFragment : BaseDialogFragment<DialogApkToAabBinding>() {
"**.[wW][mM][aA]",
"**.[wW][mM][vV]",
"**.[xX][mM][fF]"
)
).shuffled()

private val mResultLauncherSelectApk = registerForActivityResult(
ActivityResultContracts.GetContent()
) {
Expand All @@ -94,7 +95,7 @@ class ApkToAABDialogFragment : BaseDialogFragment<DialogApkToAabBinding>() {
}
}
private val mResultLauncherSelectAABPath =
registerForActivityResult(CreateDocument("*/*")) {
registerForActivityResult(CreateDocument("application/octet-stream")) {
if (it != null) {
val name: String = Utils.queryName(contentResolver, it)
if (name.endsWith(".aab")) {
Expand Down
Binary file modified app/src/main/jniLibs/arm64-v8a/libaapt2.so
Binary file not shown.
Binary file modified app/src/main/jniLibs/armeabi-v7a/libaapt2.so
Binary file not shown.
Binary file modified app/src/main/jniLibs/x86/libaapt2.so
Binary file not shown.
Binary file modified app/src/main/jniLibs/x86_64/libaapt2.so
Binary file not shown.
30 changes: 0 additions & 30 deletions app/src/main/res/drawable-v24/ic_launcher_foreground.xml

This file was deleted.

2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center"
tools:context=".MainActivity" >
tools:context=".activity.MainActivity" >

<com.google.android.material.button.MaterialButton
android:id="@+id/btn_aab_to_apk"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/dialog_apk_to_aab.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
android:id="@+id/cb_default_gradle_config"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Use default AGP config (partially implemented)"
android:text="Use default AGP config"
android:checked="true"
tools:ignore="HardcodedText" />
<TextView
Expand Down
5 changes: 0 additions & 5 deletions app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml

This file was deleted.

5 changes: 0 additions & 5 deletions app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml

This file was deleted.

Binary file removed app/src/main/res/mipmap-hdpi/ic_launcher.webp
Binary file not shown.
Binary file removed app/src/main/res/mipmap-hdpi/ic_launcher_round.webp
Binary file not shown.
Binary file removed app/src/main/res/mipmap-mdpi/ic_launcher.webp
Binary file not shown.
Binary file removed app/src/main/res/mipmap-mdpi/ic_launcher_round.webp
Binary file not shown.
Binary file removed app/src/main/res/mipmap-xhdpi/ic_launcher.webp
Binary file not shown.
Binary file removed app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
Binary file not shown.
Binary file removed app/src/main/res/mipmap-xxhdpi/ic_launcher.webp
Binary file not shown.
Binary file not shown.
Binary file removed app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
Binary file not shown.
Binary file not shown.
Binary file added app/src/main/res/mipmap/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Fri Aug 05 11:35:36 UTC 2022
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
6 changes: 3 additions & 3 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ pluginManagement {
gradlePluginPortal()
}
plugins {
kotlin("android") version "1.8.0" apply false
id("com.android.application") version "7.4.0" apply false
id("com.android.library") version "7.4.0" apply false
kotlin("android") version "1.8.20" apply false
id("com.android.application") version "8.0.1" apply false
id("com.android.library") version "8.0.1" apply false
}
}
dependencyResolutionManagement {
Expand Down

0 comments on commit bcfa9d4

Please sign in to comment.