Bumped the use the Android N Preview, added ACRA and multiple settings intents.
This commit is contained in:
parent
3529485edc
commit
50f6f3acc3
@ -8,7 +8,7 @@
|
||||
</configuration>
|
||||
</facet>
|
||||
</component>
|
||||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7" inherit-compiler-output="true">
|
||||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_6" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
|
||||
|
12
app/app.iml
12
app/app.iml
@ -26,7 +26,7 @@
|
||||
</configuration>
|
||||
</facet>
|
||||
</component>
|
||||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7" inherit-compiler-output="false">
|
||||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_6" inherit-compiler-output="false">
|
||||
<output url="file://$MODULE_DIR$/build/intermediates/classes/debug" />
|
||||
<output-test url="file://$MODULE_DIR$/build/intermediates/classes/androidTest/debug" />
|
||||
<exclude-output />
|
||||
@ -68,7 +68,8 @@
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dependency-cache" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-v4/23.2.0/jars" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/ch.acra/acra/4.8.5/jars" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-v4/24.0.0-alpha1/jars" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/manifests" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/pre-dexed" />
|
||||
@ -80,10 +81,11 @@
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/outputs" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/tmp" />
|
||||
</content>
|
||||
<orderEntry type="jdk" jdkName="Android API 23 Platform" jdkType="Android SDK" />
|
||||
<orderEntry type="jdk" jdkName="Android API 23, N preview Platform" jdkType="Android SDK" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" exported="" name="support-v4-23.2.0" level="project" />
|
||||
<orderEntry type="library" exported="" name="support-annotations-23.2.0" level="project" />
|
||||
<orderEntry type="library" exported="" name="acra-4.8.5" level="project" />
|
||||
<orderEntry type="library" exported="" name="support-v4-24.0.0-alpha1" level="project" />
|
||||
<orderEntry type="library" exported="" name="support-annotations-24.0.0-alpha1" level="project" />
|
||||
<orderEntry type="module" module-name="colorPicker" exported="" />
|
||||
</component>
|
||||
</module>
|
@ -1,9 +1,8 @@
|
||||
apply plugin: 'com.android.application'
|
||||
|
||||
android {
|
||||
compileSdkVersion 23
|
||||
buildToolsVersion "23.0.2"
|
||||
|
||||
compileSdkVersion 'android-N'
|
||||
buildToolsVersion '24.0.0-rc1'
|
||||
defaultConfig {
|
||||
applicationId "com.mridang.speedo"
|
||||
minSdkVersion 16
|
||||
@ -17,10 +16,13 @@ android {
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
productFlavors {
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile fileTree(dir: 'libs', include: ['*.jar'])
|
||||
compile 'com.android.support:support-v4:23.2.0'
|
||||
compile 'com.android.support:support-v4:24.0.0-alpha1'
|
||||
compile project(':colorPicker')
|
||||
compile 'ch.acra:acra:4.8.5'
|
||||
}
|
@ -1,15 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest
|
||||
package="com.mridang.speedo"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
package="com.mridang.speedo">
|
||||
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
|
||||
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
|
||||
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
|
||||
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
|
||||
<application
|
||||
android:name=".SpeedoApplication"
|
||||
android:allowBackup="true"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
@ -19,23 +19,26 @@
|
||||
android:label="@string/app_name"
|
||||
tools:ignore="ExportedPreferenceActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
<action android:name="android.intent.action.APPLICATION_PREFERENCES" />
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
<category android:name="android.intent.category.NOTIFICATION_PREFERENCES" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<service
|
||||
android:name=".TrafficService"
|
||||
android:enabled="true"/>
|
||||
android:enabled="true" />
|
||||
|
||||
<receiver
|
||||
android:name=".BootReceiver"
|
||||
android:enabled="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.BOOT_COMPLETED"/>
|
||||
<action android:name="android.intent.action.BOOT_COMPLETED" />
|
||||
</intent-filter>
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MY_PACKAGE_REPLACED"/>
|
||||
<data android:scheme="package"/>
|
||||
<action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
|
||||
<data android:scheme="package" />
|
||||
</intent-filter>
|
||||
</receiver>
|
||||
<receiver
|
||||
|
14
app/src/main/java/com/mridang/speedo/SpeedoApplication.java
Normal file
14
app/src/main/java/com/mridang/speedo/SpeedoApplication.java
Normal file
@ -0,0 +1,14 @@
|
||||
package com.mridang.speedo;
|
||||
|
||||
import android.app.Application;
|
||||
|
||||
import org.acra.annotation.ReportsCrashes;
|
||||
|
||||
@ReportsCrashes(
|
||||
resNotifTickerText = R.string.crash_notif_ticker_text,
|
||||
resNotifTitle = R.string.crash_notif_title,
|
||||
resNotifText = R.string.crash_notif_text,
|
||||
mailTo = "mridang.agarwalla+speedo@gmail.com"
|
||||
)
|
||||
public class SpeedoApplication extends Application {
|
||||
}
|
@ -10,4 +10,7 @@
|
||||
<string name="lowpower_summary">Disable the notification and the service when the device\'s battery is low or when the power saving mode is enabled</string>
|
||||
<string name="color_summary">Background color of the notification icon</string>
|
||||
<string name="color_title">Color</string>
|
||||
<string name="crash_notif_ticker_text">Unexpected error, please send a report</string>
|
||||
<string name="crash_notif_title">Throttle has crashed…</string>
|
||||
<string name="crash_notif_text">Please click here to help fix the issue.</string>
|
||||
</resources>
|
||||
|
Loading…
Reference in New Issue
Block a user