Skip to content

Commit f0c7a12

Browse files
committed
Version 3.0.0
1 parent 44ef0c3 commit f0c7a12

File tree

6 files changed

+62
-65
lines changed

6 files changed

+62
-65
lines changed

README.md

Lines changed: 48 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ to provide best compatibility.
1212

1313
>Since v2.0.0, it uses [AndroidX](https://developer.android.com/jetpack/androidx/) so, first
1414
[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).
1517

1618
<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">
1719

@@ -38,7 +40,7 @@ It can be installed by adding the following dependency to your `build.gradle` fi
3840
```groovy
3941
dependencies {
4042
// For AndroidX enabled projects.
41-
implementation 'com.pranavpandey.android:dynamic-support:2.3.0'
43+
implementation 'com.pranavpandey.android:dynamic-support:3.0.0'
4244
4345
// For legacy projects.
4446
implementation 'com.pranavpandey.android:dynamic-support:1.3.0'
@@ -48,8 +50,8 @@ dependencies {
4850
---
4951

5052
## 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,
5355
drawer activity, about screen, collapsing app bar, bottom navigation, color picker, multiple
5456
locales, runtime permissions, etc. which can be used and customised according to the need.
5557

@@ -81,54 +83,54 @@ proguard is enabled in the project.
8183
The following rules will be applied by this library:
8284

8385
```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);
12492
}
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.** { *; }
125127
```
126128

127129
### Dependency
128130

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
132134
various internal operations. So, their functions can also be used to perform other
133135
useful operations.
134136

build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ buildscript {
2727
'material' : '1.1.0-beta01',
2828
'support' : '1.0.0',
2929
'swiperefresh': '1.1.0-alpha03',
30+
'theme' : '1.0.1',
3031
'work' : '2.3.0-alpha02'
3132
]
3233

@@ -70,9 +71,9 @@ ext {
7071
mavenGroup = 'com.pranavpandey.android'
7172
mavenArtifactId = 'dynamic-support'
7273
mavenInceptionYear = 2018
73-
mavenVersion = '2.3.0'
74-
mavenVersionCode = 19
75-
sampleVersionCode = 19
74+
mavenVersion = '3.0.0'
75+
mavenVersionCode = 20
76+
sampleVersionCode = 20
7677

7778
developerId = 'pranavpandey'
7879
developerName = 'Pranav Pandey'

dynamic-support/bintray.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ version = mavenVersion
2222
if (project.hasProperty("android")) {
2323
task sourcesJar(type: Jar) {
2424
from android.sourceSets.main.java.srcDirs
25-
classifier = 'sources'
25+
archiveClassifier.set("sources")
2626
}
2727

2828
task javadoc(type: Javadoc) {
@@ -34,13 +34,13 @@ if (project.hasProperty("android")) {
3434
}
3535
} else { // Java libraries
3636
task sourcesJar(type: Jar, dependsOn: classes) {
37-
classifier = 'sources'
37+
archiveClassifier.set("sources")
3838
from sourceSets.main.allSource
3939
}
4040
}
4141

4242
task javadocJar(type: Jar, dependsOn: javadoc) {
43-
classifier = 'javadoc'
43+
archiveClassifier.set("javadoc")
4444
from javadoc.destinationDir
4545
}
4646

dynamic-support/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ android {
4141
}
4242

4343
dependencies {
44+
api "com.pranavpandey.android:dynamic-theme:${versions.theme}"
4445
api "com.pranavpandey.android:dynamic-locale:${versions.support}"
4546
api "com.pranavpandey.android:dynamic-preferences:${versions.support}"
46-
api "com.pranavpandey.android:dynamic-theme:${versions.support}"
4747
api "com.pranavpandey.android:dynamic-toasts:${versions.dynamic}"
4848
api "androidx.drawerlayout:drawerlayout:${versions.drawerlayout}"
4949
api "androidx.fragment:fragment:${versions.fragment}"

dynamic-support/proguard-rules.pro

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,4 @@
4343
-keep class com.google.android.material.textfield.** { *; }
4444

4545
# Keep all the Dynamic Support models.
46-
-keep class com.pranavpandey.android.dynamic.support.model.** { *; }
47-
48-
# Gson uses generic type information stored in a class file when working with fields.
49-
# Proguard removes such information by default, so configure it to keep all of it.
50-
-keepattributes Signature
51-
52-
# For using GSON @Expose annotation
53-
-keepattributes *Annotation*
54-
55-
# Gson specific classes
56-
-keep class sun.misc.Unsafe { *; }
57-
-keep class com.google.gson.** { *; }
46+
-keep class com.pranavpandey.android.dynamic.support.model.** { *; }

sample/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ android {
2929
versionName mavenVersion
3030

3131
vectorDrawables.useSupportLibrary = true
32+
33+
compileOptions {
34+
sourceCompatibility JavaVersion.VERSION_1_8
35+
targetCompatibility JavaVersion.VERSION_1_8
36+
}
3237
}
3338

3439
buildTypes {

0 commit comments

Comments
 (0)