Skip to content
This repository has been archived by the owner on Aug 13, 2020. It is now read-only.

Commit

Permalink
Version 2.0.1 release
Browse files Browse the repository at this point in the history
  * BUGFIX: Removed testing problem from SQLite DB.
  • Loading branch information
dalibor committed Apr 15, 2012
1 parent 103a277 commit ad117db
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
Binary file modified Resources/db/popravi.sqlite
Binary file not shown.
14 changes: 7 additions & 7 deletions Resources/js/p/db.js
Original file line number Diff line number Diff line change
@@ -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 = [];
Expand All @@ -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();
Expand All @@ -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();
Expand Down Expand Up @@ -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))
};
Expand All @@ -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());
Expand Down Expand Up @@ -251,8 +251,8 @@ P.db.problemErrorHandler = function (actions, refreshPickersCallback) {
}

var syncAlert = Titanium.UI.createAlertDialog({
title: 'Синхронизација',
message: 'Потребно е да направите синхронизација со серверот за да ја превземете изменетата листа на ' + messageSync.join(" и ") + '. Дали сакате синхронизацијата да започне?',
title: 'Синхронизација',
message: 'Потребно е да направите синхронизација со серверот за да ја превземете изменетата листа на ' + messageSync.join(" и ") + '. Дали сакате синхронизацијата да започне?',
buttonNames: ['Да', 'Не']
});

Expand Down
16 changes: 8 additions & 8 deletions build/android/AndroidManifest.custom.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<?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"
android:anyDensity="false"
/>

<!-- TI_MANIFEST -->

<application
android:icon="@drawable/appicon"
android:label="PopraviMK"
Expand Down Expand Up @@ -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"/>
Expand All @@ -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>

0 comments on commit ad117db

Please sign in to comment.