forked from mosip/inji-wallet
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
609 changed files
with
75,228 additions
and
45,287 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
BUNDLE_PATH: "vendor/bundle" | ||
BUNDLE_FORCE_RUBY_PLATFORM: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
MIMOTO_HOST=https://api.qa4.mosip.net/residentmobileapp | ||
# after making changes to the env file, ensure to start the bundler (or the project) with a --reset-cache | ||
# eg . npm build android:newlogic --reset-cache | ||
|
||
#MIMOTO_HOST=http://mock.mimoto.newlogic.dev | ||
GOOGLE_NEARBY_MESSAGES_API_KEY= | ||
MIMOTO_HOST=https://api.qa-inji.mosip.net | ||
|
||
ESIGNET_HOST=https://api.qa-inji.mosip.net | ||
|
||
OBSRV_HOST = https://dataset-api.obsrv.mosip.net | ||
|
||
#Application Theme can be ( orange | purple ) | ||
APPLICATION_THEME=orange | ||
|
||
#environment can be changed if it is toggled | ||
CREDENTIAL_REGISTRY_EDIT=true | ||
DEBUG_MODE=false | ||
|
||
#supported languages( en, fil, ar, hi, kn, ta) | ||
APPLICATION_LANGUAGE=en |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module.exports = { | ||
root: true, | ||
extends: '@react-native', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,56 @@ | ||
name: ID PASS - MOSIP Resident Application Custom build | ||
|
||
env: | ||
backendServiceDefaultUrl: https://api-internal.qa4.mosip.net/residentmobileapp | ||
name: Android Custom Build | ||
run-name: ${{ inputs.buildName }} | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
backendServiceUrl: | ||
description: 'Backend service URL' | ||
buildName: | ||
description: 'Run name' | ||
required: true | ||
default: 'Edit this name' | ||
type: string | ||
mimotoBackendServiceUrl: | ||
description: 'Mimoto backend service URL' | ||
required: true | ||
default: 'https://api.sandbox.mosip.net' | ||
type: string | ||
esignetBackendServiceUrl: | ||
description: 'Esignet backend service URL' | ||
required: true | ||
default: 'https://api-internal.qa4.mosip.net/residentmobileapp' | ||
default: 'https://api.sandbox.mosip.net' | ||
type: string | ||
allow_env_edit: | ||
description: 'Edit ENV' | ||
required: true | ||
default: 'true' | ||
type: choice | ||
options: | ||
- false | ||
- true | ||
theme: | ||
description: 'Application Theme' | ||
required: true | ||
default: 'orange' | ||
type: choice | ||
options: | ||
- orange | ||
- purple | ||
|
||
jobs: | ||
build-android: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
|
||
# Cache stuff for faster build | ||
- name: Cache local npm repository | ||
uses: actions/[email protected] | ||
with: | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
path: ~/.npm | ||
|
||
- name: Cache local gradle repository | ||
uses: actions/[email protected] | ||
with: | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
- name: Install npm dependencies | ||
run: | | ||
npm install | ||
- name: Create .env.local file | ||
run: | | ||
echo "${{ secrets.ENV_FILE }}" > .env.local > android/local.properties | ||
- name: Build App Newlogic Release | ||
run: | | ||
cd android | ||
if [ ! -z "$FIREBASE_SECRET" ] && [ -f app/google-services.json.gpg ];then rm -f app/google-services.json;gpg -o app/google-services.json --batch --passphrase="$FIREBASE_SECRET" -d app/google-services.json.gpg;fi | ||
./gradlew :app:assembleNewlogicRelease | ||
env: | ||
MIMOTO_HOST: ${{ github.event.inputs.backendServiceUrl }} | ||
FIREBASE_SECRET: ${{ secrets.FIREBASE_SECRET }} | ||
- name: Upload Artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: apk-output | ||
path: android/app/build/outputs/apk/newlogic/release/ | ||
retention-days: 10 | ||
uses: mosip/kattu/.github/workflows/android-build.yml@master | ||
with: | ||
NODE_VERSION: "16.x" | ||
MIMOTO_HOST: ${{ inputs.mimotoBackendServiceUrl }} | ||
ESIGNET_HOST: ${{ inputs.esignetBackendServiceUrl }} | ||
APPLICATION_THEME: ${{ inputs.theme }} | ||
ALLOW_ENV_EDIT: ${{ inputs.allow_env_edit }} | ||
KEYSTORE_ALIAS: androidbuildkey | ||
KEYSTORE_PASSWORD: 'password' | ||
SERVICE_LOCATION: '.' | ||
ANDROID_SERVICE_LOCATION: 'android' | ||
BUILD_SCRIPT_LOCATION: 'scripts' | ||
SCRIPT_NAME: './android-build.sh' | ||
UPLOAD_TO_ACTIONS: 'true' | ||
ANDROID_ARTIFACT_NAME: ${{ inputs.buildName }} | ||
ANDROID_ARTIFACT_PATH: "android/app/build/outputs/apk/residentapp/release/Inji_universal.apk" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
name: 'Delete old artifacts' | ||
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 | ||
uses: mosip/kattu/.github/workflows/clear-artifacts.yml@master | ||
secrets: | ||
ACCESS_TOKEN: ${{ secrets.ACTION_PAT }} | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} |
Oops, something went wrong.