Skip to content

Commit f39b38f

Browse files
authored
Merge pull request #639 from Adamant-im/dev
Release v4.7.0
2 parents 076a7ba + 857b969 commit f39b38f

File tree

192 files changed

+17193
-9253
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

192 files changed

+17193
-9253
lines changed
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: Capacitor [Android]
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- dev
8+
9+
env:
10+
GH_TOKEN: ${{ secrets.github_token }}
11+
ANDROID_KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
12+
ANDROID_KEYSTORE_PATH: './app.keystore' # relative to `./android` dir
13+
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
14+
ANDROID_KEYSTORE_ALIAS: ${{ secrets.ANDROID_KEYSTORE_ALIAS }}
15+
ANDROID_KEYSTORE_ALIAS_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_ALIAS_PASSWORD }}
16+
ANDROID_RELEASE_TYPE: 'AAB' # APK or AAB
17+
18+
jobs:
19+
release:
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- name: Checkout repository 🛎️
24+
uses: actions/checkout@v4
25+
26+
- name: Set up JDK 17
27+
uses: actions/setup-java@v4
28+
with:
29+
java-version: '17'
30+
distribution: 'zulu'
31+
32+
- name: Setup Android SDK
33+
uses: android-actions/setup-android@v3
34+
35+
- name: Setup Node version 🍀
36+
uses: actions/setup-node@v4
37+
with:
38+
node-version: 20
39+
40+
- name: Install dependencies ⚙️
41+
run: npm ci
42+
43+
- name: Build PWA
44+
run: |
45+
npm run schema:generate
46+
npm run build
47+
48+
- name: Extract Android signing key from ENV 🔑
49+
run: |
50+
echo "$ANDROID_KEYSTORE_BASE64" > android/keystore.base64
51+
base64 -d android/keystore.base64 > android/app.keystore
52+
rm android/keystore.base64
53+
54+
- name: Build and Sign Android App 🛠️
55+
run: |
56+
npx cap sync
57+
npx cap build android \
58+
--keystorepath $ANDROID_KEYSTORE_PATH \
59+
--keystorepass $ANDROID_KEYSTORE_PASSWORD \
60+
--keystorealias $ANDROID_KEYSTORE_ALIAS \
61+
--keystorealiaspass $ANDROID_KEYSTORE_ALIAS_PASSWORD \
62+
--androidreleasetype $ANDROID_RELEASE_TYPE
63+
64+
- name: Save artifacts 💾
65+
uses: actions/upload-artifact@v4
66+
with:
67+
name: android-release-app
68+
path: |
69+
android/app/build/outputs/bundle/release/*
70+
71+
- name: Clean Keystore file 🧹
72+
run: |
73+
rm android/app.keystore

.github/workflows/electron-linux.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515

1616
steps:
1717
- name: Checkout repository 🛎️
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919

2020
- name: Setup Node version 🍀
21-
uses: actions/setup-node@v3
21+
uses: actions/setup-node@v4
2222
with:
23-
node-version: '18'
23+
node-version: '20'
2424

2525
- name: Install dependencies ⚙️
2626
run: npm ci
@@ -31,7 +31,7 @@ jobs:
3131
npm run electron:build
3232
3333
- name: Save artifacts
34-
uses: actions/upload-artifact@v3
34+
uses: actions/upload-artifact@v4
3535
with:
3636
name: electron-release-app
3737
path: |

.github/workflows/electron-mac.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ jobs:
2121

2222
steps:
2323
- name: Checkout repository 🛎️
24-
uses: actions/checkout@v3
24+
uses: actions/checkout@v4
2525

2626
- name: Setup Node version 🍀
27-
uses: actions/setup-node@v3
27+
uses: actions/setup-node@v4
2828
with:
29-
node-version: '18'
29+
node-version: '20'
3030

3131
- name: Install dependencies ⚙️
3232
run: npm ci
@@ -37,7 +37,7 @@ jobs:
3737
npm run electron:build
3838
3939
- name: Save artifacts
40-
uses: actions/upload-artifact@v3
40+
uses: actions/upload-artifact@v4
4141
with:
4242
name: electron-release-app
4343
path: |

.github/workflows/electron-windows.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515

1616
steps:
1717
- name: Checkout repository 🛎️
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919

2020
- name: Setup Node version 🍀
21-
uses: actions/setup-node@v3
21+
uses: actions/setup-node@v4
2222
with:
23-
node-version: '18'
23+
node-version: '20'
2424

2525
- name: Install dependencies ⚙️
2626
run: npm ci
@@ -31,7 +31,7 @@ jobs:
3131
npm run electron:build
3232
3333
- name: Save artifacts
34-
uses: actions/upload-artifact@v3
34+
uses: actions/upload-artifact@v4
3535
with:
3636
name: electron-release-app
3737
path: |

.github/workflows/preview.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ jobs:
2121
pull-requests: write
2222
steps:
2323
- name: Checkout repository 🛎️
24-
uses: actions/checkout@v3
24+
uses: actions/checkout@v4
2525

2626
- name: Setup Node version 🍀
27-
uses: actions/setup-node@v3
27+
uses: actions/setup-node@v4
2828
with:
29-
node-version: '18'
29+
node-version: '20'
3030

3131
- name: Install dependencies ⚙️
3232
run: npm ci
@@ -37,7 +37,7 @@ jobs:
3737
npm run build
3838
3939
- name: Archive artifacts 📁
40-
uses: actions/upload-artifact@v3
40+
uses: actions/upload-artifact@v4
4141
with:
4242
path: dist
4343

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ yarn-error.log*
4141
# Vercel
4242
.vercel
4343

44+
# Capacitor
45+
capacitor.env
46+
capacitor/app.keystore
47+
4448
# adamant-schema
4549
src/lib/schema/*
4650
!src/lib/schema/schema.json

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,27 @@ APPLE_NOTARIZE=true npm run electron:build
8888
npm run electron:serve
8989
```
9090

91+
### Opening the Android project in Android Studio
92+
93+
```shell
94+
$ npm run android:open
95+
```
96+
97+
### Running Android app
98+
99+
```shell
100+
$ npm run android:run
101+
```
102+
103+
> Note: You must have an Android emulator or a connected device to run the app.
104+
105+
### Build and sign Android app
106+
107+
```shell
108+
$ cp capacitor.env.example capacitor.env # replace ENV values before build
109+
$ npm run android:build
110+
```
111+
91112
[Download pre-build apps](https://adamant.im/#adm-apps) for macOS, Windows and Linux.
92113

93114
#### Note for Windows users

adamant-wallets

Submodule adamant-wallets updated 37 files

android/.gitignore

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
# Using Android gitignore template: https://github.com/github/gitignore/blob/HEAD/Android.gitignore
2+
3+
# Built application files
4+
*.apk
5+
*.aar
6+
*.ap_
7+
*.aab
8+
9+
# Files for the ART/Dalvik VM
10+
*.dex
11+
12+
# Java class files
13+
*.class
14+
15+
# Generated files
16+
bin/
17+
gen/
18+
out/
19+
# Uncomment the following line in case you need and you don't have the release build type files in your app
20+
# release/
21+
22+
# Gradle files
23+
.gradle/
24+
build/
25+
26+
# Local configuration file (sdk path, etc)
27+
local.properties
28+
29+
# Proguard folder generated by Eclipse
30+
proguard/
31+
32+
# Log Files
33+
*.log
34+
35+
# Android Studio Navigation editor temp files
36+
.navigation/
37+
38+
# Android Studio captures folder
39+
captures/
40+
41+
# IntelliJ
42+
*.iml
43+
.idea/workspace.xml
44+
.idea/tasks.xml
45+
.idea/gradle.xml
46+
.idea/assetWizardSettings.xml
47+
.idea/dictionaries
48+
.idea/libraries
49+
# Android Studio 3 in .gitignore file.
50+
.idea/caches
51+
.idea/modules.xml
52+
# Comment next line if keeping position of elements in Navigation Editor is relevant for you
53+
.idea/navEditor.xml
54+
55+
# Keystore files
56+
# Uncomment the following lines if you do not want to check your keystore files in.
57+
#*.jks
58+
#*.keystore
59+
60+
# External native build folder generated in Android Studio 2.2 and later
61+
.externalNativeBuild
62+
.cxx/
63+
64+
# Google Services (e.g. APIs or Firebase)
65+
# google-services.json
66+
67+
# Freeline
68+
freeline.py
69+
freeline/
70+
freeline_project_description.json
71+
72+
# fastlane
73+
fastlane/report.xml
74+
fastlane/Preview.html
75+
fastlane/screenshots
76+
fastlane/test_output
77+
fastlane/readme.md
78+
79+
# Version control
80+
vcs.xml
81+
82+
# lint
83+
lint/intermediates/
84+
lint/generated/
85+
lint/outputs/
86+
lint/tmp/
87+
# lint/reports/
88+
89+
# Android Profiling
90+
*.hprof
91+
92+
# Cordova plugins for Capacitor
93+
capacitor-cordova-android-plugins
94+
95+
# Copied web assets
96+
app/src/main/assets/public
97+
98+
# Generated Config files
99+
app/src/main/assets/capacitor.config.json
100+
app/src/main/assets/capacitor.plugins.json
101+
app/src/main/res/xml/config.xml

android/app/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/build/*
2+
!/build/.npmkeep

0 commit comments

Comments
 (0)