Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
xuning
/
livekitAndroidXuningTest
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
davidliu
2022-03-17 18:03:44 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2022-03-17 18:03:44 +0900
Commit
da97e4b3d8fa204973dd72d8f7e76638d18b2add
da97e4b3
1 parent
bfdf6b17
fix proguard (#66)
隐藏空白字符变更
内嵌
并排对比
正在显示
4 个修改的文件
包含
37 行增加
和
24 行删除
livekit-android-sdk/consumer-rules.pro
livekit-android-sdk/proguard-rules.pro
sample-app-common/build.gradle
sample-app-common/consumer-rules.pro
livekit-android-sdk/consumer-rules.pro
查看文件 @
da97e4b
# Kotlin Serialization Proguard Rules
########################################
-
keepattributes
*
Annotation
*,
InnerClasses
-
dontnote
kotlinx
.
serialization
.
AnnotationsKt
#
core
serialization
annotations
# kotlinx-serialization-json specific. Add this if you have java.lang.NoClassDefFoundError kotlinx.serialization.json.JsonObjectSerializer
-
keepclassmembers
class
kotlinx
.
serialization
.
json
.
**
{
***
Companion
;
}
-
keepclasseswithmembers
class
kotlinx
.
serialization
.
json
.
**
{
kotlinx
.
serialization
.
KSerializer
serializer
(...);
}
-
keep
,
includedescriptorclasses
class
io
.
livekit
.
android
.
**
$$
serializer
{
*
;
}
-
keepclassmembers
class
io
.
livekit
.
android
.
**
{
***
Companion
;
}
-
keepclasseswithmembers
class
io
.
livekit
.
android
.
**
{
kotlinx
.
serialization
.
KSerializer
serializer
(...);
}
# WebRTC
#########################################
-
keep
class
org
.
webrtc
.
**
{
*
;
}
# Protobuf
#########################################
-
keep
class
*
extends
com
.
google
.
protobuf
.
GeneratedMessageLite
{
*
;
}
\ No newline at end of file
...
...
livekit-android-sdk/proguard-rules.pro
查看文件 @
da97e4b
...
...
@@ -20,27 +20,6 @@
# hide the original source file name.
#-renamesourcefileattribute SourceFile
# Kotlin Serialization Proguard Rules
########################################
-
keepattributes
*
Annotation
*,
InnerClasses
-
dontnote
kotlinx
.
serialization
.
AnnotationsKt
#
core
serialization
annotations
# kotlinx-serialization-json specific. Add this if you have java.lang.NoClassDefFoundError kotlinx.serialization.json.JsonObjectSerializer
-
keepclassmembers
class
kotlinx
.
serialization
.
json
.
**
{
***
Companion
;
}
-
keepclasseswithmembers
class
kotlinx
.
serialization
.
json
.
**
{
kotlinx
.
serialization
.
KSerializer
serializer
(...);
}
# Change here com.yourcompany.yourpackage
-
keep
,
includedescriptorclasses
class
io
.
livekit
.
android
.
**
$$
serializer
{
*
;
}
#
<--
change
package
name
to
your
app's
-keepclassmembers class io.livekit.android.** { # <-- change package name to your app's
***
Companion
;
}
-
keepclasseswithmembers
class
io
.
livekit
.
android
.
**
{
#
<--
change
package
name
to
your
app
'
s
kotlinx
.
serialization
.
KSerializer
serializer
(...);
}
-
keep
class
*
extends
com
.
google
.
protobuf
.
GeneratedMessageLite
{
*
;
}
\ No newline at end of file
#############################################################################
# NOTE: Any rules should probably be applied to consumer-rules.pro instead. #
#############################################################################
\ No newline at end of file
...
...
sample-app-common/build.gradle
查看文件 @
da97e4b
...
...
@@ -11,6 +11,7 @@ android {
targetSdk
androidSdk
.
targetVersion
versionCode
1
versionName
"1.0"
consumerProguardFiles
'consumer-rules.pro'
testInstrumentationRunner
"androidx.test.runner.AndroidJUnitRunner"
}
...
...
sample-app-common/consumer-rules.pro
0 → 100644
查看文件 @
da97e4b
# LeakCanary
#######################
-
keep
class
androidx
.
appcompat
.
view
.
WindowCallbackWrapper
{
*
;
}
-
keep
class
android
.
support
.
v7
.
view
.
WindowCallbackWrapper
{
*
;
}
\ No newline at end of file
...
...
请
注册
或
登录
后发表评论