@@ -1,10 +1,5 @@ | |||||
#!/usr/bin/env bash | #!/usr/bin/env bash | ||||
rm -rf plateforms/android | |||||
npm run build | |||||
./node_modules/.bin/cordova clean | |||||
cp www/icons/mipmap-hdpi/icon.png platforms/android/res/mipmap-hdpi/icon.png | cp www/icons/mipmap-hdpi/icon.png platforms/android/res/mipmap-hdpi/icon.png | ||||
cp www/icons/mipmap-ldpi/icon.png platforms/android/res/mipmap-ldpi/icon.png | cp www/icons/mipmap-ldpi/icon.png platforms/android/res/mipmap-ldpi/icon.png | ||||
cp www/icons/mipmap-mdpi/icon.png platforms/android/res/mipmap-mdpi/icon.png | cp www/icons/mipmap-mdpi/icon.png platforms/android/res/mipmap-mdpi/icon.png | ||||
@@ -1,5 +1,5 @@ | |||||
<?xml version='1.0' encoding='utf-8'?> | <?xml version='1.0' encoding='utf-8'?> | ||||
<widget id="com.lesspass.android" version="2.0.3" android-versionCode="20003" xmlns="http://www.w3.org/ns/widgets" | |||||
<widget id="com.lesspass.android" version="2.0.4" android-versionCode="20004" xmlns="http://www.w3.org/ns/widgets" | |||||
xmlns:cdv="http://cordova.apache.org/ns/1.0"> | xmlns:cdv="http://cordova.apache.org/ns/1.0"> | ||||
<name>LessPass</name> | <name>LessPass</name> | ||||
<description> | <description> | ||||
@@ -13,8 +13,8 @@ | |||||
<!--<preference name="SplashScreenDelay" value="2000"/>--> | <!--<preference name="SplashScreenDelay" value="2000"/>--> | ||||
<preference name="SplashScreen" value="screen"/> | <preference name="SplashScreen" value="screen"/> | ||||
<plugin name="cordova-plugin-whitelist" spec="~1.3.1"/> | |||||
<plugin name="cordova-plugin-splashscreen" spec="~4.0.1"/> | |||||
<plugin name="cordova-plugin-whitelist" spec="~1.3.2"/> | |||||
<plugin name="cordova-plugin-splashscreen" spec="~4.0.2"/> | |||||
<preference name="ShowSplashScreenSpinner" value="false"/> | <preference name="ShowSplashScreenSpinner" value="false"/> | ||||
<access origin="*"/> | <access origin="*"/> | ||||
@@ -6,8 +6,9 @@ | |||||
"author": "Guillaume Vincent <guillaume@oslab.fr>", | "author": "Guillaume Vincent <guillaume@oslab.fr>", | ||||
"repository": "lesspass/cordova", | "repository": "lesspass/cordova", | ||||
"scripts": { | "scripts": { | ||||
"prebuild": "npm prune && npm install && gulp", | |||||
"build": "rm -rf www/dist/ && gulp" | |||||
"prebuild": "npm prune && npm install", | |||||
"clean":"rm -rf plateforms/android && rm -rf www/dist/ && cordova clean", | |||||
"build": "npm run clean && gulp && ./build.sh" | |||||
}, | }, | ||||
"dependencies": { | "dependencies": { | ||||
"lesspass-pure": "^4.5.3" | "lesspass-pure": "^4.5.3" | ||||
@@ -1,25 +1,16 @@ | |||||
> LessPass Cordova App for [lesspass.com](https://lesspass.com) | > LessPass Cordova App for [lesspass.com](https://lesspass.com) | ||||
## requirements | |||||
## Check everything ok | |||||
./node_modules/.bin/cordova requirements | ./node_modules/.bin/cordova requirements | ||||
## add Cordova platform | |||||
## Add Android platform | |||||
./node_modules/.bin/cordova platform add android | ./node_modules/.bin/cordova platform add android | ||||
## Test | ## Test | ||||
./node_modules/.bin/cordova emulate android | ./node_modules/.bin/cordova emulate android | ||||
## Build | |||||
./build.sh | |||||
## Run | |||||
./node_modules/.bin/cordova run android | |||||
## Build Release | ## Build Release | ||||