Merge pull request #3 from Permissionless-Software-Foundation/dh-apk

feat(apk): Created new Android app
This commit is contained in:
Chris Troutner
2021-12-11 19:55:45 -08:00
committed by GitHub
7 changed files with 40621 additions and 155 deletions
+4
View File
@@ -67,3 +67,7 @@ yarn-error.log
.pnp.js
# Yarn Integrity file
.yarn-integrity
# Android
android/
+14
View File
@@ -22,6 +22,20 @@ Standard workflow for setting up a development environment for working on this r
- `npm install`
- `npm start`
## Compiling Android App
Hooks are provided for compiling this code base into an Android App using [Capacitor](https://capacitorjs.com/). It's possible to use this code to also compile an iOS app, but it is untested. Here is the flow for building the Android app:
- Follow the instructions above to install the Dev Environment
- Download and install [Android Studio](https://developer.android.com/studio)
- Update the capacitor.config file with the route where Android studio is installed.
- `npm run build` (generates the public folder)
- `npm run android:setup` (generates the android folder)
- `npm run android:open` (opens the android studio with the project)
- Compile the APK with Android Studio.
Note: The `gcradle` and `sdk` versions must be compatible.
## License
[MIT](./LICENSE.md)
+14
View File
@@ -0,0 +1,14 @@
{
"appId": "com.example.app",
"appName": "wallet.fullstack.cash",
"bundledWebRuntime": false,
"npmClient": "npm",
"webDir": "public",
"plugins": {
"SplashScreen": {
"launchShowDuration": 0
}
},
"cordova": {},
"linuxAndroidStudioPath": "/home/danielhumgon/Downloads/android-studio/bin/studio.sh"
}
+40583 -155
View File
File diff suppressed because it is too large Load Diff
+6
View File
@@ -12,6 +12,8 @@
"scripts": {
"build": "gatsby build",
"build:ipfs": "gatsby build --prefix-paths",
"android:setup": "npx cap add android; npx cap update android; npx cap update android; npx cap copy android; capacitor-resources -p android -I",
"android:open": "npx cap open android",
"develop": "gatsby develop",
"lint": "standard --env mocha --fix",
"start": "npm run develop",
@@ -21,11 +23,15 @@
"unit": "mocha test/unit/"
},
"dependencies": {
"@capacitor/android": "^3.3.2",
"@capacitor/cli": "^3.3.2",
"@capacitor/core": "^3.3.2",
"@chris.troutner/gatsby-plugin-ipfs": "^2.0.3",
"@chris.troutner/ipfs": "^2.0.2",
"adminlte-2-react": "^0.1.27",
"assert": "^2.0.0",
"browserify-zlib": "^0.2.0",
"capacitor-resources": "^2.0.5",
"copy-to-clipboard": "^3.3.1",
"crypto-browserify": "^3.12.0",
"gatsby": "^4.1.0",
Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

BIN
View File
Binary file not shown.