Skip to content

Commit c77819b

Browse files
committed
Adjust proguard configuration
1 parent e2ad48a commit c77819b

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

firebase-vertexai/src/consumer-rules.pro renamed to firebase-vertexai/consumer-rules.pro

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,8 @@
2121
#-renamesourcefileattribute SourceFile
2222

2323
-keep class com.google.firebase.vertexai.common.** { *; }
24+
25+
-dontwarn io.ktor.client.engine.mock.MockEngine$Companion
26+
-dontwarn io.ktor.client.engine.mock.MockEngine
27+
-dontwarn io.ktor.client.engine.mock.MockRequestHandleScope
28+
-dontwarn io.ktor.client.engine.mock.MockUtilsKt

firebase-vertexai/firebase-vertexai.gradle.kts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,15 @@ android {
4646
multiDexEnabled = true
4747
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
4848
}
49+
buildTypes {
50+
release {
51+
isMinifyEnabled = false
52+
proguardFiles(
53+
getDefaultProguardFile("proguard-android-optimize.txt"),
54+
"proguard-rules.pro"
55+
)
56+
}
57+
}
4958
compileOptions {
5059
sourceCompatibility = JavaVersion.VERSION_1_8
5160
targetCompatibility = JavaVersion.VERSION_1_8

firebase-vertexai/proguard-rules.pro

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile

0 commit comments

Comments
 (0)