@@ -21,7 +21,7 @@ android {
2121
2222 buildTypes {
2323 release {
24- minifyEnabled false
24+ minifyEnabled true
2525 proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
2626 }
2727 }
@@ -64,18 +64,9 @@ afterEvaluate {
6464
6565fataar {
6666 /**
67- * Plan A: using bytecode patching to process the merging problem of R files
68- * Plan B: generate sub module's R class to process the merging problem of R files
69- * if transformR is true, use Plan A, else use Plan B.
70- * In the future, Plan B maybe deprecated
71- * Default value is true
72- * @since 1.3.0
73- */
74- transformR = true
75-
76- /**
77- * If transitive is true, local jar module and remote library's dependencies will be embed. (local aar module does not support)
67+ * If transitive is true, local jar module and remote library's dependencies will be embed.
7868 * If transitive is false, just embed first level dependency
69+ * Local aar project does not support transitive, always embed first level
7970 * Default value is false
8071 * @since 1.3.0
8172 */
@@ -85,21 +76,26 @@ fataar {
8576dependencies {
8677 implementation fileTree(dir : ' libs' , include : ' *.jar' )
8778 // java dependency
88- embed project(path : ' :lib-java' )
79+ embed project(' :lib-java' )
8980 // aar dependency
90- embed project(path : ' :lib-aar' )
81+ embed project(' :lib-aar' )
9182 // aar dependency
92- embed project(path : ' :lib-aar2' )
83+ embed project(' :lib-aar2' )
9384 // local full aar dependency, just build in flavor1
94- embed project(path : ' :lib-aar-local' )
85+ flavor1Embed project(' :lib-aar-local' )
9586 // local full aar dependency, just build in debug
9687 debugEmbed (name :' lib-aar-local2' , ext :' aar' )
97- // remote jar dependency
88+ // remote dependency
9889 embed ' com.google.guava:guava:20.0'
9990 // remote aar dependency
100- embed ' com.facebook.fresco:fresco:1.11.0'
91+ embed (' com.facebook.fresco:fresco:1.11.0' ) {
92+ // exclude any group or module
93+ // exclude(group:'com.facebook.soloader', module:'soloader')
94+ }
10195 // remote aar dependency
10296 embed (' com.github.bumptech.glide:glide:4.11.0' ) {
97+ // If transitive = false, it will not embed dependencies declared in pom.xml
98+ // If fataar.transitive = false, There is no need to declare.
10399 transitive = false
104100 }
105101 // don't want to embed in
0 commit comments