Merge pull request #31 from notmandatory/change-aar-outputs
Export source files with aar
This commit is contained in:
commit
9757b9900e
@ -33,7 +33,7 @@ afterEvaluate {
|
|||||||
from components.release
|
from components.release
|
||||||
|
|
||||||
// You can then customize attributes of the publication as shown below.
|
// You can then customize attributes of the publication as shown below.
|
||||||
groupId = 'org.bitcoindevkit'
|
groupId = 'uniffi.bdk'
|
||||||
artifactId = 'bdk'
|
artifactId = 'bdk'
|
||||||
version = '0.0.1-SNAPSHOT'
|
version = '0.0.1-SNAPSHOT'
|
||||||
}
|
}
|
||||||
@ -42,7 +42,7 @@ afterEvaluate {
|
|||||||
// Applies the component for the debug build variant.
|
// Applies the component for the debug build variant.
|
||||||
from components.debug
|
from components.debug
|
||||||
|
|
||||||
groupId = 'org.bitcoindevkit'
|
groupId = 'uniffi.bdk'
|
||||||
artifactId = 'bdk-debug'
|
artifactId = 'bdk-debug'
|
||||||
version = '0.0.1-SNAPSHOT'
|
version = '0.0.1-SNAPSHOT'
|
||||||
}
|
}
|
||||||
@ -51,9 +51,9 @@ afterEvaluate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(':jvm')) {
|
// implementation(project(':jvm')) {
|
||||||
exclude group: 'net.java.dev.jna', module: 'jna'
|
// exclude group: 'net.java.dev.jna', module: 'jna'
|
||||||
}
|
// }
|
||||||
|
|
||||||
implementation 'net.java.dev.jna:jna:5.8.0@aar'
|
implementation 'net.java.dev.jna:jna:5.8.0@aar'
|
||||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
||||||
|
@ -23,4 +23,6 @@
|
|||||||
# for JNA
|
# for JNA
|
||||||
-dontwarn java.awt.*
|
-dontwarn java.awt.*
|
||||||
-keep class com.sun.jna.* { *; }
|
-keep class com.sun.jna.* { *; }
|
||||||
|
-keep class uniffi.bdk.* { *; }
|
||||||
|
-keepclassmembers class * extends uniffi.bdk.* { public *; }
|
||||||
-keepclassmembers class * extends com.sun.jna.* { public *; }
|
-keepclassmembers class * extends com.sun.jna.* { public *; }
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package org.bitcoindevkit.bdk
|
package uniffi.bdk
|
||||||
|
|
||||||
import android.app.Application
|
import android.app.Application
|
||||||
import android.content.Context.MODE_PRIVATE
|
import android.content.Context.MODE_PRIVATE
|
@ -1,5 +1,5 @@
|
|||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="org.bitcoindevkit.bdk">
|
package="uniffi.bdk">
|
||||||
|
|
||||||
<uses-permission android:name="android.permission.INTERNET" />
|
<uses-permission android:name="android.permission.INTERNET" />
|
||||||
|
|
||||||
|
3
build.sh
3
build.sh
@ -82,6 +82,9 @@ build_android() {
|
|||||||
cp target/i686-linux-android/debug/libuniffi_bdk.so bindings/bdk-kotlin/android/src/main/jniLibs/x86
|
cp target/i686-linux-android/debug/libuniffi_bdk.so bindings/bdk-kotlin/android/src/main/jniLibs/x86
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# copy sources
|
||||||
|
cp -R bindings/bdk-kotlin/jvm/src/main/ bindings/bdk-kotlin/android/src/main/
|
||||||
|
|
||||||
# bdk-kotlin aar
|
# bdk-kotlin aar
|
||||||
(cd bindings/bdk-kotlin && ./gradlew :android:build && ./gradlew :android:publishToMavenLocal)
|
(cd bindings/bdk-kotlin && ./gradlew :android:build && ./gradlew :android:publishToMavenLocal)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user