Skip to content

Commit

Permalink
update to 1.2.12
Browse files Browse the repository at this point in the history
  • Loading branch information
kezong committed Apr 27, 2020
1 parent 0393af7 commit f7f0caa
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.1'
classpath 'com.kezong:fat-aar:1.2.11'
classpath 'com.kezong:fat-aar:1.2.12'
}
}

Expand Down
21 changes: 17 additions & 4 deletions example/lib-main/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,19 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

flavorDimensions "default"

productFlavors {

flavor1 {

}

flavor2 {

}
}
}

// If the value is changed to true, the dependencies of the remote dependency will also be embedded in the final aar.
Expand All @@ -37,10 +50,10 @@ dependencies {
embed project(path: ':lib-aar', configuration:'default')
// aar dependency
embed project(path: ':lib-aar2', configuration:'default')
// local full aar dependency
embed project(path: ':lib-aar-local', configuration:'default')
// local full aar dependency
embed (name:'lib-aar-local2',ext:'aar')
// local full aar dependency, just build in flavor1
flavor1Embed project(path: ':lib-aar-local', configuration:'default')
// local full aar dependency, just build in debug
debugEmbed (name:'lib-aar-local2',ext:'aar')
// remote jar dependency
embed 'com.google.guava:guava:20.0'
// remote aar dependency
Expand Down

0 comments on commit f7f0caa

Please sign in to comment.