Regarding the ElectronJS integration, this repo is greatly inspired by:
I just wanted to take it from the start (a fresh Angular app) to understand what the angular-electron
repo really does technically speaking.
Regarding Cordova, I used this article:
Install:
- Node and NPM
- Cordova (via NPM and globally)
- openjdk-8-jdk (via apt)
- Remove all existing Java versions first
- Gradle (via apt)
- Android Studio (via the JetBrains Toolbox)
export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"
export ANDROID_SDK_ROOT="$HOME/Android/Sdk"
Open the IDE settings and go to: Appearance & Behavior -> System settings -> Android SDK
and add the API level 29
- Run
cordova create cordova
- Run
cd cordova
- Run
cordova platform add android
- Run
cordova platform add ios
(if needed)
To build and run the project, execute the following command :
npm run start:android
Install :
adb
: Android Debug Bridge. To manage plugged Android devices.- Run
sudo usermod -aG plugdev $LOGNAME
to add your user to thepludev
group to allow yourself to plug and manage android devices. apt-get install android-sdk-platform-tools-common