Skip to content

Commit

Permalink
iOS done
Browse files Browse the repository at this point in the history
  • Loading branch information
dycode committed Dec 18, 2015
1 parent 6199635 commit 31ec947
Show file tree
Hide file tree
Showing 17 changed files with 87 additions and 86 deletions.
Binary file modified platforms/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion platforms/android/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<manifest android:hardwareAccelerated="true" android:versionCode="1" android:versionName="0.0.1" package="com.sp.qrcode" xmlns:android="http://schemas.android.com/apk/res/android">
<manifest android:hardwareAccelerated="true" android:versionCode="1" android:versionName="0.0.1" package="net.dycode.pstscanner" xmlns:android="http://schemas.android.com/apk/res/android">
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Expand Down
Binary file removed platforms/android/res/drawable-hdpi/icon.png
Binary file not shown.
Binary file removed platforms/android/res/drawable-ldpi/icon.png
Binary file not shown.
Binary file modified platforms/android/res/drawable-mdpi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed platforms/android/res/drawable-xhdpi/icon.png
Binary file not shown.
Binary file removed platforms/android/res/drawable-xxhdpi/icon.png
Binary file not shown.
10 changes: 6 additions & 4 deletions platforms/android/res/xml/config.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.sp.qrcode" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<widget id="net.dycode.pstscanner" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<preference name="loglevel" value="DEBUG" />
<feature name="Whitelist">
<param name="android-package" value="org.apache.cordova.whitelist.WhitelistPlugin" />
Expand All @@ -17,12 +17,14 @@
<allow-intent href="market:*" />
<name>PST Scanner</name>
<description>
Application for scanning Codes
Application for scanning PST Parts
</description>
<author email="andrej@dycode.net">
Andrej Lukaševič
<author email="support@dycode.net">
Dycode
</author>
<content src="index.html" />
<icon platform="ios" src="res/pstlogo-square.png" />
<preference name="SplashScreen" value="none" />
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Licensed to the Apache Software Foundation (ASF) under one
under the License.
*/

package com.sp.qrcode;
package net.dycode.pstscanner;

import android.os.Bundle;
import org.apache.cordova.*;
Expand Down
10 changes: 6 additions & 4 deletions platforms/browser/config.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.sp.qrcode" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<widget id="net.dycode.pstscanner" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<feature name="BarcodeScanner">
<param name="browser-package" value="BarcodeScanner" />
</feature>
<name>PST Scanner</name>
<description>
Application for scanning Codes
Application for scanning PST Parts
</description>
<author email="andrej@dycode.net">
Andrej Lukaševič
<author email="support@dycode.net">
Dycode
</author>
<content src="index.html" />
<icon platform="ios" src="res/pstlogo-square.png" />
<preference name="SplashScreen" value="none" />
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
Expand Down
10 changes: 6 additions & 4 deletions platforms/browser/www/config.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.sp.qrcode" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<widget id="net.dycode.pstscanner" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<feature name="BarcodeScanner">
<param name="browser-package" value="BarcodeScanner" />
</feature>
<name>PST Scanner</name>
<description>
Application for scanning Codes
Application for scanning PST Parts
</description>
<author email="andrej@dycode.net">
Andrej Lukaševič
<author email="support@dycode.net">
Dycode
</author>
<content src="index.html" />
<icon platform="ios" src="res/pstlogo-square.png" />
<preference name="SplashScreen" value="none" />
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
Expand Down
10 changes: 5 additions & 5 deletions platforms/browser/www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
var BUILD_TYPE_MAKER = 1; // Rodomas tik vienas mygtukas, Pagaminta
var BUILD_TYPE_AGENT = 2; // Rodomi du mygtukai, Pristatyta, Sumontuota

var buildType = BUILD_TYPE_AGENT; // Čia nustatomas build tipas
var buildType = BUILD_TYPE_MAKER; // Čia nustatomas build tipas

$(document).on("mobileinit", function () {
$.mobile.loader.prototype.options.disabled = true;
Expand Down Expand Up @@ -140,12 +140,12 @@ <h1>Siunčiama...</h1>

function validateData(data) {
if (data.name.trim() == '') {
alert("Vardas negali būti tuštas")
navigator.notification.alert("Vardas negali būti tuštas", null, "Klaida", "OK");
return false;
}

if (data.code.trim() == '') {
alert("Kodas negali būti tuštas")
navigator.notification.alert("Kodas negali būti tuštas", null, "Klaida", "OK");
return false;
}

Expand All @@ -169,15 +169,15 @@ <h1>Siunčiama...</h1>

// Response handlers.
xhr.onload = function () {
alert("Sekmingai išsiusta");
navigator.notification.alert("Sekmingai išsiusta", null, "Pavyko", "OK");
setFormVisibility(true);
setProgressBarVisibility(false);
document.getElementById('code').value = '';
refreshButtonVisibility(false);
};

xhr.onerror = function () {
alert("Išsiuntimas nepavyko");
navigator.notification.alert("Išsiuntimas nepavyko", null, "Klaida", "OK");
setFormVisibility(true);
setProgressBarVisibility(false);
refreshButtonVisibility(false);
Expand Down
Loading

0 comments on commit 31ec947

Please sign in to comment.