gradle-I-fy
3
.gitignore
vendored
|
@ -1,3 +1,6 @@
|
|||
.gradle
|
||||
build
|
||||
.idea
|
||||
assets
|
||||
bin
|
||||
gen
|
||||
|
|
26
build.gradle
Normal file
|
@ -0,0 +1,26 @@
|
|||
buildscript {
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:0.5.+'
|
||||
}
|
||||
}
|
||||
apply plugin: 'android'
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdkVersion 17
|
||||
buildToolsVersion "17.0.0"
|
||||
|
||||
|
||||
dependencies {
|
||||
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
|
||||
compile fileTree(dir: 'libs', include: '*.jar')
|
||||
}
|
||||
}
|
||||
|
||||
|
BIN
promo/180x120.png
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
promo/180x120.xcf
Normal file
BIN
promo/940x180.png
Normal file
After Width: | Height: | Size: 84 KiB |
BIN
promo/940x180.xcf
Normal file
|
@ -3,8 +3,8 @@
|
|||
xmlns:tools="http://schemas.android.com/tools"
|
||||
package="org.ligi.ticketviewer"
|
||||
android:installLocation="auto"
|
||||
android:versionCode="17"
|
||||
android:versionName="1.7">
|
||||
android:versionCode="18"
|
||||
android:versionName="1.8">
|
||||
|
||||
<uses-sdk
|
||||
android:minSdkVersion="8"
|
||||
|
@ -140,6 +140,7 @@
|
|||
</application>
|
||||
|
||||
|
||||
|
||||
<uses-feature
|
||||
android:glEsVersion="0x00020000"
|
||||
android:required="true"/>
|
|
@ -1,21 +1,8 @@
|
|||
package org.ligi.ticketviewer;
|
||||
|
||||
import android.accounts.AccountManager;
|
||||
import android.app.Activity;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.preference.CheckBoxPreference;
|
||||
|
||||
import android.preference.Preference;
|
||||
import android.preference.PreferenceScreen;
|
||||
import com.actionbarsherlock.app.SherlockPreferenceActivity;
|
||||
import com.google.api.client.extensions.android.http.AndroidHttp;
|
||||
import com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential;
|
||||
import com.google.api.client.googleapis.extensions.android.gms.auth.UserRecoverableAuthIOException;
|
||||
import com.google.api.client.http.FileContent;
|
||||
import com.google.api.client.json.gson.GsonFactory;
|
||||
import com.google.api.services.drive.Drive;
|
||||
import com.google.api.services.drive.DriveScopes;
|
||||
import com.google.api.services.drive.model.File;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
|
@ -25,7 +12,11 @@ import java.io.IOException;
|
|||
* Time: 6:31 PM
|
||||
*/
|
||||
public class PreferenceActivity extends SherlockPreferenceActivity implements Preference.OnPreferenceChangeListener {
|
||||
|
||||
@Override
|
||||
public boolean onPreferenceChange(Preference preference, Object newValue) {
|
||||
return false; //To change body of implemented methods use File | Settings | File Templates.
|
||||
}
|
||||
/*
|
||||
private static final int REQUEST_ACCOUNT_PICKER = 1;
|
||||
private static final int REQUEST_AUTHORIZATION = 2;
|
||||
private static Drive service;
|
||||
|
@ -37,13 +28,11 @@ public class PreferenceActivity extends SherlockPreferenceActivity implements Pr
|
|||
PreferenceScreen root = getPreferenceManager().createPreferenceScreen(this);
|
||||
|
||||
root.setPersistent(true);
|
||||
/*
|
||||
// UI section
|
||||
PreferenceCategory uiPrefCat = new PreferenceCategory(this);
|
||||
uiPrefCat.setTitle(R.string.screen);
|
||||
root.addPreference(uiPrefCat);
|
||||
//PreferenceCategory uiPrefCat = new PreferenceCategory(this);
|
||||
//uiPrefCat.setTitle(R.string.screen);
|
||||
//root.addPreference(uiPrefCat);
|
||||
|
||||
*/
|
||||
|
||||
sync2driveCheckBoxPref = new CheckBoxPreference(this);
|
||||
sync2driveCheckBoxPref.setKey("DRIVE_BACKUP");
|
||||
|
@ -74,11 +63,11 @@ public class PreferenceActivity extends SherlockPreferenceActivity implements Pr
|
|||
GoogleAccountCredential credential = GoogleAccountCredential.usingOAuth2(this, DriveScopes.DRIVE_FILE);
|
||||
startActivityForResult(credential.newChooseAccountIntent(), REQUEST_ACCOUNT_PICKER);
|
||||
}
|
||||
/*
|
||||
* if ((preference==sgf_path_pref)||(preference==sgf_fname_pref)
|
||||
* ||(preference==boardSkinPref)|| (preference==stoneSkinPref)||
|
||||
* (preference==aiLevelPref)) preference.setSummary((String)newValue);
|
||||
*/
|
||||
//
|
||||
// if ((preference==sgf_path_pref)||(preference==sgf_fname_pref)
|
||||
// ||(preference==boardSkinPref)|| (preference==stoneSkinPref)||
|
||||
// (preference==aiLevelPref)) preference.setSummary((String)newValue);
|
||||
|
||||
return true; // return that we are OK with preferences
|
||||
}
|
||||
|
||||
|
@ -130,8 +119,8 @@ public class PreferenceActivity extends SherlockPreferenceActivity implements Pr
|
|||
//service.files();
|
||||
File file = service.files().insert(body, mediaContent).execute();
|
||||
if (file != null) {
|
||||
/*showToast("Photo uploaded: " + file.getTitle());
|
||||
startCameraIntent();*/
|
||||
//showToast("Photo uploaded: " + file.getTitle());
|
||||
//startCameraIntent();
|
||||
}
|
||||
} catch (UserRecoverableAuthIOException e) {
|
||||
startActivityForResult(e.getIntent(), REQUEST_AUTHORIZATION);
|
||||
|
@ -142,4 +131,5 @@ public class PreferenceActivity extends SherlockPreferenceActivity implements Pr
|
|||
});
|
||||
t.start();
|
||||
}
|
||||
*/
|
||||
}
|
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 2 KiB After Width: | Height: | Size: 2 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 6.7 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
|
@ -11,11 +11,11 @@
|
|||
android:orderInCategory="100"
|
||||
android:showAsAction="ifRoom|withText"
|
||||
android:title="@string/help_label" android:icon="@android:drawable/ic_menu_help"/>
|
||||
|
||||
<!--
|
||||
<item
|
||||
android:id="@+id/menu_settings"
|
||||
android:orderInCategory="100"
|
||||
android:showAsAction="ifRoom|withText"
|
||||
android:title="settings" android:icon="@android:drawable/ic_menu_preferences"/>
|
||||
|
||||
-->
|
||||
</menu>
|
12
src/main/res/values/analytics.xml
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<resources>
|
||||
<!--Replace placeholder ID with your tracking ID-->
|
||||
<string name="ga_trackingId">UA-38359849-1</string>
|
||||
|
||||
<!--Enable Activity tracking-->
|
||||
<bool name="ga_autoActivityTracking">true</bool>
|
||||
|
||||
<!--Enable automatic exception tracking-->
|
||||
<bool name="ga_reportUncaughtExceptions">true</bool>
|
||||
|
||||
</resources>
|