Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java

Issue 29678581: Issue 6000 - Rename "libadblockplus-android" (Closed)
Patch Set: addressed comments Created Jan. 29, 2018, 11:04 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java
diff --git a/libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java b/libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java
deleted file mode 100644
index 8788335568e691afb73c6b74b3404df09742a5ac..0000000000000000000000000000000000000000
--- a/libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * This file is part of Adblock Plus <https://adblockplus.org/>,
- * Copyright (C) 2006-present eyeo GmbH
- *
- * Adblock Plus is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 3 as
- * published by the Free Software Foundation.
- *
- * Adblock Plus is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
- */
-
-package org.adblockplus.libadblockplus.android.webviewapp;
-
-import android.content.Context;
-
-import org.adblockplus.libadblockplus.android.AdblockEngine;
-import org.adblockplus.libadblockplus.android.AndroidWebRequestResourceWrapper;
-import org.adblockplus.libadblockplus.android.settings.AdblockHelper;
-
-import java.util.HashMap;
-import java.util.Map;
-
-public class Application extends android.app.Application
-{
- @Override
- public void onCreate()
- {
- super.onCreate();
-
- // init Adblock
- String basePath = getDir(AdblockEngine.BASE_PATH_DIRECTORY, Context.MODE_PRIVATE).getAbsolutePath();
-
- // provide preloaded subscriptions
- Map<String, Integer> map = new HashMap<String, Integer>();
- map.put(AndroidWebRequestResourceWrapper.EASYLIST, R.raw.easylist);
- map.put(AndroidWebRequestResourceWrapper.EASYLIST_CHINESE, R.raw.easylist);
- map.put(AndroidWebRequestResourceWrapper.ACCEPTABLE_ADS, R.raw.exceptionrules);
-
- AdblockHelper
- .get()
- .init(this, basePath, true, AdblockHelper.PREFERENCE_NAME)
- .preloadSubscriptions(AdblockHelper.PRELOAD_PREFERENCE_NAME, map);
- }
-}

Powered by Google App Engine
This is Rietveld