Skip to content

Commit

Permalink
AND-3873: Fix android build (#21)
Browse files Browse the repository at this point in the history
* Fix android build

Signed-off-by: Doston Kamalov <[email protected]>

* Deleted unnecessary github workflow

Signed-off-by: Doston Kamalov <[email protected]>

---------

Signed-off-by: Doston Kamalov <[email protected]>
  • Loading branch information
Yoggam1 authored Jul 27, 2023
1 parent 5a6d8c6 commit 7983be4
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 110 deletions.
50 changes: 0 additions & 50 deletions .github/workflows/publish.yml

This file was deleted.

2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.0'
classpath 'com.android.tools.build:gradle:8.0.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand Down
2 changes: 1 addition & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-all.zip
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
54 changes: 0 additions & 54 deletions android/trustwalletcore/maven-push.gradle

This file was deleted.

5 changes: 3 additions & 2 deletions android/wallet-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ apply plugin: 'maven-publish'
group = 'com.trustwallet'

android {
compileSdkVersion 31
namespace 'wallet.core'
compileSdkVersion 32
ndkVersion '23.1.7779620'
defaultConfig {
minSdkVersion 21
minSdkVersion 23
versionCode 1
versionName "1.0"
externalNativeBuild {
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions tools/android-build
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ source $(dirname $0)/library
version=$(wc_read_version)

pushd android
./gradlew assembleRelease --info
cp trustwalletcore/build/outputs/aar/trustwalletcore-release.aar ../build/trustwalletcore.aar
./gradlew assembleRelease
cp wallet-core/build/outputs/aar/wallet-core-release.aar ../build/wallet-core.aar
popd

echo "Now upload build/wallet-core.aar to https://github.com/TrustWallet/trust-wallet-core/releases/tag/$version"
Expand Down
21 changes: 21 additions & 0 deletions tools/tangem-android-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env bash
#
# Initializes the workspace with dependencies, then performs full build

# Fail if any commands fails
set -e

echo "#### Initializing workspace with dependencies ... ####"
echo "Install system deps"
tools/install-sys-dependencies-mac
tools/install-rust-dependencies

echo "Install android deps"
tools/install-android-dependencies
tools/install-dependencies

echo "#### Generating android files ... ####"
tools/generate-files android

echo "#### Building android ... ####"
tools/android-build

0 comments on commit 7983be4

Please sign in to comment.