Browse Source

Fix bug where dropdown labels selectable on Android, add build script

hi
Skylar Ittner 5 years ago
parent
commit
c47be0c77f
  1. 8
      build-android.sh
  2. 1
      config.xml
  3. 4
      nbproject/plugins.properties
  4. 3
      nbproject/project.properties
  5. BIN
      platforms/android/.gradle/2.2.1/taskArtifacts/cache.properties.lock
  6. BIN
      platforms/android/.gradle/2.2.1/taskArtifacts/fileHashes.bin
  7. BIN
      platforms/android/.gradle/2.2.1/taskArtifacts/fileSnapshots.bin
  8. BIN
      platforms/android/.gradle/2.2.1/taskArtifacts/taskArtifacts.bin
  9. 6
      platforms/android/assets/www/screens/home.html
  10. 1
      platforms/android/res/xml/config.xml
  11. 6
      www/screens/home.html

8
build-android.sh

@ -0,0 +1,8 @@
cordova build --release android
cd platforms/android/build/outputs/apk
cp android-release-unsigned.apk android-release-signed.apk
jarsigner -verbose -keystore ~/Documents/Projects/Certificates/Android/android.keystore android-release-signed.apk android
jarsigner -verify -verbose -certs android-release-signed.apk
rm android-release-signed-zipaligned.apk
zipalign -v 4 android-release-signed.apk android-release-signed-zipaligned.apk

1
config.xml

@ -9,6 +9,7 @@
Netsyms Technologies
</author>
<content src="index.html"/>
<preference name="SplashScreen" value="none"/>
<plugin name="cordova-plugin-whitelist" spec="1"/>
<access origin="*"/>
<allow-intent href="http://*/*"/>

4
nbproject/plugins.properties

@ -19,8 +19,8 @@ cordova-plugin-camera=https://git-wip-us.apache.org/repos/asf/cordova-plugin-cam
cordova-plugin-media=https://git-wip-us.apache.org/repos/asf/cordova-plugin-media.git
cordova-plugin-media-capture=https://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture.git
cordova-plugin-network-information=https://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information.git
cordova-plugin-splashscreen=https://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen.git
cordova-plugin-device=https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git
cordova-plugin-console=https://git-wip-us.apache.org/repos/asf/cordova-plugin-console.git
cordova-plugin-file=https://git-wip-us.apache.org/repos/asf/cordova-plugin-file.git
cordova-plugin-compat=https://git-wip-us.apache.org/repos/asf/cordova-plugin-compat.git
cordova-plugin-compat=https://git-wip-us.apache.org/repos/asf/cordova-plugin-compat.git
cordova-plugin-splashscreen=https://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen.git

3
nbproject/project.properties

@ -1,5 +1,8 @@
auxiliary.org-netbeans-modules-cordova.cordova_5f_build_5f_script_5f_version=52
auxiliary.org-netbeans-modules-cordova.phonegap=false
auxiliary.org-netbeans-modules-javascript-nodejs.enabled=false
auxiliary.org-netbeans-modules-javascript-nodejs.node_2e_default=true
auxiliary.org-netbeans-modules-javascript-nodejs.sync_2e_enabled=true
file.reference.SnipeITMobile-test=test
file.reference.SnipeITMobile-www=www
files.encoding=UTF-8

BIN
platforms/android/.gradle/2.2.1/taskArtifacts/cache.properties.lock

BIN
platforms/android/.gradle/2.2.1/taskArtifacts/fileHashes.bin

BIN
platforms/android/.gradle/2.2.1/taskArtifacts/fileSnapshots.bin

BIN
platforms/android/.gradle/2.2.1/taskArtifacts/taskArtifacts.bin

6
platforms/android/assets/www/screens/home.html

@ -189,7 +189,7 @@
},
success: function (data) {
if (data.status === 'OK') {
var innerhtml = "<option selected hidden>Location</option>"
var innerhtml = "<option selected hidden disabled value='0'>Location</option>"
for (var i = 0; i < data.list.length; i++) {
innerhtml += "<option value=\"" + data.list[i].id + "\">" + data.list[i].name + "</option>";
}
@ -219,7 +219,7 @@
},
success: function (data) {
if (data.status === 'OK') {
var innerhtml = "<option selected hidden>Status</option>"
var innerhtml = "<option selected hidden disabled value='0'>Status</option>"
for (var i = 0; i < data.list.length; i++) {
if (from == 'hdd' && data.list[i].name.indexOf('HDD') == -1) {
continue;
@ -254,7 +254,7 @@
},
success: function (data) {
if (data.status === 'OK') {
var innerhtml = "<option selected hidden>Model</option>"
var innerhtml = "<option selected hidden disabled value='0'>Model</option>"
for (var i = 0; i < data.list.length; i++) {
if (from == 'hdd' && data.list[i].name != 'Hard Drive') {
continue;

1
platforms/android/res/xml/config.xml

@ -44,6 +44,7 @@
Netsyms Technologies
</author>
<content src="index.html" />
<preference name="SplashScreen" value="none" />
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />

6
www/screens/home.html

@ -189,7 +189,7 @@
},
success: function (data) {
if (data.status === 'OK') {
var innerhtml = "<option selected hidden>Location</option>"
var innerhtml = "<option selected hidden disabled value='0'>Location</option>"
for (var i = 0; i < data.list.length; i++) {
innerhtml += "<option value=\"" + data.list[i].id + "\">" + data.list[i].name + "</option>";
}
@ -219,7 +219,7 @@
},
success: function (data) {
if (data.status === 'OK') {
var innerhtml = "<option selected hidden>Status</option>"
var innerhtml = "<option selected hidden disabled value='0'>Status</option>"
for (var i = 0; i < data.list.length; i++) {
if (from == 'hdd' && data.list[i].name.indexOf('HDD') == -1) {
continue;
@ -254,7 +254,7 @@
},
success: function (data) {
if (data.status === 'OK') {
var innerhtml = "<option selected hidden>Model</option>"
var innerhtml = "<option selected hidden disabled value='0'>Model</option>"
for (var i = 0; i < data.list.length; i++) {
if (from == 'hdd' && data.list[i].name != 'Hard Drive') {
continue;

Loading…
Cancel
Save