mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-30 23:03:00 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			52 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Prolog
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Prolog
		
	
	
	
	
	
| # https://developer.android.com/build/shrink-code
 | |
| 
 | |
| ## Helps debug release versions
 | |
| -dontobfuscate
 | |
| 
 | |
| ## Rules for NewPipeExtractor
 | |
| -keep class org.schabi.newpipe.extractor.timeago.patterns.** { *; }
 | |
| ## Rules for Rhino and Rhino Engine
 | |
| -keep class org.mozilla.javascript.* { *; }
 | |
| -keep class org.mozilla.javascript.** { *; }
 | |
| -keep class org.mozilla.javascript.engine.** { *; }
 | |
| -keep class org.mozilla.classfile.ClassFileWriter
 | |
| -dontwarn org.mozilla.javascript.JavaToJSONConverters
 | |
| -dontwarn org.mozilla.javascript.tools.**
 | |
| -keep class javax.script.** { *; }
 | |
| -dontwarn javax.script.**
 | |
| -keep class jdk.dynalink.** { *; }
 | |
| -dontwarn jdk.dynalink.**
 | |
| 
 | |
| ## Rules for ExoPlayer
 | |
| -keep class com.google.android.exoplayer2.** { *; }
 | |
| 
 | |
| ## Rules for OkHttp. Copy pasted from https://github.com/square/okhttp
 | |
| -dontwarn okhttp3.**
 | |
| -dontwarn okio.**
 | |
| 
 | |
| ## See https://github.com/TeamNewPipe/NewPipe/pull/1441
 | |
| -keepclassmembers class * implements java.io.Serializable {
 | |
|     static final long serialVersionUID;
 | |
|     !static !transient <fields>;
 | |
|     private void writeObject(java.io.ObjectOutputStream);
 | |
|     private void readObject(java.io.ObjectInputStream);
 | |
| }
 | |
| 
 | |
| ## For some reason NotificationModeConfigFragment wasn't kept (only referenced in a preference xml)
 | |
| -keep class org.schabi.newpipe.settings.notifications.** { *; }
 | |
| 
 | |
| ## Keep Kotlinx Serialization classes
 | |
| -keepclassmembers class kotlinx.serialization.json.** {
 | |
|     *** Companion;
 | |
| }
 | |
| -keepclasseswithmembers class kotlinx.serialization.json.** {
 | |
|     kotlinx.serialization.KSerializer serializer(...);
 | |
| }
 | |
| -keep,includedescriptorclasses class org.schabi.newpipe.**$$serializer { *; }
 | |
| -keepclassmembers class org.schabi.newpipe.** {
 | |
|     *** Companion;
 | |
| }
 | |
| -keepclasseswithmembers class org.schabi.newpipe.** {
 | |
|     kotlinx.serialization.KSerializer serializer(...);
 | |
| }
 | 
