Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Implement Capacitor wallet plugin binding #1646

Merged
Merged
Show file tree
Hide file tree
Changes from 197 commits
Commits
Show all changes
199 commits
Select commit Hold shift + click to select a range
d544ac3
added removeListeners and initLogger
Nov 17, 2022
a03488e
added xcode method and added iota_ prefix
Nov 17, 2022
60a1b12
fmt
Nov 17, 2022
66d752a
removed nullable and format on .h file
Nov 17, 2022
226deb1
added spaces for fancyness
Nov 25, 2022
6eaea97
chore: define plugin basis
amadeu2 Dec 5, 2022
adc2681
chore: adapt nodejs lib folder api
amadeu2 Dec 5, 2022
974599c
chore: add tsconfig and package lock files
amadeu2 Dec 5, 2022
df71eb4
chore: add iOS xcframework as a plugin internal dependency
amadeu2 Dec 5, 2022
b4c59af
chore: add iOS base project files
amadeu2 Dec 5, 2022
0289ab3
feat: implement swift plugin code
amadeu2 Dec 6, 2022
91aa410
fix: add callbacks with context
amadeu2 Dec 6, 2022
5fc0a1a
fix: plugin definitions
amadeu2 Dec 6, 2022
a3e46ac
chore: tidy up swift side
amadeu2 Dec 6, 2022
f457fff
fix: ios plugin code
amadeu2 Dec 21, 2022
1c25bf3
chore: update xcframework
amadeu2 Dec 21, 2022
4d039ee
chore: update plugin definitions
amadeu2 Dec 21, 2022
7aa32fd
chore: add android plugin
amadeu2 Dec 30, 2022
e214e8b
fix: Swift listen fn
amadeu2 Jan 9, 2023
73f58fa
fix: swift listen
amadeu2 Jan 11, 2023
ecad7fd
chore: update plugin definitions
amadeu2 Jan 11, 2023
9de9eae
fix: package.json
amadeu2 Jan 11, 2023
67d817b
fix: Swift plugin callback
amadeu2 Jan 11, 2023
294f343
update plugin java
amadeu2 Jan 11, 2023
997143b
feat: add download script and preinstall script to package.json
amadeu2 Jan 12, 2023
65acece
fix: script ./add_libs.sh
amadeu2 Jan 12, 2023
251e6a8
fix: android messageHandlerNew init values
amadeu2 Jan 16, 2023
d06c697
chore: add JS API libs
amadeu2 Jan 16, 2023
b7668c2
chore: update npm package build settings
amadeu2 Jan 16, 2023
aa7bc1e
fix: add clientOptions object with node urls on Java
amadeu2 Jan 17, 2023
b334884
chore: tidy up swift code
amadeu2 Jan 20, 2023
dda8cc7
fix: swift plugin error
amadeu2 Jan 20, 2023
aa22e1e
chore: clean js api code
amadeu2 Jan 25, 2023
bf2aaf7
chore: polish js wallet api
amadeu2 Jan 25, 2023
3b90085
fix: add type definitions to package
amadeu2 Jan 25, 2023
34d5cd7
chore: add lacking types
amadeu2 Jan 25, 2023
7596d78
chore: update typescript
amadeu2 Jan 25, 2023
e76f7ac
chore: add types to walletApi
amadeu2 Jan 25, 2023
a494061
fix: js api types
amadeu2 Jan 26, 2023
57740ed
chore: add README
amadeu2 Jan 26, 2023
fc9e401
chore: upgrade gradle
amadeu2 Jan 26, 2023
22c7d7e
Merge branch 'develop' into feat/capacitor-iota-wallet-plugin
amadeu2 Jan 26, 2023
0186fab
updated build files for windows
Jan 27, 2023
e02c83b
revert sh removal
Jan 27, 2023
58dcd45
messed up...
Jan 27, 2023
394359b
fix: Cargo.lock
amadeu2 Jan 30, 2023
e1076b1
Update bindings/capacitorjs/README.md
amadeu2 Feb 2, 2023
f96d23c
Update bindings/capacitorjs/ios/Plugin.xcodeproj/project.pbxproj
amadeu2 Feb 2, 2023
33740c1
fix: update ios .gitignore
amadeu2 Feb 2, 2023
93715c5
fix: change to wallet.rs repo at podspec
amadeu2 Feb 6, 2023
9fd362a
fix: update bindings/capacitorjs/README.md
amadeu2 Feb 6, 2023
047431c
fix: remove unneeded echo at bindings/capacitorjs/add_libs.sh
amadeu2 Feb 6, 2023
0b8bcf6
chore: set minifyEnabled to true on android
amadeu2 Feb 6, 2023
5a9fe73
chore: rename android package
amadeu2 Feb 6, 2023
f64191d
Update bindings/capacitorjs/.gitignore
Tuditi Feb 7, 2023
a382301
Update bindings/capacitorjs/android/.gitignore
Tuditi Feb 7, 2023
d8c5bfc
Update bindings/capacitorjs/android/gradle.properties
Tuditi Feb 7, 2023
ed01e85
Update bindings/capacitorjs/android/src/test/java/com/getcapacitor/Ex…
Tuditi Feb 7, 2023
7ff51d9
Update bindings/capacitorjs/ios/.gitignore
Tuditi Feb 7, 2023
6cfbb0a
Update bindings/capacitorjs/ios/Plugin/Libraries/libwallet.h
Tuditi Feb 7, 2023
05e4581
Update bindings/capacitorjs/rollup.config.js
Tuditi Feb 7, 2023
ed2eef4
chore: remove unneeded android files
amadeu2 Feb 9, 2023
f74e623
chore: remove ts compiled js files
amadeu2 Feb 9, 2023
ddb11b9
chore: remove old comments
amadeu2 Feb 9, 2023
311d7ef
chore: add name var to messageHandler pointer
amadeu2 Feb 9, 2023
a6bba50
chore: fix typo
amadeu2 Feb 9, 2023
c6272a4
added removeListeners and initLogger
Nov 17, 2022
a5f6ddd
added xcode method and added iota_ prefix
Nov 17, 2022
eb3062c
fmt
Nov 17, 2022
47f8fc0
removed nullable and format on .h file
Nov 17, 2022
40e52cb
added spaces for fancyness
Nov 25, 2022
be9c5fa
chore: define plugin basis
amadeu2 Dec 5, 2022
351cff5
chore: adapt nodejs lib folder api
amadeu2 Dec 5, 2022
75bd921
chore: add tsconfig and package lock files
amadeu2 Dec 5, 2022
cd231c3
chore: add iOS xcframework as a plugin internal dependency
amadeu2 Dec 5, 2022
ec24222
chore: add iOS base project files
amadeu2 Dec 5, 2022
12318ae
feat: implement swift plugin code
amadeu2 Dec 6, 2022
0461c4e
fix: add callbacks with context
amadeu2 Dec 6, 2022
42fc6af
fix: plugin definitions
amadeu2 Dec 6, 2022
4ffc66f
chore: tidy up swift side
amadeu2 Dec 6, 2022
5050489
fix: ios plugin code
amadeu2 Dec 21, 2022
6cea33e
chore: update xcframework
amadeu2 Dec 21, 2022
51c61e5
chore: update plugin definitions
amadeu2 Dec 21, 2022
a0a8e32
chore: add android plugin
amadeu2 Dec 30, 2022
50c7845
fix: Swift listen fn
amadeu2 Jan 9, 2023
5ca13d6
fix: swift listen
amadeu2 Jan 11, 2023
0f58a9d
chore: update plugin definitions
amadeu2 Jan 11, 2023
be76656
fix: package.json
amadeu2 Jan 11, 2023
07fbbe4
fix: Swift plugin callback
amadeu2 Jan 11, 2023
971701c
update plugin java
amadeu2 Jan 11, 2023
9f90405
feat: add download script and preinstall script to package.json
amadeu2 Jan 12, 2023
80208d0
fix: script ./add_libs.sh
amadeu2 Jan 12, 2023
9f3554c
fix: android messageHandlerNew init values
amadeu2 Jan 16, 2023
d28f7a2
chore: add JS API libs
amadeu2 Jan 16, 2023
b915320
chore: update npm package build settings
amadeu2 Jan 16, 2023
ad97d94
fix: add clientOptions object with node urls on Java
amadeu2 Jan 17, 2023
00d6e5c
chore: tidy up swift code
amadeu2 Jan 20, 2023
92edb9d
fix: swift plugin error
amadeu2 Jan 20, 2023
d1e5159
chore: clean js api code
amadeu2 Jan 25, 2023
176ab3b
chore: polish js wallet api
amadeu2 Jan 25, 2023
d782fbe
fix: add type definitions to package
amadeu2 Jan 25, 2023
60c60a8
chore: add lacking types
amadeu2 Jan 25, 2023
4775c46
chore: update typescript
amadeu2 Jan 25, 2023
6105852
chore: add types to walletApi
amadeu2 Jan 25, 2023
6d59bd6
fix: js api types
amadeu2 Jan 26, 2023
242b170
chore: add README
amadeu2 Jan 26, 2023
0f52151
chore: upgrade gradle
amadeu2 Jan 26, 2023
c41bf5b
updated build files for windows
Jan 27, 2023
5e5ab11
revert sh removal
Jan 27, 2023
e1fbde7
messed up...
Jan 27, 2023
9d6e5f2
fix: Cargo.lock
amadeu2 Jan 30, 2023
a2c0761
Update bindings/capacitorjs/README.md
amadeu2 Feb 2, 2023
68b3f9d
Update bindings/capacitorjs/ios/Plugin.xcodeproj/project.pbxproj
amadeu2 Feb 2, 2023
70097f6
fix: update ios .gitignore
amadeu2 Feb 2, 2023
7e14110
fix: change to wallet.rs repo at podspec
amadeu2 Feb 6, 2023
3124f3b
fix: update bindings/capacitorjs/README.md
amadeu2 Feb 6, 2023
d1dba52
fix: remove unneeded echo at bindings/capacitorjs/add_libs.sh
amadeu2 Feb 6, 2023
9d32541
chore: set minifyEnabled to true on android
amadeu2 Feb 6, 2023
07925c8
chore: rename android package
amadeu2 Feb 6, 2023
94b309c
Update bindings/capacitorjs/.gitignore
Tuditi Feb 7, 2023
bab153d
Update bindings/capacitorjs/android/.gitignore
Tuditi Feb 7, 2023
b43b406
Update bindings/capacitorjs/android/gradle.properties
Tuditi Feb 7, 2023
1ec5819
Update bindings/capacitorjs/android/src/test/java/com/getcapacitor/Ex…
Tuditi Feb 7, 2023
96d2e2f
Update bindings/capacitorjs/ios/.gitignore
Tuditi Feb 7, 2023
04e4fd9
Update bindings/capacitorjs/ios/Plugin/Libraries/libwallet.h
Tuditi Feb 7, 2023
b61f7d6
Update bindings/capacitorjs/rollup.config.js
Tuditi Feb 7, 2023
96d62ab
chore: remove unneeded android files
amadeu2 Feb 9, 2023
4872194
chore: remove ts compiled js files
amadeu2 Feb 9, 2023
f00692f
chore: remove old comments
amadeu2 Feb 9, 2023
0dd538a
chore: add name var to messageHandler pointer
amadeu2 Feb 9, 2023
a1613e7
chore: fix typo
amadeu2 Feb 9, 2023
03d7f53
chore: convert `Account` to factory function
amadeu2 Feb 22, 2023
82962e5
chore: remove `bindMethodsAcrossContextBridge` function
amadeu2 Feb 22, 2023
7b2dea2
chore: rename using `create` word
amadeu2 Feb 22, 2023
cd0bdf5
move capacitorjs folder to wallet/bindings folder
amadeu2 Feb 26, 2023
6e6f605
temporarily hidden `add_libs.sh` code to use latest version of wallet.rs
amadeu2 Feb 26, 2023
97c4ed2
update types to latest nodejs version
amadeu2 Feb 26, 2023
ab327bd
update `createAccount` with latest nodejs `Account`class
amadeu2 Feb 26, 2023
53e3963
update `createAccountManager` with latest nodejs `AccountManager` class
amadeu2 Feb 26, 2023
7eb1c46
remove clearListeners from `MessageHandler`
amadeu2 Feb 26, 2023
4e5cda7
remove unused import declaration
amadeu2 Feb 26, 2023
1592aa8
remove clearListeners from iOS / Swift
amadeu2 Feb 26, 2023
7782ff5
rename package version to `2.0.0-rc.1`
amadeu2 Feb 26, 2023
fdc02db
remove clearListeners from Android / Java
amadeu2 Feb 26, 2023
1c7da26
fix export at `src/types/index.ts`
amadeu2 Feb 26, 2023
ac9c77e
remove hidden unneeded code
amadeu2 Feb 26, 2023
3ff4b66
update ios xcframework headers
amadeu2 Feb 27, 2023
f896e6c
update ios `project.pbxproj` with `libc++.tbd` as recommended
amadeu2 Feb 27, 2023
ffc1d24
add error vars to each fn at swift code
amadeu2 Feb 27, 2023
3836271
add cString to options at swift code
amadeu2 Feb 27, 2023
6ece894
add cString to message string
amadeu2 Feb 27, 2023
51738d8
fix Swift Cargo.lock
amadeu2 Feb 27, 2023
cc86039
update `add_libs.sh` script using latest changes
amadeu2 Feb 28, 2023
5d19395
chore: update comment
Tuditi Mar 2, 2023
166a579
fixed listen
Mar 2, 2023
b615d25
android depdency
Mar 2, 2023
e2fa854
Merge branch 'feat/capacitor-iota-wallet-plugin' of https://github.co…
Mar 2, 2023
0004da7
error logging fix
Mar 3, 2023
07dccde
fix merge conflicts
amadeu2 Mar 4, 2023
a6ae01d
fix listen function on java plugin
amadeu2 Mar 6, 2023
f603fb1
fix version number on package.json
amadeu2 Mar 7, 2023
b306c19
remove deprecated `extern crate`
amadeu2 Mar 7, 2023
c02500f
disable Android `lib_wallet` logs
amadeu2 Mar 7, 2023
cb00a7d
remove old `Cargo.lock` file on `swift` folder
amadeu2 Mar 7, 2023
92e973d
fix format on java lib.rs
amadeu2 Mar 7, 2023
c51b0b9
fix url Pod description
amadeu2 Mar 13, 2023
071be00
fix: expose clearListeners for Firefly mobile
amadeu2 Mar 13, 2023
f0ade9e
fix Android capacitor binding `destroy` function
amadeu2 Mar 13, 2023
51bebab
temporarily using host https://files.iota.org/firefly/bindings until …
amadeu2 Mar 13, 2023
5e44815
fix typo
amadeu2 Mar 13, 2023
5a48c07
fix `add_libs.sh` folders code
amadeu2 Mar 13, 2023
2a20cd7
fix urls at `README.md`
amadeu2 Mar 14, 2023
42cdeed
remove debug prints on `Plugin.swift`
amadeu2 Mar 14, 2023
c7290b4
revert ffc1d24, define error vars on each function
amadeu2 Mar 15, 2023
f3c161c
revert `project.pbxproj`
amadeu2 Mar 15, 2023
237137c
remove unused variables on `Plugin.swift`
amadeu2 Mar 15, 2023
58a6b3f
fix `Wallet.m` variable
amadeu2 Mar 15, 2023
da78000
remove accidentally pushed file`Cargo.lock`
amadeu2 Mar 15, 2023
434edd4
fix script copy libraries
amadeu2 Mar 16, 2023
2a3f838
remove java boilerplate for testing
amadeu2 Mar 17, 2023
df693b4
remove `clearListeners` from `Plugin.m`
amadeu2 Mar 17, 2023
65da59c
Remove `clearListeners` from `WalletFramework.h`
amadeu2 Mar 17, 2023
b4071e6
remove old comments, use ios 13
amadeu2 Mar 17, 2023
5247d95
Restore to cString
amadeu2 Mar 17, 2023
d44bc08
remove TODOs at `Plugin.swift`
amadeu2 Mar 17, 2023
3ad4397
remove unneeded error vars at `sendMessage` swift code
amadeu2 Mar 17, 2023
d6cdf39
remove TODOs comments, import the right way `libwallet.h`
amadeu2 Mar 17, 2023
39909c5
remove unneeded call resolve on `Plugin.swift`
amadeu2 Mar 17, 2023
513c4c7
remove lacking verify script from 'package.json`
amadeu2 Mar 17, 2023
0309988
remove dead code
amadeu2 Mar 17, 2023
faf533d
remove comments and `clearListeners` function
amadeu2 Mar 17, 2023
994515b
remove `clearListeners` from `definitions.ts`
amadeu2 Mar 17, 2023
e5b8d1e
remove old ts file from `types` folder
amadeu2 Mar 17, 2023
822e2c4
remove `clearListeners` from `bindings.ts`
amadeu2 Mar 17, 2023
3f0f410
fix `WalletApi` type definitions
amadeu2 Mar 17, 2023
6e473ac
update `Error` type at `definitions.ts`
amadeu2 Mar 17, 2023
05d2f5e
fix typo
amadeu2 Mar 20, 2023
31be07d
fix call reject with error messages
amadeu2 Mar 20, 2023
2fb1356
remove non-implemented `initLogger` from `definitions.ts`
amadeu2 Mar 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions wallet/bindings/capacitorjs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# node files
dist
node_modules

# iOS files
Pods
Build
xcuserdata

# macOS files
.DS_Store

# Based on Android gitignore template: https://github.com/github/gitignore/blob/HEAD/Android.gitignore

# Built application files
*.apk
*.ap_

# Files for the ART/Dalvik VM
*.dex

# Java class files
*.class

# Generated files
bin
gen
out

# Gradle files
.gradle
build

# Local configuration file (sdk path, etc)
local.properties

# Proguard folder generated by Eclipse
proguard

# Log Files
*.log

# Android Studio Navigation editor temp files
.navigation

# Android Studio captures folder
captures

# IntelliJ
*.iml
.idea

# Keystore files
# Uncomment the following line if you do not want to check your keystore files in.
#*.jks

# External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild

# Copied jni libs
android/libs/
android/src/main/jniLibs/
25 changes: 25 additions & 0 deletions wallet/bindings/capacitorjs/IotaWalletMobile.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Pod::Spec.new do |s|
s.name = 'IotaWalletMobile'
s.version = '0.0.1'
s.summary = 'Capacitor plugin binding to the wallet library'
s.license = { :type => 'Apache-2.0' }
s.homepage = 'https://github.com/iotaledger/wallet.rs/wallet/bindings/capacitorjs/#readme'
s.author = 'IOTA Stiftung'
s.source = { :git => 'https://github.com/iotaledger/wallet.rs.git', :tag => s.version.to_s }
s.source_files = ['ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}', 'ios/*.{h,m,swift}']
s.ios.deployment_target = '13.0'
s.dependency 'Capacitor'
s.pod_target_xcconfig = {
'OTHER_LDFLAGS' => '-lc++',
'ENABLE_BITCODE' => '$(ENABLE_BITCODE_$(CONFIGURATION))',
'ENABLE_BITCODE_Release' => 'NO',
'ENABLE_BITCODE_Debug' => 'YES'
}
s.frameworks = 'WalletFramework'
s.vendored_frameworks = 'ios/WalletFramework.xcframework'
s.platform = :ios, "13.0"
s.xcconfig = { 'SWIFT_INCLUDE_PATHS' => ['$(PODS_TARGET_SRCROOT)/ios/Plugin/Libraries', '$(PODS_TARGET_SRCROOT)/ios/WalletFramework.xcframework'] }
s.preserve_paths = ['ios/Plugin/Libraries/module.modulemap']
s.preserve_paths = ['ios/WalletFramework.xcframework']
end
23 changes: 23 additions & 0 deletions wallet/bindings/capacitorjs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# IOTA Wallet Library - Capacitor plugin binding

## Requirements (only for building the binary yourself)

[Android: Follow this guide](https://github.com/iotaledger/wallet.rs/tree/develop/wallet/bindings/java#instead-build-everything-from-scratch-yourself)

[iOS: Follow this guide](https://github.com/iotaledger/wallet.rs/blob/develop/wallet/bindings/swift)

## Installation

- Using NPM:

```bash
npm install @iota/wallet-mobile
npx cap sync
```

## Building the @iota/wallet-mobile Capacitor plugin

```sh
npm run build
```
This command copies the prebuilt libraries from Java and Swift bindings.
21 changes: 21 additions & 0 deletions wallet/bindings/capacitorjs/add_libs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash
# 🛑 temporarily using host https://files.iota.org/firefly/bindings until CI will be done.
set -e
rm -rf tmp && mkdir tmp && cd tmp
echo Installing Java libraries
# curl -SL --progress-bar --fail https://github.com/iotaledger/wallet.rs/releases/download/iota-wallet-java-1.0.0-rc.1-new/iota-wallet-1.0.0-rc.1-android.zip > iota-wallet-java.zip
curl -SL --progress-bar --fail https://files.iota.org/firefly/bindings/jniLibs-1.0.0-alpha.0.zip > iota-wallet-java.zip
unzip iota-wallet-java.zip
rm -rf ../android/src/main/jniLibs
cp -rv jniLibs ../android/src/main
curl -SL --progress-bar --fail https://files.iota.org/firefly/bindings/iota-wallet-1.0.0-alpha.0.jar > iota-wallet.jar
rm -rf ../android/libs && mkdir -p ../android/libs
cp -rv iota-wallet.jar ../android/libs
echo Installing Swift libraries
curl -SL --progress-bar --fail https://files.iota.org/firefly/bindings/WalletFramework-1.0.0-alpha.0.zip > iota-wallet-swift.zip
unzip iota-wallet-swift.zip
rm -f ../ios/WalletFramework.xcframework/ios-x86/WalletFramework.framework/WalletFramework
rm -f ../ios/WalletFramework.xcframework/ios-arm64/WalletFramework.framework/WalletFramework
cp -v x86_64-apple-ios/libiota_wallet.a ../ios/WalletFramework.xcframework/ios-x86/WalletFramework.framework/WalletFramework
cp -v aarch64-apple-ios/libiota_wallet.a ../ios/WalletFramework.xcframework/ios-arm64/WalletFramework.framework/WalletFramework
cd .. && rm -rf tmp
72 changes: 72 additions & 0 deletions wallet/bindings/capacitorjs/android/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# NPM renames .gitignore to .npmignore
# In order to prevent that, we remove the initial "."
# And the CLI then renames it

# Using Android gitignore template: https://github.com/github/gitignore/blob/master/Android.gitignore

# Built application files
*.apk
*.ap_

# Files for the ART/Dalvik VM
*.dex

# Java class files
*.class

# Generated files
bin/
gen/
out/

# Gradle files
.gradle/
build/

# Local configuration file (sdk path, etc)
local.properties

# Proguard folder generated by Eclipse
proguard/

# Log Files
*.log

# Android Studio Navigation editor temp files
.navigation/

# Android Studio captures folder
captures/

# IntelliJ
*.iml
.idea/workspace.xml
.idea/tasks.xml
.idea/gradle.xml
.idea/dictionaries
.idea/libraries

# Keystore files
# Uncomment the following line if you do not want to check your keystore files in.
#*.jks

# External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild

# Freeline
freeline.py
freeline/
freeline_project_description.json

# fastlane
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
fastlane/readme.md

# Cordova plugins for Capacitor
capacitor-cordova-android-plugins

# Copied web assets
app/src/main/assets/public
1 change: 1 addition & 0 deletions wallet/bindings/capacitorjs/android/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
55 changes: 55 additions & 0 deletions wallet/bindings/capacitorjs/android/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
ext {
junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.1'
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.2'
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.3.0'
}

buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.1'
}
}

apply plugin: 'com.android.library'

android {
compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 30
defaultConfig {
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 21
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions {
abortOnError false
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

repositories {
google()
jcenter()
mavenCentral()
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(':capacitor-android')
testImplementation "junit:junit:$junitVersion"
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
}
21 changes: 21 additions & 0 deletions wallet/bindings/capacitorjs/android/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Project-wide Gradle settings.

# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.

# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html

# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx1536m

# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true

# Supports AndroidX
android.useAndroidX=true
android.enableJetifier=true
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Fri Dec 01 12:41:00 CST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip
Loading