Skip to content

adblockplus/adblockplussbrowser

Repository files navigation

Adblock Plus for Samsung Internet

A content blocker application that serves our filter lists to Samsung's content blocker enabled internet browser.

Building with Gradle

Requirements

  • Android SDK
  • Android Build Tools 25.0.3 *
  • JDK 7 or above

* Edit buildToolsVersion in the root build.gradle to change the Build Tools version, if necessary.

Building

  • In the root dir, create a local.properties file and set the sdk.dir=/your/path/here
  • From the root dir, run ./gradlew assembleDebug. This will generate an .apk file in the adblockplussbrowser/adblockplussbrowser/build/outputs/apk dir.

Importing into Android Studio

Requirements

  • Android SDK
  • Android Studio
  • Android Build Tools 25.0.3 *
  • We're compiling against Android API 25, so make sure you have that one installed.
  • JDK 7 or above

* Edit buildToolsVersion in the root build.gradle to change the Build Tools version, if necessary.

Importing

Open Android Studio and select Open an existing Android Studio Project, then navigate to the adblockplussbrowser dir.

Upload translations source file

If new strings that require translation have been added to the project, the gradle task uploadTranslationsSourceFile() must be started manually. It uploads the strings.xml file to the XTM backend and the C&T team is automatically notified that new translations are needed. In case of a successful upload, you should see an according status message printed out.

Testing

To test the whole functionality of the application you will need a Samsung Android device with Android 5.0+ (Lollipop) and Samsung Internet 4.0+.

Emulators won't help you here, unfortunately.