Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ target_link_libraries(native-sample ${LOG_LIB})
# include paths generated by androidNativeBundle
include (${ANDROID_GRADLE_NATIVE_BUNDLE_PLUGIN_MK})
# change native-sample to your native lib's name
target_link_libraries(native-sample ${ANDROID_GRADLE_NATIVE_MODULES})
target_link_libraries(native-sample ${ANDROID_GRADLE_NATIVE_MODULES})

# Android 15: Support 16KB page sizes
# see https://developer.android.com/guide/practices/page-sizes
target_link_options(native-sample PRIVATE "-Wl,-z,max-page-size=16384")
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ plugins {
//}

android {
compileSdkVersion 34
compileSdkVersion 36
namespace "com.example.vu.android"

compileOptions {
Expand All @@ -27,7 +27,7 @@ android {
defaultConfig {
applicationId "com.example.vu.android"
minSdkVersion 21
targetSdkVersion 34
targetSdkVersion 36
versionCode System.getenv('VERSION_CODE')?.toInteger() ?: 241226
versionName System.getenv('VERSION_NAME') ?: "24.12.26"

Expand Down
16 changes: 16 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,19 @@
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile

# Gson uses generic type information stored in a class file when working with
# fields. Proguard removes such information by default, keep it.
-keepattributes Signature

# This is also needed for R8 in compat mode since multiple
# optimizations will remove the generic signature such as class
# merging and argument removal. See:
# https://r8.googlesource.com/r8/+/refs/heads/main/compatibility-faq.md#troubleshooting-gson-gson
-keep class com.google.gson.reflect.TypeToken { *; }
-keep class * extends com.google.gson.reflect.TypeToken

# Optional. For using GSON @Expose annotation
-keepattributes AnnotationDefault,RuntimeVisibleAnnotations
-keep class com.google.gson.reflect.TypeToken { <fields>; }
-keepclassmembers class **$TypeAdapterFactory { <fields>; }
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:8.6.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "io.github.howardpang:androidNativeBundle:1.1.4"
classpath "io.github.howardpang:androidNativeBundle:1.1.5"
classpath 'com.fullstory:gradle-plugin-local:1.12.1'
classpath 'com.mxalbert.gradle:jacoco-android:0.2.1'
}
Expand Down