Skip to content
This repository has been archived by the owner on Nov 25, 2023. It is now read-only.

Commit

Permalink
Cleaned up some code.
Browse files Browse the repository at this point in the history
  • Loading branch information
MSkjel committed Mar 14, 2019
1 parent 500d872 commit debfe05
Show file tree
Hide file tree
Showing 103 changed files with 2,616 additions and 2,376 deletions.
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ android {
applicationId "tw.fatminmin.xposed.minminguard"
minSdkVersion 14
targetSdkVersion 28
versionCode 60
versionName "2.0.2"
versionCode 62
versionName "2.0.4"
}
buildTypes {
release {
Expand Down Expand Up @@ -76,4 +76,4 @@ dependencies {
implementation('com.crashlytics.sdk.android:crashlytics:2.5.2@aar') {
transitive = true
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
public class ApplicationTest extends ApplicationTestCase<Application>
{
public ApplicationTest()
{
super(Application.class);
}
}
62 changes: 31 additions & 31 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,58 +1,58 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="tw.fatminmin.xposed.minminguard" >
package="tw.fatminmin.xposed.minminguard">

<uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES"/>
<uses-permission android:name="android.permission.INTERNET"/>

<application
android:name=".MyApplication"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
android:name=".MyApplication"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme">

<activity
android:name=".ui.MainActivity"
android:label="@string/app_name"
android:configChanges="keyboardHidden|orientation|screenSize" >
android:name=".ui.MainActivity"
android:label="@string/app_name"
android:configChanges="keyboardHidden|orientation|screenSize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.MAIN"/>

<category android:name="android.intent.category.LAUNCHER" />
<category android:name="de.robv.android.xposed.category.MODULE_SETTINGS" />
<category android:name="android.intent.category.LAUNCHER"/>
<category android:name="de.robv.android.xposed.category.MODULE_SETTINGS"/>
</intent-filter>
</activity>

<activity
android:name=".ui.MinMinGuardIntro"
android:label="@string/app_name"
android:theme="@style/FullscreenTheme">
android:name=".ui.MinMinGuardIntro"
android:label="@string/app_name"
android:theme="@style/FullscreenTheme">
</activity>

<provider
android:name=".MinMinProvider"
android:authorities="tw.fatminmin.xposed.minminguard"
android:exported="true" />
android:name=".MinMinProvider"
android:authorities="tw.fatminmin.xposed.minminguard"
android:exported="true"/>

<provider
android:name=".ModSettingsProvider"
android:authorities="tw.fatminmin.xposed.minminguard.modesettings"
android:exported="true"/>
android:name=".ModSettingsProvider"
android:authorities="tw.fatminmin.xposed.minminguard.modesettings"
android:exported="true"/>

<meta-data
android:name="xposedmodule"
android:value="true" />
android:name="xposedmodule"
android:value="true"/>
<meta-data
android:name="xposedminversion"
android:value="2.0*" />
android:name="xposedminversion"
android:value="2.0*"/>
<meta-data
android:name="xposeddescription"
android:value="Ads blocker" />
android:name="xposeddescription"
android:value="Ads blocker"/>

<meta-data
android:name="io.fabric.ApiKey"
android:value="11b3bd0c3467e4848618141b36a73619c7ef4843" />
android:name="io.fabric.ApiKey"
android:value="11b3bd0c3467e4848618141b36a73619c7ef4843"/>
</application>

</manifest>
16 changes: 11 additions & 5 deletions app/src/main/java/tw/fatminmin/xposed/minminguard/Common.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
/**
* Created by fatminmin on 2015/10/1.
*/
public class Common {
public class Common
{
public final static String PACKAGE_NAME = BuildConfig.APPLICATION_ID;

public final static String MOD_PREFS = "ModSettings";
Expand All @@ -30,12 +31,15 @@ public class Common {
public final static String KEY_NETWORK = "AD_NETWORKS";
public final static String KEY_BLOCK_NUM = "BLOCK_NUM";

private Common() throws InstantiationException {
private Common() throws InstantiationException
{
throw new InstantiationException("This class is not for instantiation");
}

public static String getModeString(MainFragment.FragmentMode mode) {
switch (mode) {
public static String getModeString(MainFragment.FragmentMode mode)
{
switch (mode)
{
case AUTO:
return Common.VALUE_MODE_AUTO;
case BLACKLIST:
Expand All @@ -47,7 +51,9 @@ public static String getModeString(MainFragment.FragmentMode mode) {
}
return Common.VALUE_MODE_BLACKLIST;
}
public static String getWhiteListKey(String pkgName) {

public static String getWhiteListKey(String pkgName)
{
return pkgName + "_whitelist";
}
}
Loading

0 comments on commit debfe05

Please sign in to comment.