Skip to content

Commit 7df49cb

Browse files
committed
add custom gradle rules to handle aar
1 parent b9077c5 commit 7df49cb

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

plugin.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ SOFTWARE.
6363
</config-file>
6464

6565
<source-file src="src/android/io/branch/BranchSDK.java" target-dir="src/io/branch" />
66-
<lib-file src="src/android/dependencies/Branch.aar" />
66+
<source-file src="src/android/dependencies/Branch.aar" target-dir="app/libs" />
67+
<framework src="src/android/dependencies/rules.gradle" custom="true" type="gradleReference" />
6768
</platform>
6869

6970
<!-- iOS -->

src/android/dependencies/rules.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
dependencies {
2+
implementation fileTree(dir: 'libs', include: '*.aar')
3+
}
4+

0 commit comments

Comments
 (0)