forked from algorandfoundation/xHD-Wallet-API-kt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Produce a self-contained .aar file for lib (algorandfoundation#19)
* feat: Separates Android (with all-inclusive .aar) from Desktop * fix: add .gitkeeps * chore: remove debug printer * feat: add .gitignore * fix: since initialize.sh already builds, it is enough of a test * docs: update README * remove gradlew step that is part of initialize.sh * feat: if any step in initialize fails, all fails * updates gitignore and appcompat * chore: comment out CBOR until it has been implemented elsewhere * docs: clarify build * docs: update workflow name * fix: removes unnecessary check on decoded data * docs: clarify github workflow
- Loading branch information
1 parent
1bd7de5
commit 4a68388
Showing
40 changed files
with
1,112 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,170 @@ | ||
# Created by https://www.toptal.com/developers/gitignore/api/android,androidstudio | ||
# Edit at https://www.toptal.com/developers/gitignore?templates=android,androidstudio | ||
|
||
### Android ### | ||
# Gradle files | ||
.gradle/ | ||
build/ | ||
|
||
# Local configuration file (sdk path, etc) | ||
local.properties | ||
|
||
# Log/OS Files | ||
*.log | ||
|
||
# Android Studio generated files and folders | ||
captures/ | ||
.externalNativeBuild/ | ||
.cxx/ | ||
*.apk | ||
output.json | ||
|
||
# IntelliJ | ||
*.iml | ||
.idea/ | ||
misc.xml | ||
deploymentTargetDropDown.xml | ||
render.experimental.xml | ||
|
||
# Keystore files | ||
*.jks | ||
*.keystore | ||
|
||
# Google Services (e.g. APIs or Firebase) | ||
google-services.json | ||
|
||
# Android Profiling | ||
*.hprof | ||
|
||
### Android Patch ### | ||
gen-external-apklibs | ||
|
||
# Replacement of .externalNativeBuild directories introduced | ||
# with Android Studio 3.5. | ||
|
||
### AndroidStudio ### | ||
# Covers files to be ignored for android development using Android Studio. | ||
|
||
# Built application files | ||
*.ap_ | ||
*.aab | ||
|
||
# Files for the ART/Dalvik VM | ||
*.dex | ||
|
||
# Java class files | ||
*.class | ||
|
||
# Generated files | ||
bin/ | ||
gen/ | ||
out/ | ||
|
||
# Gradle files | ||
.gradle | ||
|
||
# Signing files | ||
.signing/ | ||
|
||
# Local configuration file (sdk path, etc) | ||
|
||
# Proguard folder generated by Eclipse | ||
proguard/ | ||
|
||
# Log Files | ||
|
||
# Android Studio | ||
/*/build/ | ||
/*/local.properties | ||
/*/out | ||
/*/*/build | ||
/*/*/production | ||
.navigation/ | ||
*.ipr | ||
*~ | ||
*.swp | ||
|
||
# Keystore files | ||
|
||
# Google Services (e.g. APIs or Firebase) | ||
# google-services.json | ||
|
||
# Android Patch | ||
|
||
# External native build folder generated in Android Studio 2.2 and later | ||
.externalNativeBuild | ||
|
||
# NDK | ||
obj/ | ||
|
||
# IntelliJ IDEA | ||
*.iws | ||
/out/ | ||
|
||
# User-specific configurations | ||
.idea/caches/ | ||
.idea/libraries/ | ||
.idea/shelf/ | ||
.idea/workspace.xml | ||
.idea/tasks.xml | ||
.idea/.name | ||
.idea/compiler.xml | ||
.idea/copyright/profiles_settings.xml | ||
.idea/encodings.xml | ||
.idea/misc.xml | ||
.idea/modules.xml | ||
.idea/scopes/scope_settings.xml | ||
.idea/dictionaries | ||
.idea/vcs.xml | ||
.idea/jsLibraryMappings.xml | ||
.idea/datasources.xml | ||
.idea/dataSources.ids | ||
.idea/sqlDataSources.xml | ||
.idea/dynamic.xml | ||
.idea/uiDesigner.xml | ||
.idea/assetWizardSettings.xml | ||
.idea/gradle.xml | ||
.idea/jarRepositories.xml | ||
.idea/navEditor.xml | ||
|
||
# Legacy Eclipse project files | ||
.classpath | ||
.project | ||
.cproject | ||
.settings/ | ||
|
||
# Mobile Tools for Java (J2ME) | ||
.mtj.tmp/ | ||
|
||
# Package Files # | ||
*.war | ||
*.ear | ||
|
||
# virtual machine crash logs (Reference: http://www.java.com/en/download/help/error_hotspot.xml) | ||
hs_err_pid* | ||
|
||
## Plugin-specific files: | ||
|
||
# mpeltonen/sbt-idea plugin | ||
.idea_modules/ | ||
|
||
# JIRA plugin | ||
atlassian-ide-plugin.xml | ||
|
||
# Mongo Explorer plugin | ||
.idea/mongoSettings.xml | ||
|
||
# Crashlytics plugin (for Android Studio and IntelliJ) | ||
com_crashlytics_export_strings.xml | ||
crashlytics.properties | ||
crashlytics-build.properties | ||
fabric.properties | ||
|
||
### AndroidStudio Patch ### | ||
|
||
!/gradle/wrapper/gradle-wrapper.jar | ||
|
||
# End of https://www.toptal.com/developers/gitignore/api/android,androidstudio | ||
|
||
# Ignore the bip32ed25519kotlin .aar file | ||
*.aar |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
version = "0.1.0" | ||
group = "com.algorandfoundation.bip32ed25519" | ||
|
||
apply plugin: 'com.android.library' | ||
apply plugin: 'kotlin-android' | ||
apply plugin: 'kotlin-kapt' | ||
|
||
android { | ||
compileSdkVersion 34 | ||
buildToolsVersion "33.0.3" | ||
|
||
buildFeatures { | ||
viewBinding = true | ||
} | ||
|
||
defaultConfig { | ||
namespace "com.algorandfoundation.bip32ed25519" | ||
minSdkVersion 19 | ||
targetSdkVersion 33 | ||
versionCode 16 | ||
versionName "0.1.0" | ||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" | ||
multiDexEnabled true | ||
} | ||
|
||
lint { | ||
baseline = file("lint-baseline.xml") | ||
} | ||
|
||
sourceSets { | ||
main { | ||
jni.srcDirs = [] | ||
jniLibs.srcDirs = ['src/main/jniLibs'] | ||
} | ||
} | ||
|
||
compileOptions { | ||
sourceCompatibility JavaVersion.VERSION_17 | ||
targetCompatibility JavaVersion.VERSION_17 | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation fileTree(dir: 'libs', include: ['*.jar']) | ||
implementation 'net.java.dev.jna:jna:5.12.1' | ||
implementation 'com.goterl:resource-loader:2.0.2' | ||
implementation 'cash.z.ecc.android:kotlin-bip39:1.0.7' | ||
implementation 'net.pwall.json:json-kotlin-schema:0.46' | ||
implementation 'com.algorand:algosdk:2.4.0' | ||
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3' | ||
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-core:1.6.3' | ||
implementation 'com.fasterxml.jackson.core:jackson-databind:2.16.1' | ||
implementation 'com.fasterxml.jackson.core:jackson-core:2.16.1' | ||
implementation 'org.msgpack:jackson-dataformat-msgpack:0.9.8' | ||
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.16.1' | ||
testImplementation 'org.jetbrains.kotlin:kotlin-test-junit5' | ||
testImplementation libs.junit.jupiter.engine | ||
testRuntimeOnly 'org.junit.platform:junit-platform-launcher' | ||
api libs.commons.math3 | ||
implementation libs.guava | ||
} | ||
|
||
java { | ||
toolchain { | ||
languageVersion.set(JavaLanguageVersion.of(17)) | ||
} | ||
} |
Empty file.
Oops, something went wrong.