Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AppKit 1.2.0 #47

Merged
merged 75 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
5db153d
created buttons and logic
quetool Sep 23, 2024
6aae11a
Minor changes
quetool Sep 23, 2024
183447e
Minor changes
quetool Sep 24, 2024
8667eff
Minor changes
quetool Sep 26, 2024
4c863b5
Implemented webview based services
quetool Sep 26, 2024
47badca
social login enhancements
quetool Sep 30, 2024
058325f
minor changes
quetool Sep 30, 2024
a7e8631
minor changes
quetool Sep 30, 2024
8b4efbb
some more fixes
quetool Oct 3, 2024
b5afa05
minor change
quetool Oct 3, 2024
d255d59
minor fixes
quetool Oct 3, 2024
cbe2e43
fix wallets issues
quetool Oct 3, 2024
a2790f0
minor change
quetool Oct 3, 2024
e78961d
Merge pull request #7 from reown-com/feature/fix_android_wallet
quetool Oct 3, 2024
559d75e
Merge branch 'develop' of https://github.com/reown-com/reown_flutter …
quetool Oct 4, 2024
b51e79a
Minor change
quetool Oct 4, 2024
464712e
Minor changes
quetool Oct 4, 2024
2a3a7f1
Merge branch 'develop' of https://github.com/reown-com/reown_flutter …
quetool Oct 4, 2024
5b8d545
minor change
quetool Oct 4, 2024
59e32ea
fix
quetool Oct 4, 2024
83b1a18
change workflow names
quetool Oct 4, 2024
071c1c0
Merge branch 'develop' of https://github.com/reown-com/reown_flutter …
quetool Oct 4, 2024
744fe5e
fix switch chains
quetool Oct 4, 2024
f6a1319
Bug fixes
quetool Oct 10, 2024
f73f482
minor changes
quetool Oct 10, 2024
d72f3f9
Bug fixes and enhancements
quetool Oct 11, 2024
cbb1811
Moved magic service to GetIt
quetool Oct 11, 2024
41a9e68
dependencies updates
quetool Oct 11, 2024
73f6160
minor changes on core and sign
quetool Oct 11, 2024
e312fd3
minor change
quetool Oct 11, 2024
8e2c1bf
minor change
quetool Oct 11, 2024
0fb330a
Merge branch 'develop' of https://github.com/reown-com/reown_flutter …
quetool Oct 11, 2024
2d576f5
Dep updates and minor changes
quetool Oct 11, 2024
a9b2c00
Final changes
quetool Oct 14, 2024
e9da597
Merge pull request #5 from reown-com/feature/social_logins
quetool Oct 14, 2024
c872006
minor change
quetool Oct 14, 2024
1e36de5
Update readme
quetool Oct 16, 2024
e88a99e
minor improvements on initialization
quetool Oct 16, 2024
6af6bb2
minor changes in log system
quetool Oct 22, 2024
53ecb3a
minor changes in sign logs
quetool Oct 22, 2024
15cab9d
minor changes in walletkit
quetool Oct 22, 2024
a934166
minor change in readme
quetool Oct 22, 2024
3c04578
Update generic_store.dart
AlexV525 Oct 23, 2024
2f63d99
minor fix
quetool Oct 28, 2024
8d4c24f
Merge pull request #25 from AlexV525/fix/rethrow-on-storage-exceptions
quetool Oct 29, 2024
7901b98
Better logs on core
quetool Oct 29, 2024
cbbbc1e
Core update on Sign
quetool Oct 29, 2024
345261e
Update deps on walletkit
quetool Oct 29, 2024
f1b8571
core 1.0.3
quetool Oct 31, 2024
1f043e8
minor update
quetool Oct 31, 2024
2b7d2f3
chain agnosticity
quetool Oct 9, 2024
9b486c2
Merge and fix conflicts
quetool Oct 15, 2024
c75a06b
bug fixes and enabling solana with social login
quetool Oct 16, 2024
13668df
Change every service singleton to use GetIt
quetool Oct 16, 2024
3d52a53
bug fixes
quetool Oct 22, 2024
ee056dd
minor changes and updates
quetool Oct 22, 2024
003ea76
minor change
quetool Oct 28, 2024
07599c2
Minor fixes
quetool Oct 29, 2024
71d2cea
Minor changes
quetool Oct 30, 2024
5201c44
Added logs
quetool Oct 30, 2024
ffbe591
fix on link mode
quetool Oct 31, 2024
9eb5513
final changes in example
quetool Oct 31, 2024
91467b7
version update
quetool Oct 31, 2024
7a3da9f
minor fix
quetool Oct 31, 2024
0fb963d
Minor change
quetool Nov 1, 2024
d932641
fix coinbase
quetool Nov 1, 2024
481a1d5
version update
quetool Nov 5, 2024
5712177
Merge pull request #13 from reown-com/feature/chain_agnostic
quetool Nov 5, 2024
9e59398
updated main readme
quetool Nov 18, 2024
2260cd6
minor changes
quetool Nov 18, 2024
dac2711
Minor changes
quetool Nov 20, 2024
7d3978b
fix issue 37
quetool Nov 20, 2024
9c46248
Merge pull request #38 from reown-com/bugfix/social_email_not_showing
quetool Nov 20, 2024
050d6ef
Update README.md
quetool Nov 20, 2024
86d6700
minor fix and promote to stable
quetool Nov 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,44 @@ assignees: ''
---

**Describe the bug**

A clear and concise description of what the bug is.

**To Reproduce**

Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**

A clear and concise description of what you expected to happen.

**Reproducible code**
If applicable, add a minimum reproducible code snippet.

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

**Screenshots**

If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**

- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**

- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**

Add any other context about the problem here.
5 changes: 5 additions & 0 deletions .github/workflows/release_dapp_android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
types:
- closed

# inputs:
# working-directory
# flavor
# BUNDLE_ID

jobs:
build:
if: (github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'master') || github.event_name == 'workflow_dispatch'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release_dapp_android_internal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
types:
- closed

# inputs:
# working-directory
# flavor
# BUNDLE_ID

jobs:
build:
if: (github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'develop') || github.event_name == 'workflow_dispatch'
Expand Down
54 changes: 29 additions & 25 deletions .github/workflows/release_modal_android.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Android App Release
name: Android Modal (production) deploy

on:
workflow_dispatch:
Expand All @@ -11,12 +11,14 @@ on:
jobs:
build_with_signing:
name: Build Android App Release
runs-on: macos-latest
runs-on: macos-latest-xlarge

steps:
# Checkout the repo
- name: Checkout repository
uses: actions/checkout@v4

# Create temp firebase key
- name: Create temp firebase key
env:
FIREBASE_KEY_BASE64: ${{ secrets.FIREBASE_KEY_BASE64 }}
Expand All @@ -26,6 +28,7 @@ jobs:

# import certificate and provisioning profile from secrets
echo -n "$FIREBASE_KEY_BASE64" | base64 --decode -o $FIREBASE_KEY_PATH

# Setup Java 11
- name: Setup Java 17
uses: actions/setup-java@v3
Expand All @@ -34,6 +37,8 @@ jobs:
java-version: '17'
architecture: x86_64
cache: 'gradle'

# Cache Gradle
- name: Cache Gradle
uses: actions/cache@v3
with:
Expand All @@ -43,36 +48,26 @@ jobs:
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
# Install Flutter SDK
- name: Install Flutter
uses: subosito/flutter-action@v2

# Install Flutter and Dependencies
- uses: ./.github/actions/dependencies
with:
flutter-version: '3.19.5'
# Get package dependencies and generate files
- name: Get package dependencies and generate files
run: |
flutter pub get
flutter pub run build_runner build --delete-conflicting-outputs
# Get example app dependencies and generate files
- name: Get example app dependencies and generate files
working-directory: example
run: |
flutter pub get
flutter pub run build_runner build --delete-conflicting-outputs
working-directory: packages/reown_appkit/example/modal

# Build Android example app
- name: Build Android APK
working-directory: example
working-directory: packages/reown_appkit/example/modal
env:
PROJECT_ID: ${{ secrets.PROJECT_ID }}
APPKIT_AUTH: ${{ secrets.APPKIT_AUTH }}
APPKIT_PROJECT_ID: ${{ secrets.APPKIT_PROJECT_ID }}
AUTH_SERVICE_URL: ${{ secrets.AUTH_SERVICE_URL }}
run: |
# Get app version from file
# VERSION_FILE=$GITHUB_WORKSPACE/lib/version.dart
# VERSION=`echo $(cat $VERSION_FILE) | sed "s/[^']*'\([^']*\)'.*/\1/"`
VERSION=4.0.0
GRADLE_FILE=android/gradle.properties
VERSION_FILE=$GITHUB_WORKSPACE/lib/version.dart

VERSION=`echo $(cat $VERSION_FILE) | sed "s/[^']*'\([^']*\)'.*/\1/"`

# Set versionName on gradle.properties
awk -F"=" -v newval="$VERSION" 'BEGIN{OFS=FS} $1=="versionName"{$2=newval}1' $GRADLE_FILE > "$GRADLE_FILE.tmp" && mv "$GRADLE_FILE.tmp" $GRADLE_FILE
Expand All @@ -89,18 +84,23 @@ jobs:
# Setup Node
- name: Setup Node
uses: actions/setup-node@v3

# Setup Firebase
- name: Setup Firebase
uses: w9jds/setup-firebase@main
with:
tools-version: 13.0.1
firebase_token: ${{ secrets.FIREBASE_TOKEN }}

# Upload APK
- name: Upload APK
working-directory: example/build/app/outputs/flutter-apk
working-directory: packages/reown_appkit/example/modal/build/app/outputs/flutter-apk
env:
APP_ID: ${{ secrets.ANDROID_APP_ID }}
run: |
firebase appdistribution:distribute app-stable-release.apk --app $APP_ID --release-notes "Web3Modal Flutter stable release" --groups "flutter-team, javascript-team, kotlin-team"
firebase appdistribution:distribute app-stable-release.apk --app $APP_ID --release-notes "AppKit Flutter sample production" --groups "flutter-team, javascript-team, kotlin-team"

# Notify Channel
- name: Notify Channel
uses: slackapi/slack-github-action@v1.24.0
env:
Expand All @@ -109,7 +109,7 @@ jobs:
with:
payload: |-
{
"text":"🤖 New *Android* build *${{ github.ref_name }}* stable version for *Web3Modal Flutter* was just deployed. Test at https://appdistribution.firebase.dev/i/a8efff56e3f0fdb0"
"text":"🤖 AppKit *Modal* Flutter Sample *${{ github.ref_name }}* was just deployed. Test at https://appdistribution.firebase.dev/i/a8efff56e3f0fdb0"
}

# Clean up Flutter envs
Expand All @@ -119,4 +119,8 @@ jobs:
rm $RUNNER_TEMP/flutter-c7c2c-6df892fe6ddb.json
flutter clean
cd example
flutter clean
flutter clean

# Launch locally
# Needs docker to be running
# 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
55 changes: 30 additions & 25 deletions .github/workflows/release_modal_android_internal.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Android App Internal (beta)
name: Android Modal (internal) deploy

on:
workflow_dispatch:
Expand All @@ -11,12 +11,14 @@ on:
jobs:
build_with_signing:
name: Build Android App Internal (beta)
runs-on: macos-latest
runs-on: macos-latest-xlarge

steps:
# Checkout the repo
- name: Checkout repository
uses: actions/checkout@v4

# Create temp firebase key
- name: Create temp firebase key
env:
FIREBASE_KEY_BASE64: ${{ secrets.FIREBASE_KEY_BASE64 }}
Expand All @@ -26,6 +28,7 @@ jobs:

# import certificate and provisioning profile from secrets
echo -n "$FIREBASE_KEY_BASE64" | base64 --decode -o $FIREBASE_KEY_PATH

# Setup Java 11
- name: Setup Java 17
uses: actions/setup-java@v3
Expand All @@ -34,6 +37,8 @@ jobs:
java-version: '17'
architecture: x86_64
cache: 'gradle'

# Cache Gradle
- name: Cache Gradle
uses: actions/cache@v3
with:
Expand All @@ -43,36 +48,26 @@ jobs:
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
# Install Flutter SDK
- name: Install Flutter
uses: subosito/flutter-action@v2

# Install Flutter and Dependencies
- uses: ./.github/actions/dependencies
with:
flutter-version: '3.19.5'
# Get package dependencies and generate files
- name: Get package dependencies and generate files
run: |
flutter pub get
flutter pub run build_runner build --delete-conflicting-outputs
# Get example app dependencies and generate files
- name: Get example app dependencies and generate files
working-directory: example
run: |
flutter pub get
flutter pub run build_runner build --delete-conflicting-outputs
working-directory: packages/reown_appkit/example/modal

# Build Android example app
- name: Build Android APK
working-directory: example
working-directory: packages/reown_appkit/example/modal
env:
PROJECT_ID: ${{ secrets.PROJECT_ID }}
APPKIT_AUTH: ${{ secrets.APPKIT_AUTH }}
APPKIT_PROJECT_ID: ${{ secrets.APPKIT_PROJECT_ID }}
AUTH_SERVICE_URL: ${{ secrets.AUTH_SERVICE_URL }}
run: |
# Get app version from file
# VERSION_FILE=$GITHUB_WORKSPACE/lib/version.dart
# VERSION=`echo $(cat $VERSION_FILE) | sed "s/[^']*'\([^']*\)'.*/\1/"`
VERSION=4.0.0
GRADLE_FILE=android/gradle.properties
VERSION_FILE=$GITHUB_WORKSPACE/lib/version.dart

VERSION=`echo $(cat $VERSION_FILE) | sed "s/[^']*'\([^']*\)'.*/\1/"`

# Set versionName on gradle.properties
awk -F"=" -v newval="$VERSION" 'BEGIN{OFS=FS} $1=="versionName"{$2=newval}1' $GRADLE_FILE > "$GRADLE_FILE.tmp" && mv "$GRADLE_FILE.tmp" $GRADLE_FILE
Expand All @@ -89,18 +84,23 @@ jobs:
# Setup Node
- name: Setup Node
uses: actions/setup-node@v3

# Setup Firebase
- name: Setup Firebase
uses: w9jds/setup-firebase@main
with:
tools-version: 13.0.1
firebase_token: ${{ secrets.FIREBASE_TOKEN }}

# Upload APK
- name: Upload APK
working-directory: example/build/app/outputs/flutter-apk
working-directory: packages/reown_appkit/example/modal/build/app/outputs/flutter-apk
env:
APP_ID: ${{ secrets.ANDROID_APP_ID_INTERNAL }}
run: |
firebase appdistribution:distribute app-beta-release.apk --app $APP_ID --release-notes "Web3Modal Flutter beta release" --groups "flutter-team, javascript-team, kotlin-team"
firebase appdistribution:distribute app-beta-release.apk --app $APP_ID --release-notes "AppKit Flutter sample internal" --groups "flutter-team, javascript-team, kotlin-team"

# Notify Channel
- name: Notify Channel
uses: slackapi/slack-github-action@v1.24.0
env:
Expand All @@ -109,13 +109,18 @@ jobs:
with:
payload: |-
{
"text":"🤖 New *Android* build *${{ github.ref_name }}* version for *Web3Modal Flutter* was just deployed. Test at https://appdistribution.firebase.dev/i/a47ee97e86fbdfff"
"text":"🤖 AppKit *Modal* Flutter Sample *Internal* *${{ github.ref_name }}* was just deployed. Test at https://appdistribution.firebase.dev/i/a47ee97e86fbdfff"
}

# Clean up Flutter envs
- name: Clean up
if: ${{ always() }}
run: |
rm $RUNNER_TEMP/flutter-c7c2c-6df892fe6ddb.json
flutter clean
cd example
flutter clean
flutter clean

# Launch locally
# Needs docker to be running
# 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
Loading
Loading