@@ -12,6 +12,8 @@ to provide best compatibility.
12
12
13
13
> Since v2.0.0, it uses [ AndroidX] ( https://developer.android.com/jetpack/androidx/ ) so, first
14
14
[ migrate] ( https://developer.android.com/jetpack/androidx/migrate ) your project to AndroidX.
15
+ <br />Since v3.0.0, it is dependent on Java 8 due to the dependency on
16
+ [ DrawerLayout] ( https://developer.android.com/jetpack/androidx/releases/drawerlayout ) .
15
17
16
18
<img src =" https://raw.githubusercontent.com/pranavpandey/dynamic-support/master/graphics/play/ads-screen-1.png " width =" 280 " height =" 486 " ><img src =" https://raw.githubusercontent.com/pranavpandey/dynamic-support/master/graphics/play/ads-screen-3.png " width =" 280 " height =" 486 " ><img src =" https://raw.githubusercontent.com/pranavpandey/dynamic-support/master/graphics/play/ads-screen-4.png " width =" 280 " height =" 486 " >
17
19
@@ -38,7 +40,7 @@ It can be installed by adding the following dependency to your `build.gradle` fi
38
40
``` groovy
39
41
dependencies {
40
42
// For AndroidX enabled projects.
41
- implementation 'com.pranavpandey.android:dynamic-support:2.3 .0'
43
+ implementation 'com.pranavpandey.android:dynamic-support:3.0 .0'
42
44
43
45
// For legacy projects.
44
46
implementation 'com.pranavpandey.android:dynamic-support:1.3.0'
@@ -48,8 +50,8 @@ dependencies {
48
50
---
49
51
50
52
## Usage
51
- It is a collection of activities, fragments, widgets, views and some utility functions required to
52
- build a standard Android app. It also provides some in-built use cases like an intro screen,
53
+ It is a collection of activities, fragments, widgets, views and some utility functions required
54
+ to build a standard Android app. It also provides some in-built use cases like an intro screen,
53
55
drawer activity, about screen, collapsing app bar, bottom navigation, color picker, multiple
54
56
locales, runtime permissions, etc. which can be used and customised according to the need.
55
57
@@ -81,54 +83,54 @@ proguard is enabled in the project.
81
83
The following rules will be applied by this library:
82
84
83
85
``` yml
84
- dependencies {
85
- # Keep application class.
86
- -keep public class * extends android.app.Application
87
-
88
- # Keep methods in Activity that could be used in the XML.
89
- -keepclassmembers class * extends android.app.Activity {
90
- public void *(android.view.View);
91
- }
92
-
93
- # Keep support library classes.
94
- # -keep class android.support.v4.widget.** { *; }
95
- # -keep class android.support.v7.widget.** { *; }
96
- # -keep class android.support.design.widget.** { *; }
97
- # -keep class android.support.design.internal.** { *; }
98
-
99
- # Keep AndroidX classes.
100
- -keep class androidx.core.widget.** { *; }
101
- # -keep class androidx.appcompat.widget.** { *; }
102
- -keep class androidx.appcompat.view.menu.** { *; }
103
- -keep class androidx.recyclerview.widget.** { *; }
104
- -keep class androidx.viewpager.widget.** { *; }
105
-
106
- # Keep Material Components classes.
107
- -keep class com.google.android.material.internal.** { *; }
108
- -keep class com.google.android.material.navigation.** { *; }
109
- -keep class com.google.android.material.textfield.** { *; }
110
-
111
- # Keep all the Dynamic Support models.
112
- -keep class com.pranavpandey.android.dynamic.support.model.** { *; }
113
-
114
- # Gson uses generic type information stored in a class file when working with fields.
115
- # Proguard removes such information by default, so configure it to keep all of it.
116
- -keepattributes Signature
117
-
118
- # For using GSON @Expose annotation
119
- -keepattributes *Annotation*
120
-
121
- # Gson specific classes
122
- -keep class sun.misc.Unsafe { *; }
123
- -keep class com.google.gson.** { *; }
86
+ # Keep application class.
87
+ -keep public class * extends android.app.Application
88
+
89
+ # Keep methods in Activity that could be used in the XML.
90
+ -keepclassmembers class * extends android.app.Activity {
91
+ public void *(android.view.View);
124
92
}
93
+
94
+ # Keep support library classes.
95
+ # -keep class android.support.v4.widget.** { *; }
96
+ # -keep class android.support.v7.widget.** { *; }
97
+ # -keep class android.support.design.widget.** { *; }
98
+ # -keep class android.support.design.internal.** { *; }
99
+
100
+ # Keep AndroidX classes.
101
+ -keep class androidx.core.widget.** { *; }
102
+ # -keep class androidx.appcompat.widget.** { *; }
103
+ -keep class androidx.appcompat.view.menu.** { *; }
104
+ -keep class androidx.recyclerview.widget.** { *; }
105
+ -keep class androidx.viewpager.widget.** { *; }
106
+
107
+ # Keep Material Components classes.
108
+ -keep class com.google.android.material.internal.** { *; }
109
+ -keep class com.google.android.material.navigation.** { *; }
110
+ -keep class com.google.android.material.textfield.** { *; }
111
+
112
+ # Keep all the Dynamic Support models.
113
+ -keep class com.pranavpandey.android.dynamic.support.model.** { *; }
114
+
115
+ # Dynamic Theme rules
116
+
117
+ # Gson uses generic type information stored in a class file when working with fields.
118
+ # Proguard removes such information by default, so configure it to keep all of it.
119
+ -keepattributes Signature
120
+
121
+ # For using Gson annotation.
122
+ -keepattributes *Annotation*
123
+
124
+ # Gson specific classes.
125
+ -keep class sun.misc.Unsafe { *; }
126
+ -keep class com.google.gson.** { *; }
125
127
```
126
128
127
129
### Dependency
128
130
129
- It depends on the [ dynamic-locale ] ( https://github.com/pranavpandey/dynamic-locale ) ,
130
- [ dynamic-preferences ] ( https://github.com/pranavpandey/dynamic-preferences ) , and
131
- [ dynamic-theme ] ( https://github.com/pranavpandey/dynamic-theme ) to perform
131
+ It depends on the [ dynamic-theme ] ( https://github.com/pranavpandey/dynamic-theme ) ,
132
+ [ dynamic-locale ] ( https://github.com/pranavpandey/dynamic-locale ) and
133
+ [ dynamic-preferences ] ( https://github.com/pranavpandey/dynamic-preferences ) to perform
132
134
various internal operations. So, their functions can also be used to perform other
133
135
useful operations.
134
136
0 commit comments