ShopLive SDK ProGuard 안내
- Print
ShopLive SDK ProGuard 안내
- Print
The content is currently unavailable in English. You are viewing the default Korean version.
Article summary
Did you find this summary helpful?
Thank you for your feedback!
본 SDK는 내부적으로 reflection, native library, 외부 라이브러리(ExoPlayer, FFmpegKit 등)를 사용합니다.
따라서 난독화/최적화(minifyEnabled = true) 환경에서도 정상 동작을 보장하기 위해 ProGuard/R8 규칙이 반드시 필요합니다.
규칙들은 각 모듈의 consumer-rules.pro에 포함되어 있으며, Gradle로 AAR 종속성을 추가하면 앱 빌드 시 자동으로 병합됩니다.
고객사는 따로 설정할 필요가 없습니다.
아래 내용은 참고용으로만 제공됩니다.
common
-keep class cloud.shoplive.sdk.common.** { *; }
exoplayer
-keep class cloud.shoplive.sdk.exoplayer.** { *; } -keep class cloud.shoplive.sdk.extension.** { *; } -keep class com.google.android.exoplayer2.** { *; }
filter
-keep class cloud.shoplive.sdk.filter.** { *; } -keep class cloud.shoplive.sdk.filter.nativePort.** { native <methods>; }
network
consumer-rules.pro:
-keep class cloud.shoplive.sdk.network.** { *; }
permission
-keep class cloud.shoplive.sdk.permission.** { *; }
player
-keep class cloud.shoplive.sdk.** { *; }
short-form
-keep class cloud.shoplive.sdk.shorts.** { *; }
video-editor
-keep class com.arthenica.ffmpegkit.FFmpegKitConfig { native <methods>; void log(long, int, byte[]); void statistics(long, int, float, float, long , double, double, double); int safOpen(int); int safClose(int); } -keep class com.arthenica.ffmpegkit.AbiDetect { native <methods>; } -keep class cloud.shoplive.sdk.editor.** { *; } -keep class com.arthenica.** { *; } -dontwarn com.arthenica.**