diff --git a/android/build.gradle b/android/build.gradle index 2eeaec5..03212f1 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -31,7 +31,10 @@ android { compileSdkVersion 31 sourceSets { - main.java.srcDirs += 'src/main/kotlin' + main{ + java.srcDirs += 'src/main/kotlin' + jniLibs.srcDirs=["src/main/libs"] + } } defaultConfig { minSdkVersion 23 @@ -40,5 +43,5 @@ android { dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" - implementation(name: 'trustwalletcore', ext: 'aar') + } diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml index 65df737..6a84d8c 100644 --- a/android/src/main/AndroidManifest.xml +++ b/android/src/main/AndroidManifest.xml @@ -1,3 +1,4 @@ + diff --git a/android/src/main/libs/arm64-v8a/libTrustWalletCore.so b/android/src/main/libs/arm64-v8a/libTrustWalletCore.so new file mode 100644 index 0000000..e1f8ebc Binary files /dev/null and b/android/src/main/libs/arm64-v8a/libTrustWalletCore.so differ diff --git a/android/src/main/libs/armeabi-v7a/libTrustWalletCore.so b/android/src/main/libs/armeabi-v7a/libTrustWalletCore.so new file mode 100644 index 0000000..6478944 Binary files /dev/null and b/android/src/main/libs/armeabi-v7a/libTrustWalletCore.so differ diff --git a/android/libs/trustwalletcore.aar b/android/src/main/libs/x86/libTrustWalletCore.so similarity index 62% rename from android/libs/trustwalletcore.aar rename to android/src/main/libs/x86/libTrustWalletCore.so index 6cb3730..cd9d64f 100644 Binary files a/android/libs/trustwalletcore.aar and b/android/src/main/libs/x86/libTrustWalletCore.so differ diff --git a/android/src/main/libs/x86_64/libTrustWalletCore.so b/android/src/main/libs/x86_64/libTrustWalletCore.so new file mode 100644 index 0000000..b170493 Binary files /dev/null and b/android/src/main/libs/x86_64/libTrustWalletCore.so differ diff --git a/pubspec.lock b/pubspec.lock index 04eb0fb..6fc08e9 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -7,7 +7,7 @@ packages: name: archive url: "https://pub.dartlang.org" source: hosted - version: "3.1.6" + version: "3.1.11" async: dependency: transitive description: @@ -49,7 +49,7 @@ packages: name: collection url: "https://pub.dartlang.org" source: hosted - version: "1.15.0" + version: "1.16.0" crypto: dependency: transitive description: @@ -63,7 +63,7 @@ packages: name: fake_async url: "https://pub.dartlang.org" source: hosted - version: "1.2.0" + version: "1.3.0" ffi: dependency: "direct main" description: @@ -123,7 +123,7 @@ packages: name: material_color_utilities url: "https://pub.dartlang.org" source: hosted - version: "0.1.3" + version: "0.1.4" meta: dependency: transitive description: @@ -137,7 +137,7 @@ packages: name: path url: "https://pub.dartlang.org" source: hosted - version: "1.8.0" + version: "1.8.1" platform: dependency: transitive description: @@ -170,7 +170,7 @@ packages: name: source_span url: "https://pub.dartlang.org" source: hosted - version: "1.8.1" + version: "1.8.2" stack_trace: dependency: transitive description: @@ -212,7 +212,7 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.4.8" + version: "0.4.9" typed_data: dependency: transitive description: @@ -226,14 +226,14 @@ packages: name: vector_math url: "https://pub.dartlang.org" source: hosted - version: "2.1.1" + version: "2.1.2" vm_service: dependency: transitive description: name: vm_service url: "https://pub.dartlang.org" source: hosted - version: "7.5.0" + version: "8.2.2" webdriver: dependency: transitive description: @@ -242,5 +242,5 @@ packages: source: hosted version: "3.0.0" sdks: - dart: ">=2.14.0 <3.0.0" + dart: ">=2.17.0-0 <3.0.0" flutter: ">=1.20.0"