Skip to content

Commit 9213f46

Browse files
Merge pull request #788 from Adamant-im/dev
v4.10.0
2 parents 963620d + 77ca99d commit 9213f46

File tree

267 files changed

+19243
-13480
lines changed

Some content is hidden

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

267 files changed

+19243
-13480
lines changed

.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
VITE_I18N_LOCALE=en
22
VITE_I18N_FALLBACK_LOCALE=en
3+
VITE_PUBLIC_PATH=
4+
VITE_ROUTER_HISTORY_MODE=

.github/workflows/capacitor-android.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- master
77
- dev
8+
workflow_dispatch:
89

910
env:
1011
GH_TOKEN: ${{ secrets.github_token }}
@@ -13,7 +14,6 @@ env:
1314
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
1415
ANDROID_KEYSTORE_ALIAS: ${{ secrets.ANDROID_KEYSTORE_ALIAS }}
1516
ANDROID_KEYSTORE_ALIAS_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_ALIAS_PASSWORD }}
16-
ANDROID_RELEASE_TYPE: 'AAB' # APK or AAB
1717

1818
jobs:
1919
release:
@@ -23,15 +23,18 @@ jobs:
2323
- name: Checkout repository 🛎️
2424
uses: actions/checkout@v4
2525

26-
- name: Set up JDK 17
26+
- name: Set up JDK LTS
2727
uses: actions/setup-java@v4
2828
with:
29-
java-version: '17'
30-
distribution: 'zulu'
29+
java-version: '21'
30+
distribution: 'jetbrains'
3131

3232
- name: Setup Android SDK
3333
uses: android-actions/setup-android@v3
3434

35+
- name: Install ApkSigner
36+
run: sudo apt install -y apksigner
37+
3538
- name: Setup Node version 🍀
3639
uses: actions/setup-node@v4
3740
with:
@@ -51,21 +54,33 @@ jobs:
5154
base64 -d android/keystore.base64 > android/app.keystore
5255
rm android/keystore.base64
5356
54-
- name: Build and Sign Android App 🛠️
57+
- name: Build and Sign Android App (APK) 🛠️
58+
run: |
59+
npx cap sync
60+
npx cap build android \
61+
--keystorepath $ANDROID_KEYSTORE_PATH \
62+
--keystorepass $ANDROID_KEYSTORE_PASSWORD \
63+
--keystorealias $ANDROID_KEYSTORE_ALIAS \
64+
--keystorealiaspass $ANDROID_KEYSTORE_ALIAS_PASSWORD \
65+
--androidreleasetype APK \
66+
--signing-type apksigner
67+
68+
- name: Build and Sign Android App (AAB) 🛠️
5569
run: |
5670
npx cap sync
5771
npx cap build android \
5872
--keystorepath $ANDROID_KEYSTORE_PATH \
5973
--keystorepass $ANDROID_KEYSTORE_PASSWORD \
6074
--keystorealias $ANDROID_KEYSTORE_ALIAS \
6175
--keystorealiaspass $ANDROID_KEYSTORE_ALIAS_PASSWORD \
62-
--androidreleasetype $ANDROID_RELEASE_TYPE
76+
--androidreleasetype AAB
6377
6478
- name: Save artifacts 💾
6579
uses: actions/upload-artifact@v4
6680
with:
6781
name: android-release-app
6882
path: |
83+
android/app/build/outputs/apk/release/*
6984
android/app/build/outputs/bundle/release/*
7085
7186
- name: Clean Keystore file 🧹

.github/workflows/github-pages.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: GitHub Pages
2+
on:
3+
push:
4+
branches:
5+
- master
6+
# Allows you to run this workflow manually from the Actions tab
7+
workflow_dispatch:
8+
9+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
10+
permissions:
11+
contents: read
12+
pages: write
13+
id-token: write
14+
15+
jobs:
16+
deploy:
17+
runs-on: ubuntu-latest
18+
environment:
19+
name: github-pages
20+
url: ${{ steps.deployment.outputs.page_url }}
21+
steps:
22+
- name: Checkout 🛎️
23+
uses: actions/checkout@v4
24+
25+
- name: Setup Node version 🍀
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: '20'
29+
30+
- name: Configure GitHub Pages ⚙️
31+
uses: actions/configure-pages@v5
32+
33+
- name: Install dependencies 📦
34+
run: npm ci
35+
36+
- name: Build PWA 🛠️
37+
run: |
38+
npm run schema:generate
39+
npm run build
40+
env:
41+
VITE_PUBLIC_PATH: ${{ github.event.repository.name }}
42+
VITE_ROUTER_HISTORY_MODE: hash
43+
44+
- name: Upload artifacts 📁
45+
uses: actions/upload-pages-artifact@v3
46+
with:
47+
path: dist
48+
49+
- name: Deploy to GitHub Pages 🚀
50+
id: deployment
51+
uses: actions/deploy-pages@v4

.github/workflows/pwa-testnet.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: PWA Testnet Workflow
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
- master
8+
9+
env:
10+
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
11+
PREVIEW_DOMAIN: ${{ github.ref_name == 'master' && 'https://msg-adamant-testnet.surge.sh' || 'https://dev-adamant-testnet.surge.sh' }}
12+
CUSTOM_DOMAIN: ${{ github.ref_name == 'master' && 'http://msg-testnet.adamant.im' || 'http://dev-testnet.adamant.im' }}
13+
14+
jobs:
15+
build-and-deploy-to-surge:
16+
name: Build and Deploy with Testnet ADM nodes to surge
17+
runs-on: ubuntu-latest
18+
environment: testnet
19+
steps:
20+
- name: Checkout repository 🛎️
21+
uses: actions/checkout@v4
22+
23+
- name: Setup Node version 🍀
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: '20'
27+
28+
- name: Install dependencies ⚙️
29+
run: npm ci
30+
31+
- name: Build PWA 🛠️
32+
run: |
33+
npm run schema:generate
34+
npm run build:testnet
35+
36+
- name: Archive artifacts 📁
37+
uses: actions/upload-artifact@v4
38+
with:
39+
path: dist
40+
41+
- name: Deploy to surge 🚀
42+
run: |
43+
npm install --global surge
44+
surge ./dist ${{ env.PREVIEW_DOMAIN }} --token ${{ secrets.SURGE_TOKEN }}
45+
surge ./dist ${{ env.CUSTOM_DOMAIN }} --token ${{ secrets.SURGE_TOKEN }}

.sdkmanrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Enable auto-env through the `sdkman_auto_env` config.
2+
# Add `<key>=<value>` pairs of SDKs to use below.
3+
#
4+
# @see https://sdkman.io/usage/#env-command
5+
6+
java=21.0.7-jbr

README.md

Lines changed: 31 additions & 0 deletions

adamant-wallets

Submodule adamant-wallets updated 46 files

android/app/capacitor.build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
android {
44
compileOptions {
5-
sourceCompatibility JavaVersion.VERSION_17
6-
targetCompatibility JavaVersion.VERSION_17
5+
sourceCompatibility JavaVersion.VERSION_21
6+
targetCompatibility JavaVersion.VERSION_21
77
}
88
}
99

android/app/src/main/AndroidManifest.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
android:supportsRtl="true"
99
android:theme="@style/AppTheme">
1010
<activity
11-
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
11+
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode|navigation"
1212
android:name=".MainActivity"
1313
android:label="@string/title_activity_main"
1414
android:theme="@style/AppTheme.NoActionBarLaunch"
@@ -33,4 +33,6 @@
3333

3434
<uses-permission android:name="android.permission.INTERNET" />
3535
<uses-permission android:name="android.permission.CAMERA" />
36+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
37+
<uses-permission android:name="android.permission.VIBRATE" />
3638
</manifest>
27 Bytes

0 commit comments

Comments
 (0)