<commit_before>#!/bin/bash


echo ""
echo "[--- Sauvane : DEV Build mobile ---]"
echo ""

#sudo npm update -g cordova
rm -rf build

cordova create build com.apps4pro.sauvane NatiWheel

cp -r www build/.
cp build/www/config.xml build/config.xml

oldstring='src=\"res\/'
newstring='src=\"www\/res\/'
sed -i.bak "s#$oldstring#$newstring#g" build/config.xml


cd build
cordova platform add ios
cordova platform add android


cordova plugin add org.apache.cordova.device
cordova plugin add org.apache.cordova.network-information
cordova plugin add org.apache.cordova.battery-status
cordova plugin add org.apache.cordova.device-motion
cordova plugin add org.apache.cordova.device-orientation
cordova plugin add org.apache.cordova.geolocation
cordova plugin add org.apache.cordova.camera
cordova plugin add org.apache.cordova.media
cordova plugin add org.apache.cordova.media-capture
cordova plugin add org.apache.cordova.file
cordova plugin add org.apache.cordova.file-transfer
cordova plugin add org.apache.cordova.dialogs
cordova plugin add org.apache.cordova.vibration
cordova plugin add org.apache.cordova.contacts
cordova plugin add org.apache.cordova.globalization
cordova plugin add org.apache.cordova.splashscreen
cordova plugin add org.apache.cordova.inappbrowser
cordova plugin add org.apache.cordova.console

cordova plugin add https://github.com/phonegap-build/GAPlugin.git

cordova build ios
cordova build android

cd platforms/android
ant release

jarsigner -keystore ../../../android_key/apps4pro-key.keystore -storepass apps4pro -digestalg SHA1 -sigalg MD5withRSA bin/NatiWheel-release-unsigned.apk mykey
cp bin/NatiWheel-release-unsigned.apk ../../NatiWheel.apk
zipalign -f 4 ../../NatiWheel.apk ../../NatiWheel-aligned.apk
cd ../..

cd ..<commit_msg>build android<commit_after>#!/bin/bash


echo ""
echo "[--- Sauvane : DEV Build mobile ---]"
echo ""

#sudo npm update -g cordova
rm -rf build

cordova create build com.apps4pro.sauvane NatiWheel

cp -r www build/.
cp build/www/config.xml build/config.xml

oldstring='src=\"res\/'
newstring='src=\"www\/res\/'
sed -i.bak "s#$oldstring#$newstring#g" build/config.xml


cd build
#cordova platform add ios
cordova platform add android


cordova plugin add org.apache.cordova.device
cordova plugin add org.apache.cordova.network-information
cordova plugin add org.apache.cordova.battery-status
cordova plugin add org.apache.cordova.device-motion
cordova plugin add org.apache.cordova.device-orientation
cordova plugin add org.apache.cordova.geolocation
cordova plugin add org.apache.cordova.camera
cordova plugin add org.apache.cordova.media
cordova plugin add org.apache.cordova.media-capture
cordova plugin add org.apache.cordova.file
cordova plugin add org.apache.cordova.file-transfer
cordova plugin add org.apache.cordova.dialogs
cordova plugin add org.apache.cordova.vibration
cordova plugin add org.apache.cordova.contacts
cordova plugin add org.apache.cordova.globalization
cordova plugin add org.apache.cordova.splashscreen
cordova plugin add org.apache.cordova.inappbrowser
cordova plugin add org.apache.cordova.console

cordova plugin add https://github.com/phonegap-build/GAPlugin.git

## iOS
#cordova build ios

## Android
cordova build android
cd platforms/android
ant release
jarsigner -keystore ../../../android_key/apps4pro-key.keystore -storepass apps4pro -digestalg SHA1 -sigalg MD5withRSA bin/NatiWheel-release-unsigned.apk mykey
cp bin/NatiWheel-release-unsigned.apk ../../NatiWheel.apk
zipalign -f 4 ../../NatiWheel.apk ../../NatiWheel-aligned.apk
cd ../..


cd ..
{'fraction_non_alphanumeric': 0.1072234762979684, 'fraction_numerical': 0.003386004514672686, 'mean_word_length': 4.387537993920972, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 6, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3775754', 'n_tokens_mistral': 1186, 'n_tokens_neox': 1128, 'n_words': 305}