Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Version 2.0.1 release

  * BUGFIX: Removed testing problem from SQLite DB.
  • Loading branch information...
commit ad117db45958c918dbffde3f0ec1151e27212547 1 parent 103a277
@dalibor authored
View
BIN  Resources/db/popravi.sqlite
Binary file not shown
View
14 Resources/js/p/db.js
@@ -1,5 +1,5 @@
P.db = {};
-P.db.connection = Titanium.Database.install('../../db/popravi.sqlite', 'popravi2');
+P.db.connection = Titanium.Database.install('../../db/popravi.sqlite', 'popravi3');
P.db.categories = function () {
var categories = [];
@@ -8,7 +8,7 @@ P.db.categories = function () {
while (dbCategories.isValidRow()) {
categories.push({
- title: dbCategories.fieldByName('name'),
+ title: dbCategories.fieldByName('name'),
id: dbCategories.fieldByName('web_id')
});
dbCategories.next();
@@ -26,7 +26,7 @@ P.db.municipalities = function () {
while (dbMunicipalities.isValidRow()) {
municipalities.push({
- title: dbMunicipalities.fieldByName('name'),
+ title: dbMunicipalities.fieldByName('name'),
id: dbMunicipalities.fieldByName('web_id')
});
dbMunicipalities.next();
@@ -89,7 +89,7 @@ P.db.getProblemParams = function (dbProblems) {
longitude: dbProblems.fieldByName('longitude'),
email: dbProblems.fieldByName('email'),
imagePath: imagePath,
- image: image,
+ image: image,
problemId: dbProblems.fieldByName('id'),
token: String(Math.floor(Math.random() * 123456789))
};
@@ -111,7 +111,7 @@ P.db.syncProblems = function (callback) {
value: 0
});
- var successCallback = function (params) {
+ var successCallback = function (params) {
P.db.deleteProblem(params.problemId); // remove the sent problem
var currentTotal = Number(P.db.countLocalProblems());
@@ -251,8 +251,8 @@ P.db.problemErrorHandler = function (actions, refreshPickersCallback) {
}
var syncAlert = Titanium.UI.createAlertDialog({
- title: 'Синхронизација',
- message: 'Потребно е да направите синхронизација со серверот за да ја превземете изменетата листа на ' + messageSync.join(" и ") + '. Дали сакате синхронизацијата да започне?',
+ title: 'Синхронизација',
+ message: 'Потребно е да направите синхронизација со серверот за да ја превземете изменетата листа на ' + messageSync.join(" и ") + '. Дали сакате синхронизацијата да започне?',
buttonNames: ['Да', 'Не']
});
View
16 build/android/AndroidManifest.custom.xml
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="mk.popravi.mobile"
- android:versionCode="2"
- android:versionName="2"
+ android:versionCode="3"
+ android:versionName="2.0.1"
>
<uses-sdk android:minSdkVersion="4" />
- <supports-screens
+ <supports-screens
android:smallScreens="false"
android:normalScreens="true"
android:largeScreens="true"
@@ -13,7 +13,7 @@
/>
<!-- TI_MANIFEST -->
-
+
<application
android:icon="@drawable/appicon"
android:label="PopraviMK"
@@ -60,10 +60,10 @@
android:name="org.appcelerator.titanium.analytics.TiAnalyticsService"
android:exported="false"
/>
-
+
</application>
-
+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION"/>
@@ -72,6 +72,6 @@
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
-
-
+
+
</manifest>
Please sign in to comment.
Something went wrong with that request. Please try again.