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

Version 0.4.0 #256

Merged
merged 247 commits into from
Nov 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
247 commits
Select commit Hold shift + click to select a range
c26a92a
updated google-service.json with mosip project
Apr 8, 2022
1a26de7
Merge pull request #21 from mandeepdhiman123/develop
Apr 8, 2022
709f570
updated google-service.json with mosip project
Apr 8, 2022
584b2a9
Merge pull request #22 from mandeepdhiman123/develop
Apr 8, 2022
4264750
changed button use biometrics disable condition
danicaMat May 19, 2022
a94e0cd
updated
danicaMat May 19, 2022
856c616
rebase conflict
danicaMat May 6, 2022
bfd8da6
fix rebase conflicts
danicaMat May 19, 2022
098d084
testing cognitive complexity
danicaMat May 19, 2022
450049d
removed console
danicaMat May 19, 2022
a5ce0a4
enhancement on backend info
danicaMat May 31, 2022
1925e24
chore(deps): bump eventsource from 1.1.0 to 1.1.1
dependabot[bot] Jun 1, 2022
852c76b
Merge pull request #27 from idpass/develop
kneckinator Jun 6, 2022
3148af1
Merge pull request #200 from idpass/enhancement/188-backend-info
danicaerediano Jun 7, 2022
ac47c42
Merge pull request #174 from idpass/bugfix/103-camera-flight-mode
danicaerediano Jun 7, 2022
219e641
Merge pull request #202 from idpass/dependabot/npm_and_yarn/eventsour…
pmigueld Jun 7, 2022
9928853
Merge pull request #195 from idpass/bugfix/181-disable-button-biometr…
danicaerediano Jun 7, 2022
8fbd3d2
Merge pull request #32 from idpass/develop
kneckinator Jun 8, 2022
046f2d2
Fixed app crashing and language issue
Jun 8, 2022
888abbc
Merge pull request #33 from MonobikashDas/develop
MonobikashDas Jun 8, 2022
f5e0c1d
added error catcher on dev info
danicaMat Jun 9, 2022
fa185b1
pointed to api-internal.qa4
MonobikashDas Jun 9, 2022
5f5577f
Merge pull request #204 from idpass/bugfix/stuck-on-splash-screen
pmigueld Jun 10, 2022
0ec5e85
Merge branch 'mosip:develop' into develop
pmigueld Jun 10, 2022
5df310d
fix: restore GPG file
pmigueld Jun 10, 2022
5fcf791
Merge pull request #34 from idpass/bugfix/stuck-on-splash-screen
MonobikashDas Jun 10, 2022
69e0e19
removed placeholder checker
danicaMat Jun 22, 2022
3752bca
Update issue templates
kneckinator Jun 28, 2022
8b88d10
[MOSIP-20028] added action for tagging
ckm007 Jul 19, 2022
c9bc226
Merge branch 'mosip:develop' into develop
kneckinator Jul 20, 2022
8f29d58
send scan screen to findingConnection instead of routing it to discon…
danicaMat Jul 22, 2022
491f146
send scan screen to findingConnection instead of routing it to discon…
danicaMat Jul 22, 2022
68b7917
added disconnect entry on disconnected
danicaMat Jul 22, 2022
a92f6e3
Update android-custom-build.yml
ckm007 Jul 27, 2022
52cfbf5
Merge pull request #213 from idpass/bugfix/207-reason-for-sharing
danicaerediano Jul 28, 2022
10fbc5f
Merge pull request #214 from idpass/bugfix/208-disconnected
danicaerediano Jul 29, 2022
06c5fc4
Disable certain code for ios to work
nicholemnl Mar 24, 2022
3c569af
Add gitignore for ios files
nicholemnl Mar 24, 2022
ab23218
Init ios folder
nicholemnl Mar 24, 2022
c4ada44
Commented libs that will have issues in ios and re-enable routes
nicholemnl Mar 28, 2022
83e3314
Fix styles that has issues in IOS
nicholemnl Mar 28, 2022
e89fab5
Improve UI for ios
nicholemnl Mar 29, 2022
59ce263
Fix ios App icon
nicholemnl Mar 29, 2022
26b21f3
Fix margin on add ID modal
nicholemnl Mar 29, 2022
ac4934d
Add dummy vids
nicholemnl Mar 31, 2022
479b82b
Fix OTP modal not showing in IOS
nicholemnl Mar 31, 2022
8225e0f
Fix padding issue of ios in vid item and details
nicholemnl Mar 31, 2022
8f203a0
Fix package lock after rebase
nicholemnl Apr 8, 2022
366baf7
Fix conflict in vcitem
nicholemnl Apr 8, 2022
a118e87
Add ios updates after expo 44
nicholemnl Apr 19, 2022
e3184f5
Fix screens that got ui issues in IOS
nicholemnl Apr 19, 2022
bf5a4b7
Fix IOS issue around add vc modal and input
nicholemnl Apr 20, 2022
44f6dc9
Fix android input keyboard timing
nicholemnl Apr 20, 2022
ba33945
Activate certain features that got problem in ios
nicholemnl Apr 20, 2022
177e10e
Fix margins
nicholemnl Apr 26, 2022
228af70
Update podfile and welcomescreen
nicholemnl Apr 26, 2022
a8cbb8b
Fix welcomescreen padding bottom not working on IOS
nicholemnl Apr 28, 2022
7ee20fb
Fix UI issues and bugs in IOS
nicholemnl May 4, 2022
8f6676c
fix: crash when dismissing OTP input
pmigueld Jun 1, 2022
5bb9e49
fix: vcItem padding
pmigueld Jul 4, 2022
f720bd3
wip: iOS version
pmigueld Jul 11, 2022
d1d7752
fix: restore smartshare library
pmigueld Jul 15, 2022
79e8364
fix: smartshare autolink for iOS
pmigueld Jul 15, 2022
a5ba628
fix: padding on iOS
pmigueld Jul 20, 2022
7fe0828
fix: iOS styles
pmigueld Jul 20, 2022
5ce4828
chore: align iOS version
pmigueld Jul 20, 2022
d0cbae5
fix: missing iOS purpose strings
pmigueld Jul 20, 2022
859d900
chore: npm audit
pmigueld Aug 3, 2022
c75655b
build: update default backend URL
pmigueld Aug 3, 2022
a25c7ff
Merge pull request #217 from idpass/ios
pmigueld Aug 3, 2022
45a172e
rebase origin
danicaMat Jul 29, 2022
18930e1
Added info for build process
rakhimosip May 10, 2022
aedef12
Update README.md
rakhimosip May 10, 2022
4ec1569
Update README.md
rakhimosip May 10, 2022
11cb354
Added build_github_actions image for README
rakhimosip May 12, 2022
ccc76fe
Update README.md
rakhimosip May 12, 2022
fe9c945
rebase origin
danicaMat Jul 29, 2022
dc2be47
rebase from develop
danicaMat Aug 10, 2022
2aa6d9d
added checker for biometrics change and re-enable if there is, for an…
danicaMat Jul 28, 2022
5591193
from rebase
danicaMat Jul 29, 2022
84121fd
deleted
danicaMat Jul 29, 2022
50afe3f
revent changes from main
danicaMat Jul 29, 2022
1f431c0
rebase
danicaMat Aug 10, 2022
573c9d8
Merge pull request #73 from idpass/develop
MonobikashDas Aug 12, 2022
6e8832f
chore: update packages
pmigueld Aug 23, 2022
993fc06
Revert "chore: update packages"
pmigueld Aug 23, 2022
0e2b887
Update android-custom-build.yml
ckm007 Aug 23, 2022
7f1d162
[DSD-1364] Added delete workflow in manual mode for inji repo.
gaganama Aug 24, 2022
198f0d5
[DSD-1364] Added delete workflow in manual mode for inji repo.
gaganama Aug 24, 2022
b6ba0ec
Made assignees field empty
rakhimosip Aug 24, 2022
3c179b9
Made assignees field empty
rakhimosip Aug 24, 2022
47936b0
Merge pull request #81 from rakhimosip/develop
MonobikashDas Aug 24, 2022
3348b98
[DSD-1364] Added delete workflow in manual mode for inji repo.
gaganama Aug 25, 2022
ab06e4c
Revert "[DSD-1364] Added delete workflow in manual mode for inji repo."
gaganama Aug 25, 2022
043dec4
[DSD-1364] Added delete workflow in manual mode for inji repo.
gaganama Aug 25, 2022
d7199e0
Merge pull request #215 from idpass/enhancement/167-re-enabling-biome…
danicaerediano Aug 25, 2022
1d9044f
Merge pull request #80 from gaganamadival/develop
ckm007 Aug 26, 2022
52787b8
[DSD-1364] Added token to the workflow for inji repo.
gaganama Sep 2, 2022
8df5dc3
[DSD-1364] Added token to the workflow for inji repo.
gaganama Sep 2, 2022
d05325f
Merge pull request #89 from gaganamadival/develop
ckm007 Sep 2, 2022
84f37ea
Commented libs that will have issues in ios and re-enable routes
nicholemnl Mar 28, 2022
c5dda28
Activate certain features that got problem in ios
nicholemnl Apr 20, 2022
66d2799
wip: iOS version
pmigueld Jul 11, 2022
5b54490
wip: google nearby messages
pmigueld Jul 19, 2022
61f895b
feat: allow VC sharing between Android and iOS
pmigueld Aug 5, 2022
645a1b2
refactor: smartshare API
pmigueld Aug 9, 2022
8b9496b
fix: RCTBrige warning in iOS
pmigueld Aug 9, 2022
14b5206
fix: refactor request modals to screens for iOS
pmigueld Aug 10, 2022
08e2227
chore: update en locale strings
pmigueld Aug 10, 2022
930e6c3
feat: split large VC into chunks
pmigueld Aug 15, 2022
6ba62e5
fix: increase reliability with both discovery mode
pmigueld Aug 16, 2022
e9e1b16
chore: bump iOS version
pmigueld Aug 17, 2022
0a311ba
fix(request): header text and alignment
pmigueld Aug 22, 2022
22888ae
fix(layout): add safe area view option
pmigueld Aug 22, 2022
1862d02
fix(request): add button to enable bluetooth in iOS
pmigueld Aug 22, 2022
b800bd7
Update README.md
pmigueld Sep 1, 2022
abdd974
fix(request): redirect to QR screen after rejection
pmigueld Aug 23, 2022
7ba5cee
chore: bump iOS version
pmigueld Aug 23, 2022
28b5b22
fix(request): open bluetooth settings in iOS
pmigueld Aug 24, 2022
effaa66
fix: missing UI elements when sharing
pmigueld Sep 1, 2022
0ee1da9
chore: bump version and update README
pmigueld Sep 1, 2022
c2dd086
build: add dotenv
pmigueld Sep 5, 2022
87b95e8
build: fix multiline secret
pmigueld Sep 5, 2022
6b6d784
chore: update README
pmigueld Sep 5, 2022
1104dc3
build: echo env to local.properties too
pmigueld Sep 5, 2022
a54a80e
chore: fix packages
pmigueld Sep 6, 2022
e418b76
Revert "chore: fix packages"
pmigueld Sep 6, 2022
45e2be6
build: remove postinstall script
pmigueld Sep 6, 2022
d40f5bf
build: add env step to custom android build
pmigueld Sep 6, 2022
826ab97
build: override React version in deps
pmigueld Sep 6, 2022
dbd5fa9
fix: disable flight mode in iOS
pmigueld Sep 6, 2022
34137c7
Merge pull request #218 from idpass/feature/google-nearby-messages
kneckinator Sep 7, 2022
b1245dc
Merge branch 'develop' into develop
kneckinator Sep 7, 2022
6703c75
chore: bump iOS version and update podfile
pmigueld Sep 9, 2022
49081af
fix: add guard to android-only biometrics check
pmigueld Sep 12, 2022
4931888
chore: bump iOS version
pmigueld Sep 12, 2022
111a294
fix: remove flight mode check
pmigueld Sep 16, 2022
e253490
fix: restore location check for Android
pmigueld Sep 16, 2022
7636c5c
Merge pull request #227 from idpass/fix/mosip-74-scan-error
pmigueld Sep 21, 2022
775c840
from origin
danicaMat Sep 21, 2022
cb56828
rebase
danicaMat Sep 21, 2022
af58e80
rebase
danicaMat Sep 21, 2022
7454b87
rebase from develop
danicaMat Aug 22, 2022
bf9b852
rebase from develop
danicaMat Sep 13, 2022
ddd4b8e
rebase from develop
danicaMat Aug 22, 2022
4eeba78
fix Podlock rebase
danicaMat Sep 13, 2022
41574fc
bulk revoke
danicaMat Aug 23, 2022
e5a9e5c
updated
danicaMat Aug 24, 2022
e78cf9c
fix app.ts rebase
danicaMat Sep 13, 2022
633d7cc
updated bulk log revoked
danicaMat Aug 24, 2022
73146b3
replaced OTP auth with OIDc Auth
danicaMat Aug 30, 2022
6952c06
logRevoked
danicaMat Aug 30, 2022
110c519
fix: history log for batch revoke
pmigueld Sep 13, 2022
7c057a7
added overlay like view to fix nested overlay issue on revoke on ios
danicaMat Sep 19, 2022
0e76a86
also changed TextEditOverlay
danicaMat Sep 19, 2022
88b36ae
updated modals for ios
danicaMat Sep 20, 2022
393299a
changed text
danicaMat Sep 21, 2022
5c0806a
fix: spacing
pmigueld Sep 21, 2022
bb294ca
updated
danicaMat Sep 21, 2022
89897c5
Merge pull request #221 from idpass/feature/210-revoke-vid
pmigueld Sep 21, 2022
e0012a9
Update Podfile.lock
pmigueld Sep 21, 2022
0b4f600
chore: bump iOS version
pmigueld Sep 21, 2022
4c4269a
fix: missing Face ID usage description
pmigueld Sep 21, 2022
72db224
Merge pull request #229 from idpass/fix/mosip-119-ios-faceid
pmigueld Sep 22, 2022
e2e3c58
fix: stuck connecting
pmigueld Sep 27, 2022
27705b1
Merge pull request #232 from idpass/fix/mosip-109-stuck-connecting
pmigueld Sep 27, 2022
e2b48af
ignore .env
danicaMat Sep 21, 2022
5e32516
separate lock from revoke
danicaMat Sep 27, 2022
fc63f60
updated gitignore
danicaMat Sep 26, 2022
7bda83f
for single revoke: deleted VID from store and redirecting to homepage…
danicaMat Sep 27, 2022
b593a51
removed setTimeout
danicaMat Sep 27, 2022
d39c917
removed setTimeout
danicaMat Sep 27, 2022
382fe1a
fix: bluetooth settings button disabled
pmigueld Sep 27, 2022
57dd531
fix: qrcode displayed when bluetooth is disabled
pmigueld Sep 27, 2022
deb6837
Merge pull request #234 from idpass/fix/mosip-118-bluetooth-error
pmigueld Sep 27, 2022
f100904
Merge pull request #233 from idpass/fix/revoke-message
pmigueld Sep 27, 2022
2df930d
chore: bump ios version
pmigueld Sep 27, 2022
7dfd637
rebase
danicaMat Sep 27, 2022
743d083
remove passcode
danicaMat Sep 27, 2022
a48ab60
seaparate lock from revoke
danicaMat Sep 27, 2022
b3b3c61
seaparate lock from revoke vid
danicaMat Sep 27, 2022
af30c34
fix: add timeout to VC verificatoin
pmigueld Sep 22, 2022
aed13e2
rebased
danicaMat Sep 27, 2022
3095ab9
removed console.log
danicaMat Sep 27, 2022
b9f5991
Merge pull request #228 from idpass/enable/lock-unlock
danicaerediano Sep 28, 2022
3b82696
fix duplicate VCs on home tab
danicaMat Sep 29, 2022
fbc8302
updated isWrongIDFormat to also check id length per idType
danicaMat Sep 29, 2022
61efc9c
updated isWrongIDFormat to also check id length per idType
danicaMat Sep 29, 2022
7ebe84c
revoke all VIDs that has the same VID num
danicaMat Sep 29, 2022
d38df96
bulk revoke should display unique vcKeys and also remove all VIDs tha…
danicaMat Sep 29, 2022
0ce37c1
added dismiss to move from logginRevoke state
danicaMat Sep 29, 2022
e58bace
updated filipino translations
danicaMat Sep 30, 2022
b5d957c
feat: add face validation when sharing VC
pmigueld Sep 30, 2022
6c834cb
added overlay like to address issues on overlay on request screen
danicaMat Oct 4, 2022
ffa634d
Merge pull request #238 from idpass/fix/120-rejected-message
danicaerediano Oct 10, 2022
4468e37
Merge pull request #235 from idpass/fix/vid-revoke
danicaerediano Oct 10, 2022
83097e1
Merge pull request #236 from idpass/translations/122-filipino
danicaerediano Oct 10, 2022
2fce401
Merge pull request #237 from idpass/feature/187-face-matching
danicaerediano Oct 10, 2022
9398832
fix alignment issue on scan screen
danicaMat Oct 10, 2022
f4c18d2
pod install
danicaMat Oct 10, 2022
d83b898
Merge pull request #239 from idpass/77/fix-ui-issues
pmigueld Oct 10, 2022
5bd6c4b
fix: workaround to freezing modal in iOS
pmigueld Oct 12, 2022
188e3ce
Merge pull request #241 from idpass/fix/requesting-credential-overlay
pmigueld Oct 12, 2022
97ad02d
added dismiss trigger
danicaMat Oct 12, 2022
e647a0f
Merge pull request #242 from idpass/144/bulk-revoke
danicaerediano Oct 12, 2022
9ecc01f
fix: QR code display in small iOS screen
pmigueld Oct 13, 2022
54b4004
Merge branch 'develop' into fix/76-qr-code
pmigueld Oct 13, 2022
1a5d2bd
fix for filipino translations
danicaMat Oct 14, 2022
8794445
Merge pull request #244 from idpass/fix/issues
pmigueld Oct 14, 2022
9960e50
Merge pull request #243 from idpass/fix/76-qr-code
pmigueld Oct 14, 2022
81d6af7
fixed wrong translation label
danicaMat Oct 14, 2022
657af29
Merge pull request #245 from idpass/lock-unlock/toast-message
pmigueld Oct 14, 2022
3737f74
fix: disconnect popup missing when sharing is cancelled
pmigueld Oct 19, 2022
6787a3c
bulk revoke should not proceed if there's a failure in request
danicaMat Oct 19, 2022
d5006a9
Merge pull request #248 from idpass/bulk-revoke-error
pmigueld Oct 20, 2022
7de7a75
Merge branch 'develop' into fix/mosip-120-interrupt-popup
pmigueld Oct 20, 2022
29be8a3
Merge pull request #247 from idpass/fix/mosip-120-interrupt-popup
pmigueld Oct 20, 2022
3e123b9
adjusted minHeight if text is longer than one line in ios
danicaMat Oct 24, 2022
e5f3525
improved styling
danicaMat Oct 24, 2022
a8bb327
improved styling
danicaMat Oct 24, 2022
ae2213d
Merge pull request #249 from idpass/122/translation-overlap
pmigueld Oct 25, 2022
19293d6
build: fix jcenter issues
pmigueld Oct 31, 2022
544c8c2
build: remove jcenter from dependencies
pmigueld Oct 31, 2022
6941276
build: add gradlePluginPortal to repos
pmigueld Oct 31, 2022
0bc7a53
Merge pull request #251 from idpass/build/remove-jcenter
pmigueld Oct 31, 2022
0bead06
feat: use real face-matching SDK
pmigueld Oct 27, 2022
c83731a
feat: verify identity on both sides
pmigueld Oct 31, 2022
7655316
Merge pull request #250 from idpass/feat/187-use-real-sdk
pmigueld Nov 1, 2022
fde0ec4
build: update actions to use node16
pmigueld Nov 2, 2022
1b7c28f
chore(deps): npm audit fix
pmigueld Nov 2, 2022
3837969
build: update actions version
pmigueld Nov 4, 2022
dae5117
build: update React Native version
pmigueld Nov 7, 2022
a5dc4e8
Merge pull request #253 from idpass/build/update-build-action
pmigueld Nov 7, 2022
b1385d7
initial
danicaMat Nov 4, 2022
3e91e6f
remove unused code
danicaMat Nov 7, 2022
7d03c45
fix for language selector on ios
danicaMat Nov 7, 2022
81ba102
Merge pull request #255 from idpass/203/rtl-support
pmigueld Nov 7, 2022
3a92bb0
feat: transaction history screen
pmigueld Nov 7, 2022
2d2db1e
Merge remote-tracking branch 'origin/main' into develop
pmigueld Nov 8, 2022
fbf9b71
Merge remote-tracking branch 'origin/develop' into feature/mosip-188-…
pmigueld Nov 8, 2022
77dffbb
fix: remove npm hook that would fail on windows
pmigueld Nov 8, 2022
8e81e5f
fix: style issues
pmigueld Nov 8, 2022
09d829a
Merge pull request #254 from idpass/feature/mosip-188-transaction-his…
danicaerediano Nov 8, 2022
3953be2
Revert "feat: add transaction history"
pmigueld Nov 8, 2022
e1ed5bf
Merge pull request #257 from idpass/revert-254-feature/mosip-188-tran…
pmigueld Nov 8, 2022
f317b4e
chore: update podfile
pmigueld Nov 8, 2022
3095890
build: restore jcenter
pmigueld Nov 8, 2022
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
3 changes: 3 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
MIMOTO_HOST=https://api.qa4.mosip.net/residentmobileapp
#MIMOTO_HOST=http://mock.mimoto.newlogic.dev
GOOGLE_NEARBY_MESSAGES_API_KEY=
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---

name: Bug report
about: Create a report to help us improve
title: ''
labels: bug, triage
assignees: jeremi, kneckinator
---
assignees:

**Describe the bug**
A clear and concise description of what the bug is.
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Feature request
about: Suggest an idea for this project
title: ''
labels: enhancement, triage
assignees: jeremi, kneckinator
assignees:

---

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/android-custom-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ jobs:
build-android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3.1.0

# Cache stuff for faster build
- name: Cache local npm repository
uses: actions/cache@v2
uses: actions/cache@v3.0.11
with:
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
path: ~/.npm

- name: Cache local gradle repository
uses: actions/cache@v2
uses: actions/cache@v3.0.11
with:
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
path: |
Expand All @@ -48,7 +48,7 @@ jobs:
MIMOTO_HOST: ${{ github.event.inputs.backendServiceUrl }}
FIREBASE_SECRET: ${{ secrets.FIREBASE_SECRET }}
- name: Upload Artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3.1.1
with:
name: apk-output
path: android/app/build/outputs/apk/newlogic/release/
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ jobs:
build-android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3.1.0

# Cache stuff for faster build
- name: Cache local npm repository
uses: actions/cache@v2
uses: actions/cache@v3.0.11
with:
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
path: ~/.npm

- name: Cache local gradle repository
uses: actions/cache@v2
uses: actions/cache@v3.0.11
with:
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
path: |
Expand All @@ -45,7 +45,7 @@ jobs:
env:
FIREBASE_SECRET: ${{ secrets.FIREBASE_SECRET }}
- name: Upload Artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3.1.1
with:
name: output
path: android/app/build/outputs/apk/newlogic/release/
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/clear_artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: 'Delete old artifacts'
on:
workflow_dispatch:

jobs:
delete-artifacts:
runs-on: ubuntu-latest
steps:
- uses: kolpav/purge-artifacts-action@v1
with:
token: ${{ secrets.ACTION_PAT }}
expire-in: 2days # Setting this to 0 will delete all artifacts
2 changes: 1 addition & 1 deletion .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3.1.0
with:
fetch-depth: 0
- name: Install npm dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3.1.0
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand Down
16 changes: 14 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,18 @@ buck-out/
*.jsbundle

# CocoaPods
/ios/Pods/
ios/Pods/

# OS X temporary files that should never be committed
.DS_Store
src/components/.DS_Store

# user personal info,for example debug info
ios/ProjectName.xcodeproj/project.xcworkspace/
ios/ProjectName.xcodeproj/xcuserdata

# Podfile versions
ios/Podfile.lock

# Expo
.expo/
Expand All @@ -78,4 +89,5 @@ dist/

.vscode/
temp/
.eslintcache
.eslintcache
.env.local
68 changes: 63 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Be sure to have the following build tools installed before proceeding:
- [Java 8](https://www.oracle.com/ph/java/technologies/javase/javase8-archive-downloads.html)
- [Expo](https://docs.expo.dev/get-started/installation/)
- [Android SDK](https://developer.android.com/)
- [XCode](https://developer.apple.com/xcode/)

## Generate keystore for APK signing

Expand All @@ -29,18 +30,54 @@ keytool \

## Running the app

### Prepare environment

Create a `.env.local` file using `.env` as your template:

```
MIMOTO_HOST=
GOOGLE_NEARBY_MESSAGES_API_KEY=
```

And `android/local.properties`:

```
GOOGLE_NEARBY_MESSAGES_API_KEY=
```

More info here: [Setup Google Nearby Messages in React](https://github.com/mrousavy/react-native-google-nearby-messages#usage)

### Android

```shell
# Install all dependencies
# install all dependencies
npm install

# run Inji Newlogic directly to connected emulator or device (Default)
npm run android:newlogic

# run Inji Mosip directly to connected emulator or device
npm run android:mosip

# run Inji Philippines directly to connected emulator or device
npm run android:ph
```

# Building from Source
### iOS

```shell
# install all dependencies
npm install
npx pod-install

# run Metro bundler in the background
npm start

# run Inji app directly to a connected device
npm run ios -- --device
```

# Developing Android

## Build via Android Studio

Expand Down Expand Up @@ -78,12 +115,33 @@ npm run build:android:mosip

More info here: [Build your app from the command line](https://developer.android.com/studio/build/building-cmdline)

## Build using github actions
One can clone the repo and run the build via github actions as shown below.
# Developing iOS

## Build for TestFlight

1. Install all dependencies
- `npm install`
- `npx pod-install`
2. Open the `ios/` directory in XCode
3. Set the build target to "Any iOS device (arm64)"
4. Use an Apple Developer account that can provision builds for release/TestFlight

![Screen Shot 2022-09-01 at 10 34 45 AM](https://user-images.githubusercontent.com/1631922/187820476-52111665-d6b9-447c-953d-c6451d66b634.png)

5. Don't forget to bump the version number when creating an archive

6. Open the Product menu and from there click Archive

7. Once done you can follow the dialog wizard to distribute the app to TestFlight

![Screen Shot 2022-09-01 at 1 08 34 PM](https://user-images.githubusercontent.com/1631922/187836055-617fbba8-2eca-4ad3-805b-9627b925f0df.png)

8. Go to your [App Store Connect](https://appstoreconnect.apple.com/) dashboard to manage the newly-uploaded build.

![](docs/images/build_github_actions.png)
More info here:

- [React Native - Publishing to the App Store](https://reactnative.dev/docs/publishing-to-app-store)
- [Apple Developer - Distributing Your App for Beta Testing and Releases](https://developer.apple.com/documentation/xcode/distributing-your-app-for-beta-testing-and-releases)

## Credits

Expand Down
7 changes: 6 additions & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,13 @@ android {
// https://github.com/gladed/gradle-android-git-version#3-use-a-git-tag-to-specify-your-version-number-see-semantic-versioning
versionName androidGitVersion.name()
versionCode androidGitVersion.code()

Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())

manifestPlaceholders = [
APP_NAME : APP_NAME_RELEASE
APP_NAME: APP_NAME_RELEASE,
GOOGLE_NEARBY_MESSAGES_API_KEY: "${properties.getProperty('GOOGLE_NEARBY_MESSAGES_API_KEY')}"
]
}
splits {
Expand Down
65 changes: 33 additions & 32 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,47 +1,48 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="io.mosip.residentapp">
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.NFC" />
<uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE"/>
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.USE_BIOMETRIC" />
<uses-permission android:name="android.permission.USE_FINGERPRINT" />
<queries>
<intent>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="https"/>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" />
</intent>
</queries>
<application android:name=".MainApplication" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="false" android:theme="@style/AppTheme">
<meta-data android:name="expo.modules.updates.ENABLED" android:value="true"/>
<meta-data android:name="expo.modules.updates.EXPO_SDK_VERSION" android:value="43.0.0"/>
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_CHECK_ON_LAUNCH" android:value="ALWAYS"/>
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_LAUNCH_WAIT_MS" android:value="0"/>
<meta-data android:name="expo.modules.updates.EXPO_UPDATE_URL" android:value="https://exp.host/@nlpaolo/mosip-resident-app"/>
<activity android:name=".MainActivity" android:label="@string/app_name" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" android:launchMode="singleTask" android:windowSoftInputMode="adjustPan" android:theme="@style/Theme.App.SplashScreen" android:screenOrientation="portrait">
<meta-data android:name="expo.modules.updates.ENABLED" android:value="true" />
<meta-data android:name="expo.modules.updates.EXPO_SDK_VERSION" android:value="43.0.0" />
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_CHECK_ON_LAUNCH" android:value="ALWAYS" />
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_LAUNCH_WAIT_MS" android:value="0" />
<meta-data android:name="expo.modules.updates.EXPO_UPDATE_URL" android:value="https://exp.host/@nlpaolo/mosip-resident-app" />
<meta-data android:name="com.google.android.nearby.messages.API_KEY" android:value="${GOOGLE_NEARBY_MESSAGES_API_KEY}" />
<activity android:name=".MainActivity" android:label="@string/app_name" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" android:launchMode="singleTask" android:windowSoftInputMode="adjustPan" android:theme="@style/Theme.App.SplashScreen" android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="io.mosip.residentapp"/>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="io.mosip.residentapp" />
</intent-filter>
</activity>
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity"/>
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
</application>
</manifest>
</manifest>
4 changes: 3 additions & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ buildscript {
}
repositories {
google()
gradlePluginPortal()
mavenCentral()
jcenter()
}
Expand All @@ -35,9 +36,10 @@ allprojects {
}

google()
gradlePluginPortal()
mavenCentral()
jcenter()
maven { url 'https://www.jitpack.io' }
jcenter()
}
}

Expand Down
2 changes: 1 addition & 1 deletion android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ android.useAndroidX=true
android.enableJetifier=true

# Version of flipper SDK to use with React Native
FLIPPER_VERSION=0.54.0
FLIPPER_VERSION=0.99.0

# The hosted JavaScript engine
# Supported values: expo.jsEngine = "hermes" | "jsc"
Expand Down
3 changes: 0 additions & 3 deletions app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ export default {
backgroundColor: '#FFFFFF',
},
},
extra: {
backendServiceUrl: process.env.BACKEND_SERVICE_URL,
},
platforms: ['android', 'ios'],
privacy: 'hidden',
};
Loading