Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit c6aedb03 authored by gokul swaminathan's avatar gokul swaminathan Committed by GitHub
Browse files

Merge pull request #67 from Fs00/unused-stuff

Remove some unused stuff
parents de177831 7b026cdf
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -39,7 +39,6 @@ android {
        targetSdkVersion 29
        versionCode 24
        versionName "3.3"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        vectorDrawables.useSupportLibrary = true

        javaCompileOptions {
@@ -73,10 +72,6 @@ dependencies {
    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'com.google.android.material:material:1.2.0-alpha05'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test:runner:1.2.0'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'

    //Intro Library
    implementation 'com.github.paolorotolo:appintro:v5.1.0'
@@ -84,9 +79,6 @@ dependencies {
    //Library for Card View Layout
    implementation 'androidx.cardview:cardview:1.0.0'

    //Ripple Effect Library
    implementation 'com.balysv:material-ripple:1.0.2'

    //Rating Library
    implementation 'io.github.kobakei:ratethisapp:1.2.0'

@@ -104,9 +96,6 @@ dependencies {
    //Changelog Library (Proguard config not needed)
    implementation 'io.github.tonnyl:whatsnew:0.1.1'

    //Circle Image View
    implementation 'de.hdodenhof:circleimageview:2.2.0'

    //Theme Engine
    implementation 'com.jaredrummler:cyanea:1.0.2'
}
+0 −26
Original line number Diff line number Diff line
package com.gsnathan.pdfviewer;

import android.content.Context;
import androidx.test.InstrumentationRegistry;
import androidx.test.runner.AndroidJUnit4;

import org.junit.Test;
import org.junit.runner.RunWith;

import static org.junit.Assert.*;

/**
 * Instrumented test, which will execute on an Android device.
 *
 * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
 */
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
    @Test
    public void useAppContext() throws Exception {
        // Context of the app under test.
        Context appContext = InstrumentationRegistry.getTargetContext();

        assertEquals("com.gsnathan.pdfviewer", appContext.getPackageName());
    }
}
−78.9 KiB

File deleted.

+6 −38
Original line number Diff line number Diff line
@@ -89,10 +89,6 @@ public class AboutActivity extends CyaneaAppCompatActivity {
        startActivity(Utils.linkIntent("https://github.com/JavaCafe01/PdfViewer/blob/master/privacy_policy.md"));
    }

    public void showMaterial(View v) {
        startActivity(Utils.linkIntent("https://materialdesignicons.com/"));
    }

    public void showLicense(View v) {
        startActivity(Utils.linkIntent("https://github.com/JavaCafe01/PdfViewer/blob/master/LICENSE"));
    }
@@ -142,27 +138,6 @@ public class AboutActivity extends CyaneaAppCompatActivity {
                                .setWebsite("http://developer.android.com/tools/support-library/index.html")
                                .build()
                )
                .addAttributions(
                        new Attribution.Builder("HtmlTextView for Android")
                                .addCopyrightNotice("Copyright 2013 Dominik Schürmann")
                                .addLicense(License.APACHE)
                                .setWebsite("https://github.com/PrivacyApps/html-textview")
                                .build()
                )
                .addAttributions(
                        new Attribution.Builder("LicenseTextView")
                                .addCopyrightNotice("Copyright 2016 JGabrielFreitas")
                                .addLicense(License.APACHE)
                                .setWebsite("https://github.com/jgabrielfreitas/LicenseTextView")
                                .build()
                )
                .addAttributions(
                        new Attribution.Builder("EasyFeedback")
                                .addCopyrightNotice("Copyright 2017 Ramankit Singh")
                                .addLicense(License.APACHE)
                                .setWebsite("https://github.com/webianks/EasyFeedback")
                                .build()
                )
                .addAttributions(
                        new Attribution.Builder("Material Design Icons")
                                .addCopyrightNotice("Copyright 2014, Austin Andrews")
@@ -178,24 +153,17 @@ public class AboutActivity extends CyaneaAppCompatActivity {
                                .build()
                )
                .addAttributions(
                        new Attribution.Builder("Cyanea")
                                .addCopyrightNotice("Copyright 2018 Jared Rummler")
                                .addLicense(License.APACHE)
                                .setWebsite("https://github.com/jaredrummler/Cyanea")
                                .build()
                )
                .addAttributions(
                        new Attribution.Builder("PhysicsLayout")
                                .addCopyrightNotice("Copyright 2016 John Carlson")
                        new Attribution.Builder("RateThisApp")
                                .addCopyrightNotice("Copyright 2017 Keisuke Kobayashi")
                                .addLicense(License.APACHE)
                                .setWebsite("https://github.com/Jawnnypoo/PhysicsLayout")
                                .setWebsite("https://github.com/kobakei/Android-RateThisApp")
                                .build()
                )
                .addAttributions(
                        new Attribution.Builder("fab-speed-dial")
                                .addCopyrightNotice("Copyright 2016 Yavor Ivanov")
                        new Attribution.Builder("Cyanea")
                                .addCopyrightNotice("Copyright 2018 Jared Rummler")
                                .addLicense(License.APACHE)
                                .setWebsite("https://github.com/yavski/fab-speed-dial")
                                .setWebsite("https://github.com/jaredrummler/Cyanea")
                                .build()
                )
                .build();
+0 −11
Original line number Diff line number Diff line
@@ -423,17 +423,6 @@ public class MainActivity extends ProgressActivity implements OnPageChangeListen

    }

    public void printBookmarksTree(List<PdfDocument.Bookmark> tree, String sep) {
        for (PdfDocument.Bookmark b : tree) {

            Log.e(TAG, String.format("%s %s, p %d", sep, b.getTitle(), b.getPageIdx()));

            if (b.hasChildren()) {
                printBookmarksTree(b.getChildren(), sep + "-");
            }
        }
    }

    @Override
    public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,
                                           @NonNull int[] grantResults) {
Loading