Skip to content

Commit 227b7a0

Browse files
authored
Merge pull request #47 from reown-com/develop
AppKit 1.2.0
2 parents c4256b7 + 86d6700 commit 227b7a0

230 files changed

Lines changed: 8812 additions & 3650 deletions

File tree

Some content is hidden

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

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,44 @@ assignees: ''
88
---
99

1010
**Describe the bug**
11+
1112
A clear and concise description of what the bug is.
1213

1314
**To Reproduce**
15+
1416
Steps to reproduce the behavior:
1517
1. Go to '...'
1618
2. Click on '....'
1719
3. Scroll down to '....'
1820
4. See error
1921

2022
**Expected behavior**
23+
2124
A clear and concise description of what you expected to happen.
2225

2326
**Reproducible code**
24-
If applicable, add a minimum reproducible code snippet.
27+
28+
If applicable, add a minimum reproducible code snippet.
29+
A minimum reproducible code should have only Reown's SDK as dependency (besides flutter sdk of course)
30+
There is no point you copy/paste your code if we can't run it as it is on our side.
2531

2632
**Screenshots**
33+
2734
If applicable, add screenshots to help explain your problem.
2835

2936
**Desktop (please complete the following information):**
37+
3038
- OS: [e.g. iOS]
3139
- Browser [e.g. chrome, safari]
3240
- Version [e.g. 22]
3341

3442
**Smartphone (please complete the following information):**
43+
3544
- Device: [e.g. iPhone6]
3645
- OS: [e.g. iOS8.1]
3746
- Browser [e.g. stock browser, safari]
3847
- Version [e.g. 22]
3948

4049
**Additional context**
50+
4151
Add any other context about the problem here.

.github/workflows/release_dapp_android.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
types:
77
- closed
88

9+
# inputs:
10+
# working-directory
11+
# flavor
12+
# BUNDLE_ID
13+
914
jobs:
1015
build:
1116
if: (github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'master') || github.event_name == 'workflow_dispatch'

.github/workflows/release_dapp_android_internal.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
types:
77
- closed
88

9+
# inputs:
10+
# working-directory
11+
# flavor
12+
# BUNDLE_ID
13+
914
jobs:
1015
build:
1116
if: (github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'develop') || github.event_name == 'workflow_dispatch'
Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build Android App Release
1+
name: Android Modal (production) deploy
22

33
on:
44
workflow_dispatch:
@@ -11,12 +11,14 @@ on:
1111
jobs:
1212
build_with_signing:
1313
name: Build Android App Release
14-
runs-on: macos-latest
14+
runs-on: macos-latest-xlarge
1515

1616
steps:
1717
# Checkout the repo
1818
- name: Checkout repository
1919
uses: actions/checkout@v4
20+
21+
# Create temp firebase key
2022
- name: Create temp firebase key
2123
env:
2224
FIREBASE_KEY_BASE64: ${{ secrets.FIREBASE_KEY_BASE64 }}
@@ -26,6 +28,7 @@ jobs:
2628
2729
# import certificate and provisioning profile from secrets
2830
echo -n "$FIREBASE_KEY_BASE64" | base64 --decode -o $FIREBASE_KEY_PATH
31+
2932
# Setup Java 11
3033
- name: Setup Java 17
3134
uses: actions/setup-java@v3
@@ -34,6 +37,8 @@ jobs:
3437
java-version: '17'
3538
architecture: x86_64
3639
cache: 'gradle'
40+
41+
# Cache Gradle
3742
- name: Cache Gradle
3843
uses: actions/cache@v3
3944
with:
@@ -43,36 +48,26 @@ jobs:
4348
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
4449
restore-keys: |
4550
${{ runner.os }}-gradle-
46-
# Install Flutter SDK
47-
- name: Install Flutter
48-
uses: subosito/flutter-action@v2
51+
52+
# Install Flutter and Dependencies
53+
- uses: ./.github/actions/dependencies
4954
with:
50-
flutter-version: '3.19.5'
51-
# Get package dependencies and generate files
52-
- name: Get package dependencies and generate files
53-
run: |
54-
flutter pub get
55-
flutter pub run build_runner build --delete-conflicting-outputs
56-
# Get example app dependencies and generate files
57-
- name: Get example app dependencies and generate files
58-
working-directory: example
59-
run: |
60-
flutter pub get
61-
flutter pub run build_runner build --delete-conflicting-outputs
55+
working-directory: packages/reown_appkit/example/modal
56+
6257
# Build Android example app
6358
- name: Build Android APK
64-
working-directory: example
59+
working-directory: packages/reown_appkit/example/modal
6560
env:
6661
PROJECT_ID: ${{ secrets.PROJECT_ID }}
6762
APPKIT_AUTH: ${{ secrets.APPKIT_AUTH }}
6863
APPKIT_PROJECT_ID: ${{ secrets.APPKIT_PROJECT_ID }}
6964
AUTH_SERVICE_URL: ${{ secrets.AUTH_SERVICE_URL }}
7065
run: |
7166
# Get app version from file
67+
# VERSION_FILE=$GITHUB_WORKSPACE/lib/version.dart
68+
# VERSION=`echo $(cat $VERSION_FILE) | sed "s/[^']*'\([^']*\)'.*/\1/"`
69+
VERSION=4.0.0
7270
GRADLE_FILE=android/gradle.properties
73-
VERSION_FILE=$GITHUB_WORKSPACE/lib/version.dart
74-
75-
VERSION=`echo $(cat $VERSION_FILE) | sed "s/[^']*'\([^']*\)'.*/\1/"`
7671
7772
# Set versionName on gradle.properties
7873
awk -F"=" -v newval="$VERSION" 'BEGIN{OFS=FS} $1=="versionName"{$2=newval}1' $GRADLE_FILE > "$GRADLE_FILE.tmp" && mv "$GRADLE_FILE.tmp" $GRADLE_FILE
@@ -89,18 +84,23 @@ jobs:
8984
# Setup Node
9085
- name: Setup Node
9186
uses: actions/setup-node@v3
87+
9288
# Setup Firebase
9389
- name: Setup Firebase
9490
uses: w9jds/setup-firebase@main
9591
with:
9692
tools-version: 13.0.1
9793
firebase_token: ${{ secrets.FIREBASE_TOKEN }}
94+
95+
# Upload APK
9896
- name: Upload APK
99-
working-directory: example/build/app/outputs/flutter-apk
97+
working-directory: packages/reown_appkit/example/modal/build/app/outputs/flutter-apk
10098
env:
10199
APP_ID: ${{ secrets.ANDROID_APP_ID }}
102100
run: |
103-
firebase appdistribution:distribute app-stable-release.apk --app $APP_ID --release-notes "Web3Modal Flutter stable release" --groups "flutter-team, javascript-team, kotlin-team"
101+
firebase appdistribution:distribute app-stable-release.apk --app $APP_ID --release-notes "AppKit Flutter sample production" --groups "flutter-team, javascript-team, kotlin-team"
102+
103+
# Notify Channel
104104
- name: Notify Channel
105105
uses: slackapi/slack-github-action@v1.24.0
106106
env:
@@ -109,7 +109,7 @@ jobs:
109109
with:
110110
payload: |-
111111
{
112-
"text":"🤖 New *Android* build *${{ github.ref_name }}* stable version for *Web3Modal Flutter* was just deployed. Test at https://appdistribution.firebase.dev/i/a8efff56e3f0fdb0"
112+
"text":"🤖 AppKit *Modal* Flutter Sample *${{ github.ref_name }}* was just deployed. Test at https://appdistribution.firebase.dev/i/a8efff56e3f0fdb0"
113113
}
114114
115115
# Clean up Flutter envs
@@ -119,4 +119,8 @@ jobs:
119119
rm $RUNNER_TEMP/flutter-c7c2c-6df892fe6ddb.json
120120
flutter clean
121121
cd example
122-
flutter clean
122+
flutter clean
123+
124+
# Launch locally
125+
# Needs docker to be running
126+
# act -j build_with_signing --container-architecture linux/amd64 -P macos-latest-xlarge=-self-hosted --secret-file .github/workflows/.env.secret.modal -W .github/workflows/release_modal_android.yml
Lines changed: 30 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build Android App Internal (beta)
1+
name: Android Modal (internal) deploy
22

33
on:
44
workflow_dispatch:
@@ -11,12 +11,14 @@ on:
1111
jobs:
1212
build_with_signing:
1313
name: Build Android App Internal (beta)
14-
runs-on: macos-latest
14+
runs-on: macos-latest-xlarge
1515

1616
steps:
1717
# Checkout the repo
1818
- name: Checkout repository
1919
uses: actions/checkout@v4
20+
21+
# Create temp firebase key
2022
- name: Create temp firebase key
2123
env:
2224
FIREBASE_KEY_BASE64: ${{ secrets.FIREBASE_KEY_BASE64 }}
@@ -26,6 +28,7 @@ jobs:
2628
2729
# import certificate and provisioning profile from secrets
2830
echo -n "$FIREBASE_KEY_BASE64" | base64 --decode -o $FIREBASE_KEY_PATH
31+
2932
# Setup Java 11
3033
- name: Setup Java 17
3134
uses: actions/setup-java@v3
@@ -34,6 +37,8 @@ jobs:
3437
java-version: '17'
3538
architecture: x86_64
3639
cache: 'gradle'
40+
41+
# Cache Gradle
3742
- name: Cache Gradle
3843
uses: actions/cache@v3
3944
with:
@@ -43,36 +48,26 @@ jobs:
4348
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
4449
restore-keys: |
4550
${{ runner.os }}-gradle-
46-
# Install Flutter SDK
47-
- name: Install Flutter
48-
uses: subosito/flutter-action@v2
51+
52+
# Install Flutter and Dependencies
53+
- uses: ./.github/actions/dependencies
4954
with:
50-
flutter-version: '3.19.5'
51-
# Get package dependencies and generate files
52-
- name: Get package dependencies and generate files
53-
run: |
54-
flutter pub get
55-
flutter pub run build_runner build --delete-conflicting-outputs
56-
# Get example app dependencies and generate files
57-
- name: Get example app dependencies and generate files
58-
working-directory: example
59-
run: |
60-
flutter pub get
61-
flutter pub run build_runner build --delete-conflicting-outputs
55+
working-directory: packages/reown_appkit/example/modal
56+
6257
# Build Android example app
6358
- name: Build Android APK
64-
working-directory: example
59+
working-directory: packages/reown_appkit/example/modal
6560
env:
6661
PROJECT_ID: ${{ secrets.PROJECT_ID }}
6762
APPKIT_AUTH: ${{ secrets.APPKIT_AUTH }}
6863
APPKIT_PROJECT_ID: ${{ secrets.APPKIT_PROJECT_ID }}
6964
AUTH_SERVICE_URL: ${{ secrets.AUTH_SERVICE_URL }}
7065
run: |
7166
# Get app version from file
67+
# VERSION_FILE=$GITHUB_WORKSPACE/lib/version.dart
68+
# VERSION=`echo $(cat $VERSION_FILE) | sed "s/[^']*'\([^']*\)'.*/\1/"`
69+
VERSION=4.0.0
7270
GRADLE_FILE=android/gradle.properties
73-
VERSION_FILE=$GITHUB_WORKSPACE/lib/version.dart
74-
75-
VERSION=`echo $(cat $VERSION_FILE) | sed "s/[^']*'\([^']*\)'.*/\1/"`
7671
7772
# Set versionName on gradle.properties
7873
awk -F"=" -v newval="$VERSION" 'BEGIN{OFS=FS} $1=="versionName"{$2=newval}1' $GRADLE_FILE > "$GRADLE_FILE.tmp" && mv "$GRADLE_FILE.tmp" $GRADLE_FILE
@@ -89,18 +84,23 @@ jobs:
8984
# Setup Node
9085
- name: Setup Node
9186
uses: actions/setup-node@v3
87+
9288
# Setup Firebase
9389
- name: Setup Firebase
9490
uses: w9jds/setup-firebase@main
9591
with:
9692
tools-version: 13.0.1
9793
firebase_token: ${{ secrets.FIREBASE_TOKEN }}
94+
95+
# Upload APK
9896
- name: Upload APK
99-
working-directory: example/build/app/outputs/flutter-apk
97+
working-directory: packages/reown_appkit/example/modal/build/app/outputs/flutter-apk
10098
env:
10199
APP_ID: ${{ secrets.ANDROID_APP_ID_INTERNAL }}
102100
run: |
103-
firebase appdistribution:distribute app-beta-release.apk --app $APP_ID --release-notes "Web3Modal Flutter beta release" --groups "flutter-team, javascript-team, kotlin-team"
101+
firebase appdistribution:distribute app-beta-release.apk --app $APP_ID --release-notes "AppKit Flutter sample internal" --groups "flutter-team, javascript-team, kotlin-team"
102+
103+
# Notify Channel
104104
- name: Notify Channel
105105
uses: slackapi/slack-github-action@v1.24.0
106106
env:
@@ -109,13 +109,18 @@ jobs:
109109
with:
110110
payload: |-
111111
{
112-
"text":"🤖 New *Android* build *${{ github.ref_name }}* version for *Web3Modal Flutter* was just deployed. Test at https://appdistribution.firebase.dev/i/a47ee97e86fbdfff"
112+
"text":"🤖 AppKit *Modal* Flutter Sample *Internal* *${{ github.ref_name }}* was just deployed. Test at https://appdistribution.firebase.dev/i/a47ee97e86fbdfff"
113113
}
114+
114115
# Clean up Flutter envs
115116
- name: Clean up
116117
if: ${{ always() }}
117118
run: |
118119
rm $RUNNER_TEMP/flutter-c7c2c-6df892fe6ddb.json
119120
flutter clean
120121
cd example
121-
flutter clean
122+
flutter clean
123+
124+
# Launch locally
125+
# Needs docker to be running
126+
# act -j build_with_signing --container-architecture linux/amd64 -P macos-latest-xlarge=-self-hosted --secret-file .github/workflows/.env.secret.modal -W .github/workflows/release_modal_android_internal.yml

0 commit comments

Comments
 (0)