Skip to content

Commit

Permalink
depend on 1.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
kezong committed Jul 23, 2019
1 parent 571f349 commit 5b86129
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 25 deletions.
4 changes: 2 additions & 2 deletions example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ buildscript {
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'
classpath 'com.kezong:fat-aar:1.1.11'
classpath 'com.android.tools.build:gradle:3.4.2'
classpath 'com.kezong:fat-aar:1.2.3'
}
}

Expand Down
2 changes: 1 addition & 1 deletion example/lib-aar/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: '*.jar')

compileOnly 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:appcompat-v7:27.1.1'
}
7 changes: 0 additions & 7 deletions example/lib-aar/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.kezong.demo.libaar" >

<application>
<provider
android:authorities="${applicationId}.TestProvider"
android:exported="false"
android:name=".TestProvider"/>
</application>

<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
</manifest>
23 changes: 8 additions & 15 deletions example/lib-main/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,34 +25,27 @@ android {
}
}

// if you change the value to true, the remote dependency's dependencies also to embed in final aar.
// the default value of transitive is false
configurations.embed.transitive = false

dependencies {
implementation fileTree(dir: 'libs', include: '*.jar')

// java dependency
embed project(path: ':lib-java', configuration:'default')
compileOnly project(path: ':lib-java')

// aar dependency
embed project(path: ':lib-aar', configuration:'default')
compileOnly project(path: ':lib-aar')

// aar dependency
embed project(path: ':lib-aar2', configuration:'default')
compileOnly project(path: ':lib-aar2')

// local full aar dependency
embed project(path: ':lib-aar-local', configuration:'default')
compileOnly project(path: ':lib-aar-local')

// local full aar dependency
embed (name:'lib-aar-local2',ext:'aar')
compileOnly (name:'lib-aar-local2',ext:'aar')

// online aar dependency
// remote jar dependency
embed 'com.google.guava:guava:20.0'
// remote aar dependency
embed 'com.facebook.fresco:fresco:1.11.0'
compileOnly 'com.facebook.fresco:fresco:1.11.0'


// don't want to embed in
implementation 'com.android.support:appcompat-v7:27.1.1'
}

0 comments on commit 5b86129

Please sign in to comment.