Carsten Porth 1747a02af4 publish with gun to other peers | 5 gadi atpakaļ | |
---|---|---|
.. | ||
apk | 5 gadi atpakaļ | |
resources | 6 gadi atpakaļ | |
src | 5 gadi atpakaļ | |
ul_web_hooks | 6 gadi atpakaļ | |
.editorconfig | 6 gadi atpakaļ | |
.gitignore | 6 gadi atpakaļ | |
README.md | 6 gadi atpakaļ | |
config.xml | 5 gadi atpakaļ | |
ionic.config.json | 6 gadi atpakaļ | |
package-lock.json | 5 gadi atpakaļ | |
package.json | 5 gadi atpakaļ | |
tsconfig.json | 6 gadi atpakaļ | |
tslint.json | 6 gadi atpakaļ |
HybridOSN is a Twitter client Android app allowing the user to exchange data not only via the official Twitter servers but also via a P2P network to protect his privacy. It is build using the Ionic framework. With Ionic framework you can easily develop cross-platform hybrid mobile apps.
I highly recommend to develop the app using Microsoft Visual Studio Code. I also recommend to use the extensions Prettier - Code formater to format your code uniformly and Gitlens to manage the git repository. Of course, you need to have git installed.
npm install -g ionic cordova
npm i
You can test whether everything was installed correctly by executing ionic info
and cordova requirements
.
ionic cordova emulate android
ionic cordova run android
ionic cordova build --release android
You may read in the Ionic docs, that you can view your app in the browser using ionic serve
. This doesn't work because of the used Cordova plugins which force you to run the app on an Android device. As mentioned in the beginning, using Ionic cross-plattform applications can be developed. This still is valid, but since the goal was to develop an Android app, no time was spent on trying to remove this current restriction.
If you want to debug the app, you can do so by using the Google Chrome Developer Tools. After deploying the app on your device using the ionic cordova run android
-command, open Google Chrome on the computer your device is connected to and press the F12-key to open the Developer Tools. Go to the tab "Remote devices" (maybe it is hidden and you need to press ESC to show it). Now you should see your connected device on the left and when selecting it the HybridOSN app. With a click on the button "Inspect" you can inspect and debug the app.
In case the build process fails with the error:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
Run cordova clean
to fix this problem. It appears randomly from time to time.