Skip to content

Commit 54ea64b

Browse files
committed
add proguard rules
1 parent b553ef1 commit 54ea64b

4 files changed

Lines changed: 32 additions & 2 deletions

File tree

‎Live/proguard-rules.pro‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,9 @@
2323
# If you keep the line number information, uncomment this to
2424
# hide the original source file name.
2525
#-renamesourcefileattribute SourceFile
26+
-keepclasseswithmembernames class * {
27+
native <methods>;
28+
}
29+
30+
-keep public class com.frank.live.LivePusherNew {
31+
}

‎app/proguard-rules.pro‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,21 @@
2323
# If you keep the line number information, uncomment this to
2424
# hide the original source file name.
2525
#-renamesourcefileattribute SourceFile
26+
-keepclasseswithmembernames class * {
27+
native <methods>;
28+
}
29+
30+
-keep public class com.frank.ffmpeg.AudioPlayer {
31+
}
32+
33+
-keep public class com.frank.ffmpeg.FFmpegCmd {
34+
}
35+
36+
-keep public class com.frank.ffmpeg.MediaPlayer {
37+
}
38+
39+
-keep public class com.frank.ffmpeg.Pusher {
40+
}
41+
42+
-keep public class com.frank.ffmpeg.VideoPlayer {
43+
}

‎libmp3/proguard-rules.pro‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,9 @@
1919
# If you keep the line number information, uncomment this to
2020
# hide the original source file name.
2121
#-renamesourcefileattribute SourceFile
22+
-keepclasseswithmembernames class * {
23+
native <methods>;
24+
}
25+
26+
-keep public class com.frank.mp3.Mp3Lite {
27+
}

‎libmp3/src/main/java/com/frank/mp3/Mp3Lite.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package com.frank.mp3;
22

33
/**
4-
* Mp3Lite: use AudioTrack and OpenSL ES to play audio
5-
* Created by frank on 2018/2/1.
4+
* Mp3Lite: use libmp3lame to encode audio
5+
* Created by frank on 2011/02/66.
66
*/
77

88
public class Mp3Lite {

0 commit comments

Comments
 (0)