The Lenguaje Sport front end code (Cordova Apache)
clone the GitHub repo
git clone https://github.com/emilianoglucero/lsport-frontend.git
let's create a new cordova project
cordova create cabavillamalcolm com.lsc.ar.caba.villamalcolm CSDVillaMalcolm
move into this new proyect
cd cabavillamalcolm
We're going to copy from 'lsport-frontd' (the cloned repo) the next 6 files and folders listed in the image, next we'll paste it and the replace it in the cabavillamalcolm project that we have just created.
Remove the platform android
cordova platform rm android
Let's remove all the next plugins, maybe some of them aren't installed, but just in case
cordova plugin rm cordova-universal-links-plugin
cordova plugin rm cordova-plugin-firebasex
cordova plugin rm cordova-plugin-admobpro
cordova plugin rm cordova-plugin-admobpro-firebase
cordova plugin rm cordova-android-play-services-gradle-release
cordova plugin rm cordova-android-firebase-gradle-release
cordova plugin rm cordova-android-support-gradle-release
Let's add the next plugins and the android platform at the end
cordova plugin add cordova-universal-links-plugin-fix
cordova plugin add cordova-plugin-admobpro-firebase --variable PLAY_SERVICES_VERSION=+
cordova plugin add cordova-plugin-firebasex
cordova plugin add cordova-android-play-services-gradle-release --variable PLAY_SERVICES_VERSION=+
cordova plugin add cordova-android-firebase-gradle-release --variable FIREBASE_VERSION=+
cordova plugin add cordova-android-support-gradle-release --variable ANDROID_SUPPORT_VERSION=+
cordova plugin add cordova-plugin-androidx
cordova plugin add cordova-plugin-androidx-adapter
cordova platform add [email protected]
Copy the next code in platforms/android/app/src/AndroidManifest.xml file, must be at the bottom before closing the application tag like the next image
<meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="ca-app-pub-4977768595563395~7785969457"/>
Build and run the cordova project on android
cordova build android
cordova run android
cordova -v
8.1.2 ([email protected])
my 'cordova requirements' on Mac
Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: installed android-27,android-26,android-25,android-23,android-19
Gradle: installed /usr/local/Cellar/gradle/4.9/bin/gradle
my 'cordova requirements' on PC
Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: not installed
cmd: Command failed with exit code 1 Error output:
"avdmanager" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
Gradle: installed C:\Program Files\Android\Android Studio\gradle\gradle-2.10\bin\gradle
Some of requirements check failed
If you want to run the browser platform, you need to uninstall the admobpro plugins