Skip to content
This repository has been archived by the owner on Feb 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #67 from Fs00/unused-stuff
Browse files Browse the repository at this point in the history
Remove some unused stuff
  • Loading branch information
javacafe01 authored Dec 19, 2020
2 parents de17783 + 7b026cd commit c6aedb0
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 109 deletions.
11 changes: 0 additions & 11 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ android {
targetSdkVersion 29
versionCode 24
versionName "3.3"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true

javaCompileOptions {
Expand Down Expand Up @@ -73,20 +72,13 @@ 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'

//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'

Expand All @@ -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'
}

This file was deleted.

Binary file removed app/src/main/assets/pdf_sample.pdf
Binary file not shown.
44 changes: 6 additions & 38 deletions app/src/main/java/com/gsnathan/pdfviewer/AboutActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,6 @@ public void showPrivacy(View v) {
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"));
}
Expand Down Expand Up @@ -142,27 +138,6 @@ public void showLibraries(View v) {
.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")
Expand All @@ -178,24 +153,17 @@ public void showLibraries(View v) {
.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();
Expand Down
11 changes: 0 additions & 11 deletions app/src/main/java/com/gsnathan/pdfviewer/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -423,17 +423,6 @@ public void onClick(DialogInterface dialog, int which) {

}

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) {
Expand Down
6 changes: 0 additions & 6 deletions app/src/main/java/com/gsnathan/pdfviewer/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,6 @@ static void showLog(AppCompatActivity context) {
log.show(context.getSupportFragmentManager(), "Log");
}

public static String getAndroidVersion() {
String release = Build.VERSION.RELEASE;
int sdkVersion = Build.VERSION.SDK_INT;
return "Android SDK: " + sdkVersion + " (" + release + ")";
}

static Intent emailIntent(String emailAddress, String subject, String text, String title) {
Intent email = new Intent(Intent.ACTION_SEND);
email.setType("text/email");
Expand Down
Binary file removed app/src/main/res/drawable/etamuk.png
Binary file not shown.
Binary file removed app/src/main/res/drawable/greynar.png
Binary file not shown.
Binary file removed app/src/main/res/drawable/myprofile.png
Binary file not shown.
Binary file removed app/src/main/res/drawable/orelio.png
Binary file not shown.
Binary file removed app/src/main/res/drawable/rasbeguy.png
Binary file not shown.
17 changes: 0 additions & 17 deletions app/src/test/java/com/gsnathan/pdfviewer/ExampleUnitTest.java

This file was deleted.

0 comments on commit c6aedb0

Please sign in to comment.