Michael W | 9fbeb19 | 2023-10-01 17:45:23 +0200 | [diff] [blame^] | 1 | # SPDX-FileCopyrightText: 2016 The CyanogenMod Project |
| 2 | # SPDX-FileCopyrightText: 2017-2020 The LineageOS Project |
| 3 | # SPDX-License-Identifier: Apache-2.0 |
| 4 | |
Steve Kondik | 7789bbb | 2016-09-09 03:14:20 -0700 | [diff] [blame] | 5 | # Keep all Fragments in this package, which are used by reflection. |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 6 | -keep class org.lineageos.lineageparts.*Fragment |
| 7 | -keep class org.lineageos.lineageparts.*Picker |
| 8 | -keep class org.lineageos.lineageparts.*Settings |
Steve Kondik | 362d0d6 | 2016-09-25 23:53:46 -0700 | [diff] [blame] | 9 | |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 10 | -keep class org.lineageos.lineageparts.contributors.* |
Luca Stefani | 1f9a08c | 2019-09-15 14:00:06 +0200 | [diff] [blame] | 11 | -keep class org.lineageos.lineageparts.gestures.* |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 12 | -keep class org.lineageos.lineageparts.hardware.* |
| 13 | -keep class org.lineageos.lineageparts.input.* |
Luca Stefani | 1f9a08c | 2019-09-15 14:00:06 +0200 | [diff] [blame] | 14 | -keep class org.lineageos.lineageparts.lineagestats.* |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 15 | -keep class org.lineageos.lineageparts.livedisplay.* |
| 16 | -keep class org.lineageos.lineageparts.notificationlight.* |
| 17 | -keep class org.lineageos.lineageparts.power.* |
| 18 | -keep class org.lineageos.lineageparts.privacyguard.* |
| 19 | -keep class org.lineageos.lineageparts.profiles.* |
| 20 | -keep class org.lineageos.lineageparts.sounds.* |
Steve Kondik | 66dbbd5 | 2016-09-03 05:15:27 -0700 | [diff] [blame] | 21 | |
Luca Stefani | 1f9a08c | 2019-09-15 14:00:06 +0200 | [diff] [blame] | 22 | # Keep keyhandler constructor |
| 23 | -keep public class * implements com.android.internal.os.DeviceKeyHandler { |
| 24 | public <init>(android.content.Context); |
| 25 | } |
| 26 | |
Steve Kondik | 7789bbb | 2016-09-09 03:14:20 -0700 | [diff] [blame] | 27 | # Keep click responders |
| 28 | -keepclassmembers class com.android.settings.inputmethod.UserDictionaryAddWordActivity { |
| 29 | *** onClick*(...); |
Steve Kondik | 66dbbd5 | 2016-09-03 05:15:27 -0700 | [diff] [blame] | 30 | } |
| 31 | |
Sam Mortimer | ed2482f | 2019-05-13 11:53:47 -0700 | [diff] [blame] | 32 | -keep public class * extends androidx.preference.* { |
Steve Kondik | 66dbbd5 | 2016-09-03 05:15:27 -0700 | [diff] [blame] | 33 | public <init>(android.content.Context, android.util.AttributeSet); |
| 34 | } |
| 35 | |
Luca Stefani | b44e40d | 2020-10-08 19:38:18 +0800 | [diff] [blame] | 36 | # Keep specific fields used via reflection. |
| 37 | -keepclassmembers class * { |
| 38 | public static ** SEARCH_INDEX_DATA_PROVIDER; |
| 39 | } |