get rid of proguard and backupagent

This commit is contained in:
Adrian Ulrich 2014-10-13 15:02:22 +02:00
parent 9993ff64c6
commit ecaa32455f
3 changed files with 3 additions and 109 deletions

View File

@ -23,8 +23,8 @@ THE SOFTWARE.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="ch.blinkenlights.android.vanilla"
android:versionName="0.9.27"
android:versionCode="0927"
android:versionName="0.9.29"
android:versionCode="0929"
android:installLocation="auto">
<uses-sdk android:minSdkVersion="15" android:targetSdkVersion="16" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
@ -33,8 +33,7 @@ THE SOFTWARE.
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<application
android:icon="@drawable/icon"
android:label="@string/app_name"
android:backupAgent="PreferencesBackupAgent">
android:label="@string/app_name">
<activity
android:name="FullPlaybackActivity"
android:theme="@style/Playback"

View File

@ -1,62 +0,0 @@
-allowaccessmodification
-printmapping map.txt
-printseeds seeds.txt
-printusage unused.txt
-optimizationpasses 5
-repackageclasses
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-keep public class org.kreed.vanilla.* extends android.app.Activity
-keep public class org.kreed.vanilla.* extends android.app.Application
-keep public class org.kreed.vanilla.* extends android.app.Service
-keep public class org.kreed.vanilla.* extends android.app.Fragment
-keep public class org.kreed.vanilla.* extends android.content.BroadcastReceiver
-keep public class org.kreed.vanilla.* extends android.content.ContentProvider
-keep public class org.kreed.vanilla.* extends android.app.backup.BackupAgentHelper
-keep public class org.kreed.vanilla.* extends android.preference.Preference
-keepclassmembers enum org.kreed.vanilla.* {
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keepclasseswithmembernames class org.kreed.vanilla.* {
native <methods>;
}
-keepclasseswithmembers class org.kreed.vanilla.*,com.viewpagerindicator.*,android.support.v4.view.ViewPager {
public <init>(android.content.Context, android.util.AttributeSet);
}
-keepclasseswithmembers class org.kreed.vanilla.* {
public <init>(android.content.Context, android.util.AttributeSet, int);
}
-keepclassmembers class org.kreed.vanilla.* extends android.app.Activity {
public void *(android.view.View);
}
-keep class org.kreed.vanilla.*,android.support.v4.view.ViewPager$SavedState implements android.os.Parcelable {
public static final android.os.Parcelable$* *;
}
-assumenosideeffects class android.util.Log {
public static *** d(...);
public static *** v(...);
public static *** i(...);
public static *** w(...);
}
-assumenosideeffects class java.lang.String {
public *** format(...);
}
-assumenosideeffects class junit.framework.Assert {
<methods>;
}
-keep public class org.kreed.vanilla.Compat*
-keep public class android.support.v4.view.*Compat

View File

@ -1,43 +0,0 @@
/*
* Copyright (C) 2011 Christopher Eby <kreed@kreed.org>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package ch.blinkenlights.android.vanilla;
import android.annotation.TargetApi;
import android.app.backup.BackupAgentHelper;
import android.app.backup.SharedPreferencesBackupHelper;
/**
* Saves application preferences to the backup manager.
*/
@TargetApi(8)
public class PreferencesBackupAgent extends BackupAgentHelper {
private static final String BACKUP_KEY = "prefs";
@Override
public void onCreate()
{
// This is the preference name used by PreferenceManager.getDefaultSharedPreferences
String prefs = getPackageName() + "_preferences";
addHelper(BACKUP_KEY, new SharedPreferencesBackupHelper(this, prefs));
}
}