Skip to content

Commit

Permalink
Add release update
Browse files Browse the repository at this point in the history
  • Loading branch information
ksharma-xyz committed Nov 11, 2024
1 parent b8cf717 commit d6b4f9a
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 19 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,9 @@ google-services.json
# MAC OS specific
.DS_Store
**/.DS_Store

# Ignore Android App Bundle files
*.aab

# Ignore Download Manager files
*.dm
26 changes: 10 additions & 16 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {

defaultConfig {
applicationId = "xyz.ksharma.krail"
versionCode = 5
versionName = "1.0-alpha01"
versionCode = 11
versionName = "1.0-alpha02"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
Expand All @@ -23,30 +23,24 @@ android {
debug {
applicationIdSuffix = ".debug"
isDebuggable = true
ndk {
isDebuggable = true
debugSymbolLevel = "FULL"
}
}

release {
isMinifyEnabled = true
isDebuggable = false

// Enables resource shrinking, which is performed by the
// Android Gradle plugin.
isShrinkResources = true

ndk {
isDebuggable = false
debugSymbolLevel = "FULL"
}

proguardFiles(
// Includes the default ProGuard rules files that are packaged with
// the Android Gradle plugin. To learn more, go to the section about
// R8 configuration files.
getDefaultProguardFile("proguard-android-optimize.txt"),

// Includes a local, custom Proguard rules file
"proguard-rules.pro"
)
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
firebaseCrashlytics {
nativeSymbolUploadEnabled = true
}
}
}

Expand Down
46 changes: 45 additions & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,48 @@

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
#-renamesourcefileattribute SourceFile

#Need this to keep serializable members as is
-keepclassmembers class * implements java.io.Serializable {
static final long serialVersionUID;
private static final java.io.ObjectStreamField[] serialPersistentFields;
private void writeObject(java.io.ObjectOutputStream);
private void readObject(java.io.ObjectInputStream);
java.lang.Object writeReplace();
java.lang.Object readResolve();
}


# For native methods, see http://proguard.sourceforge.net/manual/examples.html#native
-keepclasseswithmembernames class * {
native <methods>;
}

#This will print mappings - very useful for troubleshooting.
-printseeds ./build/seeds.txt
-printusage ./build/unused.txt
-printmapping ./build/mapping.txt

#Some recommended settings for running with Android
-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application

-keep public enum * {}
-keep public interface * {}

-keepattributes *Annotation*

-keepclassmembers,allowobfuscation class * {
@javax.inject.* *;
@dagger.* *;
<init>();
}


-keepattributes *Annotation*,Signature
-dontwarn retrofit.**
-keep class retrofit.** { *; }
-keepclasseswithmembers class * {
@retrofit.* <methods>;
}
Binary file removed app/release/app-release.aab
Binary file not shown.
4 changes: 2 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android">
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name="android.permission.INTERNET" />

Expand Down

0 comments on commit d6b4f9a

Please sign in to comment.