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

3044 walletconnect v2 refresh webpage after connected not reconnect automatically #3349

Open
wants to merge 197 commits into
base: 2722_delete_wallet_connect_history
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
197 commits
Select commit Hold shift + click to select a range
64ea85c
Improve search filter on SelectTokenDialog
justindg Jul 15, 2022
b1b60e4
Prevent duplicates
justindg Jul 15, 2022
a530335
Add test and refactor
seabornlee Jul 15, 2022
30ed828
Split filters to achieve desired order
justindg Jul 17, 2022
4dd473b
[Swap] Sort Tokens in Dialog (#2724)
justindg Jul 17, 2022
be8140d
Add test
seabornlee Jul 18, 2022
4ca1832
Merge branch 'master' into improve-token-filter
justindg Jul 18, 2022
de522fd
[DMZ] Tweak message shown https://aw.app/wc is visited (#2729)
hboon Jul 18, 2022
3b7a885
[DMZ] Remove /api/v1/verifyXMLDSig #2678 (#2730)
hboon Jul 18, 2022
9cccea9
Enhance Swap Token Sort (#2727)
JamesSmartCell Jul 18, 2022
d62219a
Merge pull request #2725 from AlphaWallet/improve-token-filter
seabornlee Jul 18, 2022
abb42db
Display swap provider in confirmation dialog
justindg Jul 18, 2022
d72f449
Show swap provider in the quote summary
justindg Jul 18, 2022
82d5283
Move getFiatValue and add unit test (#2731)
seabornlee Jul 18, 2022
c5ffe3d
Display gas fee symbol
justindg Jul 19, 2022
4be4c9b
Wrap layout in scrollview
justindg Jul 19, 2022
fec0bf2
Clear amount when switching source token
justindg Jul 19, 2022
2f1041c
Fetch quotes every 30s + Improve error display
justindg Jul 20, 2022
b8e1698
Prevent fetching new quote when confirmation dialog is showing
justindg Jul 20, 2022
5a02d08
Merge branch 'master' into swap-update
justindg Jul 21, 2022
26becfa
Refactor and add unit tests
justindg Jul 22, 2022
55d4c7b
Convert to private constants
justindg Jul 22, 2022
2ef0437
Remove instance of variable message
justindg Jul 22, 2022
5e2b556
Refactor if block
justindg Jul 22, 2022
ea47ebf
Move getCurrentPrice() method to Quote class
justindg Jul 22, 2022
b208484
Fix NPE (#2742)
seabornlee Jul 22, 2022
1642cf8
Catch exception (#2739)
seabornlee Jul 22, 2022
f7758aa
Log exception instead of print (#2740)
seabornlee Jul 22, 2022
b44b65e
Scroll to default wallet (#2737)
seabornlee Jul 23, 2022
3a63adb
Fix for gas in chains where gas cost is very small (#2744)
JamesSmartCell Jul 23, 2022
a68d9a9
Added options to delete WalletConnect history (#2726)
asif-finimble Jul 23, 2022
206e659
Merge branch 'master' into swap-update
JamesSmartCell Jul 24, 2022
bf8f3b5
Merge pull request #2732 from AlphaWallet/swap-update
seabornlee Jul 25, 2022
55b4265
Exclude unsupported chains from swap settings list (#2746)
justindg Jul 25, 2022
e41cc2e
2718 remove auto update feature (#2738)
seabornlee Jul 25, 2022
bf8f7ff
Bump gradle build number
JamesSmartCell Jul 25, 2022
3d0c78e
2248 ci no coverage report found (#2748)
seabornlee Jul 28, 2022
61e48a9
Enable transfer test on API level 32 (#2677)
seabornlee Jul 28, 2022
34f9c6b
Ignore failing test again
JamesSmartCell Jul 29, 2022
3a65a4c
Merge pull request #2753 from AlphaWallet/ignore-test-to-pass
seabornlee Jul 29, 2022
137ad48
Update EIP712 signing code (#2752)
JamesSmartCell Jul 29, 2022
4e4f8d6
Show WalletConnect Signed Transaction Count (#2750)
justindg Jul 29, 2022
c545742
Use Klaytn Production API
JamesSmartCell Jul 30, 2022
32f22bb
Tidy up fallback
JamesSmartCell Jul 30, 2022
bddbf02
Tidy imports
JamesSmartCell Jul 30, 2022
dc02a29
Tidy
JamesSmartCell Jul 30, 2022
c91f28a
Bump to v3.58.2
JamesSmartCell Jul 30, 2022
f92ff43
Refactor and add ut
seabornlee Aug 3, 2022
a023fa9
Fix typo
seabornlee Aug 3, 2022
4fdfb44
Run with Robolectric to fix CI
seabornlee Aug 3, 2022
21fc6e9
fix ci
seabornlee Aug 3, 2022
ffab254
Fix ci
seabornlee Aug 3, 2022
64b504e
Fix test
seabornlee Aug 4, 2022
58fdb17
Fix test
seabornlee Aug 5, 2022
1020f32
Delete unused file
seabornlee Aug 5, 2022
fbb7b2e
Fix coverage configuration
seabornlee Aug 5, 2022
5a2bbe8
Merge pull request #2754 from AlphaWallet/use-klaytn-production-node
seabornlee Aug 5, 2022
48c9e1c
Add new workflow
seabornlee Aug 14, 2022
f804a3f
Remove JCenter use GitHub packages, jitpack instead
seabornlee Aug 16, 2022
ad93df4
Use embeded env variables when build with GitHub actions
seabornlee Aug 16, 2022
75774bd
Revert "Use embeded env variables when build with GitHub actions"
seabornlee Aug 16, 2022
4235723
Set env variables in GitHub actions
seabornlee Aug 16, 2022
b4e1e06
Fix syntax
seabornlee Aug 16, 2022
d85f670
Fix workflow syntax
seabornlee Aug 16, 2022
dc5ef94
Fix CI
seabornlee Aug 16, 2022
891dd46
Ignore .project
seabornlee Aug 18, 2022
c0860a6
Merge pull request #2762 from AlphaWallet/add-pr-stats
seabornlee Aug 18, 2022
42b7a9f
Merge pull request #2768 from AlphaWallet/2764-remove-jcenter-since-i…
seabornlee Aug 18, 2022
fa2a626
Prompt user to select networks upon creating/importing new wallet (#2…
justindg Aug 19, 2022
d8d2df5
Change "paste" button to "clear" when edittext has contents (#2769)
justindg Aug 19, 2022
8357bac
ENSIP Resolution (#2770)
JamesSmartCell Aug 19, 2022
be73809
Update RPC
JamesSmartCell Aug 22, 2022
4a3ff9b
Transfer test against Ganache
seabornlee Aug 22, 2022
86fae01
Update badges
seabornlee Aug 22, 2022
2c01c20
Update UT badge
seabornlee Aug 22, 2022
290c4f9
Merge pull request #2777 from AlphaWallet/update-badges
seabornlee Aug 22, 2022
4f9f797
Add ApeNow to the Android dapps list (#2763)
apenowdev Aug 22, 2022
c590262
Manually strat Ganache on CI server
seabornlee Aug 23, 2022
34251a6
Fix RPC IP
seabornlee Aug 24, 2022
583bd98
Clean codee
seabornlee Aug 24, 2022
2a1ab31
Start Ganache before testing
seabornlee Aug 24, 2022
7e09242
Fix: ganache not found
seabornlee Aug 24, 2022
da5d8ef
Refactor ens resolver (#2778)
seabornlee Aug 26, 2022
65626c5
Merge pull request #2776 from AlphaWallet/2774-run-e2e-test-on-ganach…
justindg Aug 26, 2022
ac1259f
Add AirCash (#2783)
seabornlee Aug 30, 2022
045a95a
Key diagnostics (#2786)
JamesSmartCell Aug 30, 2022
29f9ba8
Upgrade Function Decoder (#2791)
JamesSmartCell Aug 30, 2022
bd1bc80
Increase e2e test timeout period
seabornlee Aug 30, 2022
0b918fe
Allow users to purchase assets via Coinbase Pay (#2781)
justindg Aug 31, 2022
a14cb14
Add setup guide (#2773)
seabornlee Aug 31, 2022
5746c1e
EIP5169 files from IPFS are intrinsically signed (#2792)
JamesSmartCell Aug 31, 2022
d04e1ed
Remove GITHUB_TOKEN, build with Gradle configuration (#2796)
seabornlee Sep 1, 2022
fe5afcd
Change order of main tokens, update names (#2798)
JamesSmartCell Sep 2, 2022
b00f655
Add unit test for EIP5169 Certificate (#2797)
JamesSmartCell Sep 2, 2022
5dc2c1a
Refactor Covalent Handling (#2801)
JamesSmartCell Sep 2, 2022
19797fd
Improve integration test
JamesSmartCell Sep 3, 2022
1418d2c
Update
JamesSmartCell Sep 3, 2022
df7b0ed
Small update to fix Ganache compatibility
JamesSmartCell Sep 5, 2022
d5e9434
Move TokenScriptCertificateTest to work on Ganache
JamesSmartCell Sep 5, 2022
4167380
Ensure transactions appear correctly for covalent chains
JamesSmartCell Sep 5, 2022
6168c0b
Bump gradle for release
JamesSmartCell Sep 5, 2022
9fefbb8
Add Indonesian Translation (#2807)
JamesSmartCell Sep 6, 2022
7be818c
Fix OOM (#2802)
seabornlee Sep 6, 2022
46f6c96
Revise i18n and enable Indonesia language & currency (#2813)
seabornlee Sep 7, 2022
d7bdd37
Added boolean to TokensAdapter's constructor to handle the Where ar… …
keval-finimble Sep 15, 2022
b764f4d
2706 feature testnet balance (#2779)
keval-finimble Sep 16, 2022
5995e1b
Temporarily remove codecov fail
JamesSmartCell Sep 20, 2022
883014b
Add ERC721Enumerable handling (#2827)
JamesSmartCell Sep 20, 2022
3cd1672
- Show NFT syncing if required (#2826)
JamesSmartCell Sep 20, 2022
2685e0b
Ensure MetaMask addresses are handled correctly (#2829)
JamesSmartCell Sep 20, 2022
2896aed
Refactor HomeActivity Fragment Handling (#2834)
JamesSmartCell Sep 21, 2022
8f1fac2
Add Lido.fi (#2833)
seabornlee Sep 21, 2022
b840ec8
Make coverage rate informational (#2838)
seabornlee Sep 21, 2022
239510b
Fix for payload being null in dapp/walletconnect transactions (#2845)
JamesSmartCell Sep 26, 2022
a8a4cb6
Improve NFT display and syncing (#2846)
JamesSmartCell Sep 27, 2022
278da3c
Setup Phi v2 network (#2848)
JamesSmartCell Sep 27, 2022
da76c74
Bump gradle version
JamesSmartCell Sep 28, 2022
2dc21ba
2808 add code format pass to github test (#2847)
seabornlee Sep 28, 2022
2f94a2c
Temporarily remove codestyle dependency
JamesSmartCell Sep 29, 2022
eef507f
Display OpenSea NFT Rarity Data if available (#2851)
justindg Oct 1, 2022
aa1c2e5
Temporarily remove lint syntax check
JamesSmartCell Oct 1, 2022
5b9d55e
Merge branch 'master' of https://github.com/AlphaWallet/alpha-wallet-…
JamesSmartCell Oct 1, 2022
e14c258
Swap upgrade: Allow users to filter exchanges and preview multiple qu…
justindg Oct 1, 2022
60499cf
Testnet Update - Added Arbitrum Goerli, Optimism Goerli, Sepolia netw…
justindg Oct 3, 2022
85f52f1
Deduplicate RPC network declarations (#2860)
JamesSmartCell Oct 3, 2022
773b17c
Temp revert code style check
JamesSmartCell Oct 3, 2022
ad4fd04
Switch token icons back to `master` since everyone should have update…
hboon Oct 15, 2022
d692bd1
Update AlphaWallet style
JamesSmartCell Oct 18, 2022
eaf1b52
Merge branch 'master' of https://github.com/AlphaWallet/alpha-wallet-…
JamesSmartCell Oct 18, 2022
a2c900c
fix ci (#2867)
seabornlee Oct 20, 2022
1e6494a
Update ticker contract
JamesSmartCell Oct 26, 2022
d61e037
revert codestyle project file
JamesSmartCell Oct 26, 2022
027beea
Normalise Address display across the wallet (#2879)
JamesSmartCell Oct 26, 2022
5b7c624
Update ticker receive
JamesSmartCell Oct 28, 2022
fd31020
Merge branch 'master' of https://github.com/AlphaWallet/alpha-wallet-…
JamesSmartCell Oct 28, 2022
4f55552
Remove install intent (#2886)
JamesSmartCell Oct 28, 2022
513b58d
feat: allow copy of NFT contract address from NFTAssetDetailActivity …
micwallace Oct 28, 2022
69ed135
Run CI on MacOS/Windows/Ubuntu (#2883)
seabornlee Oct 28, 2022
32f6049
Bump gradle for point release
JamesSmartCell Oct 29, 2022
6e4619f
Update drawable to use solid instead of gradient (#2897)
justindg Nov 2, 2022
e3824e7
Fix custom RPC node entry (#2893)
JamesSmartCell Nov 2, 2022
e50d861
Analytics Update (#2895)
justindg Nov 2, 2022
5d0008f
Use Phi ticker for both networks (#2900)
JamesSmartCell Nov 2, 2022
e101b95
Fix for NPE encountered (#2899)
JamesSmartCell Nov 2, 2022
60a99d1
Add Swap UI Test (#2903)
justindg Nov 3, 2022
fd72641
Prevent TapJacking (#2907)
seabornlee Nov 4, 2022
d363340
Check code format according to .editorconfig (#2898)
seabornlee Nov 7, 2022
4d35f50
fix malicious dapp make app crash (#2911)
seabornlee Nov 7, 2022
40c5bcf
Fix Swap Issues (#2918)
justindg Nov 7, 2022
a907ea3
Add IPFS connection point (#2920)
JamesSmartCell Nov 8, 2022
65cd176
2864 refactor dappbrowser url bar to widget (#2881)
seabornlee Nov 8, 2022
7fafce6
fix malicious NFT make app crash (#2909)
seabornlee Nov 8, 2022
bc9bddb
Cancel in progress jobs (#2924)
seabornlee Nov 8, 2022
e9afa4a
Fix SwapProvider NPE (#2919)
seabornlee Nov 10, 2022
f42a994
Show number of enabled networks in title (#2930)
justindg Nov 10, 2022
481e6d4
Change logo uri (#2931)
justindg Nov 10, 2022
50027db
Add CheckStyle on CI (#2926)
seabornlee Nov 10, 2022
6ec252b
Fix Dapp browser test (#2933)
seabornlee Nov 11, 2022
ce2b794
Fix swap issues (#2936)
justindg Nov 11, 2022
69ce2f9
Fix for video not looping (#2941)
JamesSmartCell Nov 15, 2022
7784baa
Fix for deeplink issues reported on Android Developer portal (#2940)
JamesSmartCell Nov 15, 2022
015569c
Remove PHI network (#2952)
justindg Nov 17, 2022
2d815f4
Install Ganache (#2953)
seabornlee Nov 17, 2022
cec5527
Fix most of the crashes (#2956)
seabornlee Nov 18, 2022
a54db34
2888 update walletconnect sign v2 sdk (#2946)
seabornlee Nov 19, 2022
f26a468
Fix merge issue
JamesSmartCell Nov 19, 2022
e754b43
Fix crashbug and update gradle for release update.
JamesSmartCell Nov 20, 2022
c980f1c
Refactor Sign Dialogs (#2962)
JamesSmartCell Nov 28, 2022
714bbd0
Batch up NFT balance updates (#2975)
JamesSmartCell Nov 28, 2022
aebfce5
2804 integration tests for erc20 transfer (#2974)
seabornlee Nov 28, 2022
2e571cd
Return txHash instead of signature
justindg Nov 23, 2022
403c798
Removed deprecated networks (Rinkeby, Ropsten, Kovan, Sokol) and refe…
justindg Dec 2, 2022
81972c6
Remove old optimistic and arbitrum testnets (#2991)
justindg Dec 6, 2022
8acd3f7
Patches for rate usage
JamesSmartCell Nov 29, 2022
085525f
Refactor Refresh Updates (#2993)
JamesSmartCell Dec 9, 2022
81959d5
Fix WC v2 issues from #2963 (#2983)
justindg Dec 10, 2022
5861be8
Fix / Improve "Add Custom Token" (#2969)
keval-finimble Dec 10, 2022
808930c
Fixed unnecessary conversion causing crash (#2997)
justindg Dec 10, 2022
9387cd0
Fix: typos (#3001)
omahs Dec 11, 2022
2030d32
Fix wc2 integration issue (#3005)
seabornlee Dec 15, 2022
576dd44
Ensure video can still play in NFT detail view (#2994)
JamesSmartCell Dec 15, 2022
c6a732f
Fixed widget labels overflowing on long strings (#3000)
justindg Dec 15, 2022
6924a1a
Check if external app update is available (#3008)
justindg Dec 15, 2022
fa1c344
TokenScript Attribute Resolution (#3009)
JamesSmartCell Dec 18, 2022
1b333f8
Token script dynamic attributes (#3013)
JamesSmartCell Dec 18, 2022
eb268bc
Implement address resolution via Unstoppable Domains (#3003)
justindg Dec 19, 2022
dc22caa
Change networkId to hex as per iOS (#3014)
JamesSmartCell Dec 19, 2022
9b742b3
Regulate Token Updates (#3015)
JamesSmartCell Dec 20, 2022
d04f6de
Add toggling Analytics/Crash Reporting to Settings Menu (#3011)
justindg Dec 20, 2022
ee0d074
Add new OpenSea supported chains. (#3002)
JamesSmartCell Dec 24, 2022
02ffb1f
Warn Invalid Keystore (#3019)
JamesSmartCell Dec 24, 2022
ff4b8c2
rework the AddToken dialog to work correctly.
JamesSmartCell Dec 26, 2022
090b174
fix for NFT visibility and loading speed for large wallets.
JamesSmartCell Dec 31, 2022
3a84fd0
Bump gradle for release
JamesSmartCell Dec 31, 2022
75a0554
3029 change the title of the wallet tab to show the truncated wallet …
seabornlee Jan 10, 2023
af7cc0b
Fix: avoid WC v1 request going to v2 activity (#3037)
seabornlee Jan 13, 2023
7c0fc6d
Fix: WalletConnectModal not trigger connection request (#3039)
seabornlee Jan 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
903 changes: 2 additions & 901 deletions .editorconfig

Large diffs are not rendered by default.

332 changes: 332 additions & 0 deletions .github/checkstyle-rules.xml

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions .github/workflows/checkstyle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Run CheckStyle
on: pull_request

jobs:
checkstyle_job:
runs-on: ubuntu-latest
name: Checkstyle job
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run check style
uses: nikitasavinov/checkstyle-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
checkstyle_config: '.github/checkstyle-rules.xml'
reporter: 'github-pr-review'
# filter_mode: 'file' # https://github.com/nikitasavinov/checkstyle-action
fail_on_error: true
level: 'error'
tool_name: 'CheckStyle'
36 changes: 36 additions & 0 deletions .github/workflows/ci-ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Unit test(Ubuntu)
on:
push:
branches:
- master
pull_request:
jobs:
test:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v3

- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 11

- name: Run unit tests
run: sh ./build.sh

- name: Upload Test Reports Folder
uses: actions/upload-artifact@v2
if: ${{ always() }} # IMPORTANT: Upload reports regardless of status
with:
name: ut-reports
path: app/build/reports/tests

- name: Upload coverage reports to Codecov
run: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov
36 changes: 36 additions & 0 deletions .github/workflows/ci-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Unit test(Windows)
on:
push:
branches:
- master
pull_request:
jobs:
test:
runs-on: windows-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v3

- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 11

- name: Run unit tests
run: sh ./build.sh

- name: Upload Test Reports Folder
uses: actions/upload-artifact@v2
if: ${{ always() }} # IMPORTANT: Upload reports regardless of status
with:
name: ut-reports
path: app/build/reports/tests

- name: Upload coverage reports to Codecov
run: |
curl -Os https://uploader.codecov.io/latest/windows/codecov
chmod +x codecov
./codecov
48 changes: 20 additions & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,36 @@
name: Test
name: Unit test(MacOS)
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: macos-latest
strategy:
matrix:
api-level: [31]
target: [default]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- name: checkout
uses: actions/checkout@v2

- name: Set up JDK 11
uses: actions/setup-java@v1
- uses: actions/checkout@v3

- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 11

- name: Build the app
- name: Run unit tests
run: sh ./build.sh

- name: Run e2e tests
uses: reactivecircus/android-emulator-runner@v2
- name: Upload Test Reports Folder
uses: actions/upload-artifact@v2
if: ${{ always() }} # IMPORTANT: Upload reports regardless of status
with:
api-level: ${{ matrix.api-level }}
target: ${{ matrix.target }}
arch: x86_64
profile: Nexus 6
ram-size: 4096M
sdcard-path-or-size: 4096M
script: ./e2e.sh --CI
name: ut-reports
path: app/build/reports/tests

- name: Collect E2E tests results
if: ${{ failure() }}
uses: actions/upload-artifact@v1
with:
name: e2e-tests-results
path: output/
- name: Upload coverage reports to Codecov
run: |
curl -Os https://uploader.codecov.io/latest/macos/codecov
chmod +x codecov
./codecov
52 changes: 52 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: E2e Test
on:
push:
branches:
- master
pull_request:
jobs:
test:
runs-on: self-hosted
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
timeout-minutes: 20
strategy:
matrix:
api-level: [30]
target: [default]
steps:
- uses: actions/checkout@v3

- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 11
architecture: arm64

- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- run: npm install ganache --global

- name: Run tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
target: ${{ matrix.target }}
arch: arm64-v8a
profile: Nexus 6
channel: canary
disable-animations: true
force-avd-creation: true
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
script: ./e2e.sh --CI

- name: Collect tests results
if: ${{ failure() }}
uses: actions/upload-artifact@v1
with:
name: e2e-tests-results
path: output/
18 changes: 9 additions & 9 deletions .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
name: Comments Android lint warnings on pull request
on:
pull_request:
branches:
- master
on: pull_request
jobs:
lint:
name: Run Lint
runs-on: ubuntu-18.04

name: Comments lint result on PR
runs-on: macos-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
fetch-depth: 0
- name: set up JDK
uses: actions/setup-java@v3
with:
Expand All @@ -28,4 +27,5 @@ jobs:
PR_NUMBER: ${{ github.event.number }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
./gradlew report -PgithubPullRequestId=$PR_NUMBER -PgithubToken=$GITHUB_TOKEN
./gradlew report -PgithubPullRequestId=$PR_NUMBER -PgithubToken=$GITHUB_TOKEN

14 changes: 7 additions & 7 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ on:
branches:
- master
pull_request:
branches:
- master
jobs:
lint:
name: Run Lint
runs-on: ubuntu-18.04

runs-on: macos-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: set up JDK
fetch-depth: 0
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: zulu
Expand All @@ -24,4 +24,4 @@ jobs:
- name: Run Kotlin lint
run: ./gradlew :app:detekt
- name: Run Android Lint
run: ./gradlew :app:lintAnalyticsDebug
run: ./gradlew :app:lintAnalyticsDebug
13 changes: 13 additions & 0 deletions .github/workflows/stats.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Pull Request Stats
on:
pull_request:
types: [opened]
jobs:
stats:
runs-on: ubuntu-latest
steps:
- name: Run pull request stats
uses: flowwer-dev/pull-request-stats@master
with:
charts: true
sort-by: 'COMMENTS'
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ app/full-r8-config.txt
app/awallet
app/analytics
app/noAnalytics
app/CMakeCache.txt

# Files for the Dalvik VM
*.dex
Expand Down Expand Up @@ -70,4 +71,8 @@ gen-external-apklibs

fastlane/.google-play-key.json
DCIM/
.project
vendor/
.project
output/
node_modules/
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

# AlphaWallet - Advanced, Open Source Ethereum Mobile Wallet & dApp Browser for Android

[![Build Status](https://api.travis-ci.com/AlphaWallet/alpha-wallet-android.svg?branch=master)](https://api.travis-ci.com/AlphaWallet/alpha-wallet-android.svg?branch=master)
[![Lint](https://github.com/AlphaWallet/alpha-wallet-android/actions/workflows/lint.yml/badge.svg?branch=master)](https://github.com/AlphaWallet/alpha-wallet-android/actions/workflows/lint.yml)
[![Unit test](https://github.com/AlphaWallet/alpha-wallet-android/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/AlphaWallet/alpha-wallet-android/actions/workflows/ci.yml)
[![E2E Test](https://github.com/AlphaWallet/alpha-wallet-android/actions/workflows/e2e.yml/badge.svg?branch=master)](https://github.com/AlphaWallet/alpha-wallet-android/actions/workflows/e2e.yml)
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg )](https://github.com/AlphaWallet/alpha-wallet-android/graphs/commit-activity)
![GitHub contributors](https://img.shields.io/github/contributors/AlphaWallet/alpha-wallet-android.svg)
[![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/AlphaWallet/alpha-wallet-android/blob/master/LICENSE)
[![codecov](https://codecov.io/gh/AlphaWallet/alpha-wallet-android/branch/master/graph/badge.svg)](https://codecov.io/gh/AlphaWallet/alpha-wallet-android)
[![codecov](https://codecov.io/gh/AlphaWallet/alpha-wallet-android/branch/master/graph/badge.svg?token=IkoEb30CXq)](https://codecov.io/gh/AlphaWallet/alpha-wallet-android)

AlphaWallet is an open source programmable blockchain apps platform. It's compatible with tokenisation framework TokenScript, offering businesses and their users in-depth token interaction, a clean white label user experience and advanced security options. Supports all Ethereum based networks.

Expand All @@ -20,7 +22,7 @@ AlphaWallet and TokenScript have been used by tokenisation projects like FIFA an
## About AlphaWallet - Features

Easy to use and secure open source Ethereum wallet for Android and iOS, with native ERC20, ERC721, ERC1155 and ERC875 support. AlphaWallet supports all Ethereum based networks: Ethereum, xDai, Ethereum Classic, Artis, POA, Binance Smart Chain, Heco, Polygon, Avalanche, Fantom, L2 chains Optimistic and Arbitrum, and Palm.
TestChains: Ropsten, Goerli, Kovan, Rinkeby, Sokol, Binance Test, Heco Test, Fuji (Avalanche test), Fantom Test, Polygon Test, Optimistic and Arbitrum Test, Cronos Test and Palm test.
TestChains: Goerli, Binance Test, Heco Test, Fuji (Avalanche test), Fantom Test, Polygon Test, Optimistic and Arbitrum Test, Cronos Test and Palm test.

- Beginner Friendly
- Secure Enclave Security
Expand Down Expand Up @@ -62,7 +64,13 @@ We want to give businesses the whitelabel tools they need to develop their ether
1. [Download](https://developer.android.com/studio/) Android Studio.
2. Clone this repository
3. Obtain a free Infura API key and replace the one in build.gradle
4. Build the project in AndroidStudio or Run `./gradlew build` to install tools and dependencies. See [BUILD.md](BUILD.md) for more details.
4. Generate a GitHub [Personal Access Token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) with `read:packages, read:user` permission
5. Edit `~/.gradle/gradle.properties` add blow properties:
```properties
gpr.user=Your GitHub Email
gpr.key=The GitHub Personal Access Token you created in previous step
```
6. Build the project in AndroidStudio or Run `./gradlew build` to install tools and dependencies. See [BUILD.md](BUILD.md) for more details.

You can also build it from the commandline just like other Android apps. Note that JDK 8 and 11 are the versions supported by Android.

Expand Down
9 changes: 8 additions & 1 deletion app/AlphaWalletStyle.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<code_scheme name="Project" version="173">
<JetCodeStyleSettings>
<option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
</JetCodeStyleSettings>
<codeStyleSettings language="JAVA">
<option name="BRACE_STYLE" value="2" />
<option name="CLASS_BRACE_STYLE" value="2" />
Expand All @@ -7,8 +10,9 @@
<option name="WHILE_ON_NEW_LINE" value="true" />
<option name="CATCH_ON_NEW_LINE" value="true" />
<option name="FINALLY_ON_NEW_LINE" value="true" />
<option name="KEEP_SIMPLE_LAMBDAS_IN_ONE_LINE" value="true" />
<option name="DOWHILE_BRACE_FORCE" value="3" />
<option name="FOR_BRACE_FORCE" value="3" />
<option name="WRAP_LONG_LINES" value="true" />
</codeStyleSettings>
<codeStyleSettings language="XML">
<indentOptions>
Expand Down Expand Up @@ -122,4 +126,7 @@
</rules>
</arrangement>
</codeStyleSettings>
<codeStyleSettings language="kotlin">
<option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
</codeStyleSettings>
</code_scheme>
Loading