diff --git a/app/build.gradle b/app/build.gradle index 9768185..f63faff 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -6,9 +6,10 @@ android { applicationId "com.gsnathan.pdfviewer" minSdkVersion 19 targetSdkVersion 26 - versionCode 5 - versionName "1.4" + versionCode 6 + versionName "1.5" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" + vectorDrawables.useSupportLibrary = true javaCompileOptions { annotationProcessorOptions { @@ -33,6 +34,7 @@ dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.support:appcompat-v7:26.1.0' implementation 'com.android.support.constraint:constraint-layout:1.0.2' + implementation 'com.android.support:support-v4:26.1.0' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' @@ -59,5 +61,10 @@ dependencies { //View for App Licence compile 'com.jgabrielfreitas:licensetextview:1.1.2' + //Material About Page Library + compile 'com.github.jrvansuita:MaterialAbout:0.2.0' + + //Changelog Library + compile 'com.github.gabrielemariotti.changeloglib:changelog:2.1.0' } diff --git a/app/release/app-release.apk b/app/release/app-release.apk index 0618dda..7dbc8b7 100644 Binary files a/app/release/app-release.apk and b/app/release/app-release.apk differ diff --git a/app/release/output.json b/app/release/output.json index e3fb3f0..2abcc2e 100644 --- a/app/release/output.json +++ b/app/release/output.json @@ -1 +1 @@ -[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":5},"path":"app-release.apk","properties":{"packageId":"com.gsnathan.pdfviewer","split":"","minSdkVersion":"19"}}] \ No newline at end of file +[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":6},"path":"app-release.apk","properties":{"packageId":"com.gsnathan.pdfviewer","split":"","minSdkVersion":"19"}}] \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 1b06798..4b862cf 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -85,7 +85,7 @@ @@ -98,7 +98,7 @@ @@ -107,6 +107,20 @@ android:value=".AboutActivity" /> + + + + + + + + \ No newline at end of file diff --git a/app/src/main/java/com/gsnathan/pdfviewer/AboutActivity.java b/app/src/main/java/com/gsnathan/pdfviewer/AboutActivity.java index fb04535..16b35b7 100644 --- a/app/src/main/java/com/gsnathan/pdfviewer/AboutActivity.java +++ b/app/src/main/java/com/gsnathan/pdfviewer/AboutActivity.java @@ -5,7 +5,6 @@ import android.content.Context; import android.content.Intent; import android.net.Uri; -import android.os.Build; import android.support.annotation.NonNull; import com.danielstone.materialaboutlibrary.MaterialAboutActivity; @@ -20,6 +19,9 @@ /** * Created by Gokul Swaminathan on 2/22/2018. + * + * NOT IN USE + * */ public class AboutActivity extends MaterialAboutActivity { @@ -48,7 +50,7 @@ private void buildApp(MaterialAboutCard.Builder appBuilder, final Context contex .icon(R.mipmap.ic_launcher) .build()); appBuilder.addItem(new MaterialAboutActionItem.Builder() - .text("Version " + BuildConfig.VERSION_NAME) + .text("Version " + Utils.getAppVersion()) .icon(R.drawable.info_outline) .build()); appBuilder.addItem(new MaterialAboutActionItem.Builder() @@ -57,7 +59,18 @@ private void buildApp(MaterialAboutCard.Builder appBuilder, final Context contex .setOnClickAction(new MaterialAboutItemOnClickAction() { @Override public void onClick() { - startActivity(new Intent(getApplicationContext(), MainIntroActivity.class)); + startActivity(Utils.navIntent(getApplicationContext(), MainIntroActivity.class)); + } + }) + .build()); + appBuilder.addItem(new MaterialAboutActionItem.Builder() + .text(R.string.appChangelog) + .icon(R.drawable.clipboard_alert) + .setOnClickAction(new MaterialAboutItemOnClickAction() { + @Override + public void onClick() { + LogFragment log = new LogFragment(); + log.show(getSupportFragmentManager(), "Log Fragment"); } }) .build()); @@ -67,7 +80,7 @@ public void onClick() { .setOnClickAction(new MaterialAboutItemOnClickAction() { @Override public void onClick() { - startActivity(new Intent(getApplicationContext(), LicenseActivity.class)); + startActivity(Utils.navIntent(getApplicationContext(), LicenseActivity.class)); } }) .build()); @@ -77,7 +90,7 @@ public void onClick() { .setOnClickAction(new MaterialAboutItemOnClickAction() { @Override public void onClick() { - startActivity(new Intent(getApplicationContext(), PrivacyActivity.class)); + startActivity(Utils.navIntent(getApplicationContext(), PrivacyActivity.class)); } }) .build()); @@ -92,7 +105,7 @@ private void buildAuthor(MaterialAboutCard.Builder appBuilder, final Context con .setOnClickAction(new MaterialAboutItemOnClickAction() { @Override public void onClick() { - startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/JavaCafe01"))); + startActivity(Utils.linkIntent("https://github.com/JavaCafe01")); } }) .build()); @@ -127,7 +140,7 @@ private void buildOpenLicenses(MaterialAboutCard.Builder appBuilder, final Conte .setOnClickAction(new MaterialAboutItemOnClickAction() { @Override public void onClick() { - startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/JavaCafe01/PdfViewer"))); + startActivity(Utils.linkIntent("https://github.com/JavaCafe01/PdfViewer")); } }) .build()); @@ -137,17 +150,17 @@ public void onClick() { .setOnClickAction(new MaterialAboutItemOnClickAction() { @Override public void onClick() { - showLibs(); + showLibs(); } }) .build()); appBuilder.addItem(new MaterialAboutActionItem.Builder() .text(R.string.icon) - .icon(R.drawable.favicon) + .icon(R.drawable.favicon_black) .setOnClickAction(new MaterialAboutItemOnClickAction() { @Override public void onClick() { - startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://materialdesignicons.com/"))); + startActivity(Utils.linkIntent("https://materialdesignicons.com/")); } }) .build()); @@ -161,7 +174,7 @@ private void buildRateAndReview(MaterialAboutCard.Builder appBuilder, final Cont .setOnClickAction(new MaterialAboutItemOnClickAction() { @Override public void onClick() { - startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://play.google.com/store/apps/details?id=com.gsnathan.pdfviewer"))); + startActivity(Utils.linkIntent("http://play.google.com/store/apps/details?id=com.gsnathan.pdfviewer")); } }) .build()); @@ -171,22 +184,12 @@ public void onClick() { .setOnClickAction(new MaterialAboutItemOnClickAction() { @Override public void onClick() { - showReviewPage(); + startActivity(Utils.emailIntent(EMAIL,"Pdf Viewer Plus Review", Utils.getAndroidVersion() + "\n\nFeedback:\n", "Send Feedback:")); } }) .build()); } - private void showReviewPage() - { - Intent Email = new Intent(Intent.ACTION_SEND); - Email.setType("text/email"); - Email.putExtra(Intent.EXTRA_EMAIL, new String[] { "gsnathandev@outlook.com" }); - Email.putExtra(Intent.EXTRA_SUBJECT, "Pdf Viewer Plus Review"); - Email.putExtra(Intent.EXTRA_TEXT, Utils.getAndroidVersion() + "\n\nFeedback:\n"); - startActivity(Intent.createChooser(Email, "Send Feedback:")); - } - private void showLibs() { AttributionPresenter attributionPresenter = new AttributionPresenter.Builder(this) @@ -261,12 +264,29 @@ private void showLibs() .setWebsite("https://github.com/webianks/EasyFeedback") .build() ) + .addAttributions( + new Attribution.Builder("Material About") + .addCopyrightNotice("Copyright 2016 Arleu Cezar Vansuita Júnior") + .addLicense(License.MIT) + .setWebsite("https://github.com/jrvansuita/MaterialAbout") + .build() + ) + .addAttributions( + new Attribution.Builder("ChangeLog Library") + .addCopyrightNotice("Copyright 2013-2015 Gabriele Mariotti") + .addLicense(License.APACHE) + .setWebsite("https://github.com/gabrielemariotti/changeloglib") + .build() + ) .build(); //show license dialogue attributionPresenter.showDialog("Open Source Libraries"); } + + + @Override protected CharSequence getActivityTitle() { return getString(R.string.action_about); diff --git a/app/src/main/java/com/gsnathan/pdfviewer/LogFragment.java b/app/src/main/java/com/gsnathan/pdfviewer/LogFragment.java new file mode 100644 index 0000000..d1afe5a --- /dev/null +++ b/app/src/main/java/com/gsnathan/pdfviewer/LogFragment.java @@ -0,0 +1,40 @@ +package com.gsnathan.pdfviewer; + +import android.app.Dialog; +import android.content.Context; +import android.content.DialogInterface; +import android.os.Bundle; +import android.support.v4.app.DialogFragment; +import android.support.v7.app.AlertDialog; +import android.view.LayoutInflater; + +import it.gmariotti.changelibs.library.view.ChangeLogRecyclerView; + +/** + * Created by Gokul Swaminathan on 2/25/2018. + */ + +public class LogFragment extends DialogFragment { + + @Override + public Dialog onCreateDialog(Bundle savedInstanceState) { + LayoutInflater layoutInflater = (LayoutInflater) getActivity().getSystemService( + Context.LAYOUT_INFLATER_SERVICE); + ChangeLogRecyclerView chgList= (ChangeLogRecyclerView) layoutInflater.inflate(R.layout.fragment_log, null); + + + return new AlertDialog.Builder(getActivity(),R.style.AppCompatAlertDialogStyle) + .setTitle(R.string.appChangelog) + .setView(chgList) + .setPositiveButton(R.string.ok, + new DialogInterface.OnClickListener() { + public void onClick(DialogInterface dialog, int whichButton) { + dialog.dismiss(); + } + } + ) + .create(); + + } + +} \ No newline at end of file diff --git a/app/src/main/java/com/gsnathan/pdfviewer/MainActivity.java b/app/src/main/java/com/gsnathan/pdfviewer/MainActivity.java index ecfb04b..d052fe7 100644 --- a/app/src/main/java/com/gsnathan/pdfviewer/MainActivity.java +++ b/app/src/main/java/com/gsnathan/pdfviewer/MainActivity.java @@ -261,8 +261,7 @@ public boolean onCreateOptionsMenu(Menu menu) { public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.action_about: - Intent intent = new Intent(this, AboutActivity.class); - startActivity(intent); + startActivity(Utils.navIntent(this, MaterialAboutActivity.class)); return true; default: return super.onOptionsItemSelected(item); diff --git a/app/src/main/java/com/gsnathan/pdfviewer/MaterialAboutActivity.java b/app/src/main/java/com/gsnathan/pdfviewer/MaterialAboutActivity.java new file mode 100644 index 0000000..d6b475f --- /dev/null +++ b/app/src/main/java/com/gsnathan/pdfviewer/MaterialAboutActivity.java @@ -0,0 +1,183 @@ +package com.gsnathan.pdfviewer; + +import android.os.Bundle; +import android.support.v7.app.AppCompatActivity; +import android.view.MenuItem; +import android.view.View; + +import com.franmontiel.attributionpresenter.AttributionPresenter; +import com.franmontiel.attributionpresenter.entities.Attribution; +import com.franmontiel.attributionpresenter.entities.License; +import com.vansuita.materialabout.builder.AboutBuilder; +import com.vansuita.materialabout.views.AboutView; + +/** + * Created by Gokul Swaminathan on 2/25/2018. + * + * IN USE + */ + +public class MaterialAboutActivity extends AppCompatActivity{ + + private final String EMAIL = "gsnathandev@outlook.com"; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + AboutView view = AboutBuilder.with(this) + + /* ---Developer Actions--- */ + .setPhoto(R.drawable.myprofile) + .setCover(R.drawable.profile_cover) + .setName(R.string.author_name) + .setSubTitle(R.string.author_job) + .addGitHubLink("JavaCafe01") + .addEmailLink(EMAIL) + /* ---Developer Actions--- */ + + /* ---App Actions--- */ + .setAppIcon(R.drawable.app_icon_with_blank) + .setAppName(R.string.app_name) + .setAppTitle("Version " + Utils.getAppVersion()) + .addAction(Utils.getBitmapFromVectorDrawable(this, R.drawable.arrow_right_drop_circle_outline), R.string.intro, Utils.navIntent(this, MainIntroActivity.class)) + .addAction(com.vansuita.materialabout.R.mipmap.license, R.string.myLicense, Utils.navIntent(this, LicenseActivity.class)) + .addPrivacyPolicyAction(Utils.navIntent(this, PrivacyActivity.class)) + .addAction(Utils.getBitmapFromVectorDrawable(this, R.drawable.code_tags), R.string.source_code, Utils.linkIntent("https://github.com/JavaCafe01/PdfViewer")) + .addAction(Utils.getBitmapFromVectorDrawable(this, R.drawable.document_icon), R.string.open_license2, onLicenseClick) + .addAction(com.vansuita.materialabout.R.mipmap.website, R.string.icon, Utils.linkIntent("https://materialdesignicons.com/")) + .addAction(Utils.getBitmapFromVectorDrawable(this, R.drawable.clipboard_alert), R.string.appChangelog, showLog) + .addShareAction(R.string.app_name) + .addAction(com.vansuita.materialabout.R.mipmap.star, R.string.rate, Utils.linkIntent("http://play.google.com/store/apps/details?id=com.gsnathan.pdfviewer")) + .addAction(com.vansuita.materialabout.R.mipmap.feedback, R.string.review, Utils.emailIntent(EMAIL,"Pdf Viewer Plus Review", Utils.getAndroidVersion() + "\n\nFeedback:\n", "Send Feedback:")) + /* ---App Actions--- */ + + /* ---Behaviours--- */ + .setLinksColumnsCount(2) + .setWrapScrollView(true) + .setLinksAnimated(true) + .setShowAsCard(true) + /* ---Behaviours--- */ + + .build(); + + setContentView(view); + } + + private View.OnClickListener onLicenseClick = new View.OnClickListener() { + public void onClick(View v) { + showLibs(); + } + }; + + private View.OnClickListener showLog = new View.OnClickListener() { + public void onClick(View v) { + LogFragment log = new LogFragment(); + log.show(getSupportFragmentManager(), "Log Fragment"); + + } + }; + + private void showLibs() + { + AttributionPresenter attributionPresenter = new AttributionPresenter.Builder(this) + .addAttributions( + new Attribution.Builder("AttributionPresenter") + .addCopyrightNotice("Copyright 2017 Francisco José Montiel Navarro") + .addLicense(License.APACHE) + .setWebsite("https://github.com/franmontiel/AttributionPresenter") + .build() + ) + .addAttributions( + new Attribution.Builder("Android PdfViewer") + .addCopyrightNotice("Copyright 2017 Bartosz Schiller") + .addLicense(License.APACHE) + .setWebsite("https://github.com/barteksc/AndroidPdfViewer") + .build() + ) + .addAttributions( + new Attribution.Builder("AndroidAnnotations") + .addCopyrightNotice("Copyright 2012-2016 eBusiness Information\n" + + "Copyright 2016-2017 the AndroidAnnotations project") + .addLicense(License.APACHE) + .setWebsite("https://github.com/androidannotations/androidannotations") + .build() + ) + .addAttributions( + new Attribution.Builder("material-about-library") + .addCopyrightNotice("Copyright 2016-2018 Daniel Stone") + .addLicense(License.APACHE) + .setWebsite("https://github.com/daniel-stoneuk/material-about-library") + .build() + ) + .addAttributions( + new Attribution.Builder("material-intro") + .addCopyrightNotice("Copyright 2017 Jan Heinrich Reimer") + .addLicense(License.MIT) + .setWebsite("https://github.com/heinrichreimer/material-intro") + .build() + ) + .addAttributions( + new Attribution.Builder("Android Open Source Project") + .addCopyrightNotice("Copyright 2016 The Android Open Source Project") + .addLicense(License.APACHE) + .setWebsite("http://developer.android.com/tools/support-library/index.html") + .build() + ) + .addAttributions( + new Attribution.Builder("Android Support Libraries") + .addCopyrightNotice("Copyright 2016 The Android Open Source Project") + .addLicense(License.APACHE) + .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 About") + .addCopyrightNotice("Copyright 2016 Arleu Cezar Vansuita Júnior") + .addLicense(License.MIT) + .setWebsite("https://github.com/jrvansuita/MaterialAbout") + .build() + ) + .addAttributions( + new Attribution.Builder("ChangeLog Library") + .addCopyrightNotice("Copyright 2013-2015 Gabriele Mariotti") + .addLicense(License.APACHE) + .setWebsite("https://github.com/gabrielemariotti/changeloglib") + .build() + ) + .build(); + + //show license dialogue + attributionPresenter.showDialog("Open Source Libraries"); + } + + @Override + public boolean onOptionsItemSelected(MenuItem item) { + if (item.getItemId() == android.R.id.home) { + onBackPressed(); + return true; + } + return false; + } +} diff --git a/app/src/main/java/com/gsnathan/pdfviewer/Utils.java b/app/src/main/java/com/gsnathan/pdfviewer/Utils.java index 201ca0f..03c6028 100644 --- a/app/src/main/java/com/gsnathan/pdfviewer/Utils.java +++ b/app/src/main/java/com/gsnathan/pdfviewer/Utils.java @@ -1,6 +1,14 @@ package com.gsnathan.pdfviewer; +import android.content.Context; +import android.content.Intent; +import android.graphics.Bitmap; +import android.graphics.Canvas; +import android.graphics.drawable.Drawable; +import android.net.Uri; import android.os.Build; +import android.support.v4.content.ContextCompat; +import android.support.v4.graphics.drawable.DrawableCompat; import android.support.v7.app.AppCompatActivity; /** @@ -14,4 +22,48 @@ public static String getAndroidVersion() { int sdkVersion = Build.VERSION.SDK_INT; return "Android SDK: " + sdkVersion + " (" + release +")"; } + + public static Intent emailIntent(String emailAddress, String subject, String text, String title) + { + Intent email = new Intent(Intent.ACTION_SEND); + email.setType("text/email"); + email.putExtra(Intent.EXTRA_EMAIL, new String[] { emailAddress }); + email.putExtra(Intent.EXTRA_SUBJECT, subject); + email.putExtra(Intent.EXTRA_TEXT, text); + return Intent.createChooser(email, title); + } + + public static Intent linkIntent(String url) + { + Intent link = new Intent(Intent.ACTION_VIEW, Uri.parse(url)); + return link; + } + + public static Intent navIntent(Context context, Class activity) + { + Intent navigate = new Intent(context, activity); + return navigate; + } + + public static String getAppVersion() + { + return BuildConfig.VERSION_NAME; + } + + public static Bitmap getBitmapFromVectorDrawable(Context context, int drawableId) { + Drawable drawable = ContextCompat.getDrawable(context, drawableId); + if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) { + drawable = (DrawableCompat.wrap(drawable)).mutate(); + } + + Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), + drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); + Canvas canvas = new Canvas(bitmap); + drawable.setBounds(0, 0, canvas.getWidth(), canvas.getHeight()); + drawable.draw(canvas); + + return bitmap; + } + + } diff --git a/app/src/main/res/drawable/account_circle.xml b/app/src/main/res/drawable/account_circle.xml index 5f47d47..2302652 100644 --- a/app/src/main/res/drawable/account_circle.xml +++ b/app/src/main/res/drawable/account_circle.xml @@ -4,5 +4,5 @@ android:width="24dp" android:viewportWidth="24" android:viewportHeight="24"> - + \ No newline at end of file diff --git a/app/src/main/res/drawable/alert_octagon.xml b/app/src/main/res/drawable/alert_octagon.xml deleted file mode 100644 index 0cc213f..0000000 --- a/app/src/main/res/drawable/alert_octagon.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/high_res.png b/app/src/main/res/drawable/app_icon.png similarity index 100% rename from app/src/main/res/drawable/high_res.png rename to app/src/main/res/drawable/app_icon.png diff --git a/app/src/main/res/drawable/app_icon_with_blank.png b/app/src/main/res/drawable/app_icon_with_blank.png new file mode 100644 index 0000000..974fe26 Binary files /dev/null and b/app/src/main/res/drawable/app_icon_with_blank.png differ diff --git a/app/src/main/res/drawable/arrow_right_drop_circle_outline.xml b/app/src/main/res/drawable/arrow_right_drop_circle_outline.xml index f8a146e..6d08e52 100644 --- a/app/src/main/res/drawable/arrow_right_drop_circle_outline.xml +++ b/app/src/main/res/drawable/arrow_right_drop_circle_outline.xml @@ -4,5 +4,5 @@ android:width="24dp" android:viewportWidth="24" android:viewportHeight="24"> - + \ No newline at end of file diff --git a/app/src/main/res/drawable/clipboard_alert.xml b/app/src/main/res/drawable/clipboard_alert.xml new file mode 100644 index 0000000..21ab46c --- /dev/null +++ b/app/src/main/res/drawable/clipboard_alert.xml @@ -0,0 +1,8 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/code_tags.xml b/app/src/main/res/drawable/code_tags.xml index 699d7ea..25fe39d 100644 --- a/app/src/main/res/drawable/code_tags.xml +++ b/app/src/main/res/drawable/code_tags.xml @@ -4,5 +4,5 @@ android:width="24dp" android:viewportWidth="24" android:viewportHeight="24"> - + \ No newline at end of file diff --git a/app/src/main/res/drawable/document_icon.xml b/app/src/main/res/drawable/document_icon.xml index 2c9d785..4de0acd 100644 --- a/app/src/main/res/drawable/document_icon.xml +++ b/app/src/main/res/drawable/document_icon.xml @@ -3,5 +3,5 @@ android:width="24dp" android:viewportWidth="24" android:viewportHeight="24"> - + \ No newline at end of file diff --git a/app/src/main/res/drawable/email.xml b/app/src/main/res/drawable/email.xml index cd21243..97ed704 100644 --- a/app/src/main/res/drawable/email.xml +++ b/app/src/main/res/drawable/email.xml @@ -4,5 +4,5 @@ android:width="24dp" android:viewportWidth="24" android:viewportHeight="24"> - + \ No newline at end of file diff --git a/app/src/main/res/drawable/favicon_black.png b/app/src/main/res/drawable/favicon_black.png new file mode 100644 index 0000000..5d2713a Binary files /dev/null and b/app/src/main/res/drawable/favicon_black.png differ diff --git a/app/src/main/res/drawable/file_lock.xml b/app/src/main/res/drawable/file_lock.xml index 97cb3d3..d5a2e92 100644 --- a/app/src/main/res/drawable/file_lock.xml +++ b/app/src/main/res/drawable/file_lock.xml @@ -4,5 +4,5 @@ android:width="24dp" android:viewportWidth="24" android:viewportHeight="24"> - + \ No newline at end of file diff --git a/app/src/main/res/drawable/info_outline.xml b/app/src/main/res/drawable/info_outline.xml index 454922a..9f1a282 100644 --- a/app/src/main/res/drawable/info_outline.xml +++ b/app/src/main/res/drawable/info_outline.xml @@ -4,5 +4,5 @@ android:width="24dp" android:viewportWidth="24" android:viewportHeight="24"> - + \ No newline at end of file diff --git a/app/src/main/res/drawable/message_draw.xml b/app/src/main/res/drawable/message_draw.xml index 58b9e90..a4f5070 100644 --- a/app/src/main/res/drawable/message_draw.xml +++ b/app/src/main/res/drawable/message_draw.xml @@ -4,5 +4,5 @@ android:width="24dp" android:viewportWidth="24" android:viewportHeight="24"> - + \ No newline at end of file diff --git a/app/src/main/res/drawable/profile_cover.jpg b/app/src/main/res/drawable/profile_cover.jpg new file mode 100644 index 0000000..1c53594 Binary files /dev/null and b/app/src/main/res/drawable/profile_cover.jpg differ diff --git a/app/src/main/res/drawable/star.xml b/app/src/main/res/drawable/star.xml index 82b9838..eacf681 100644 --- a/app/src/main/res/drawable/star.xml +++ b/app/src/main/res/drawable/star.xml @@ -4,5 +4,5 @@ android:width="24dp" android:viewportWidth="24" android:viewportHeight="24"> - + \ No newline at end of file diff --git a/app/src/main/res/drawable/telegram_new.xml b/app/src/main/res/drawable/telegram_new.xml index 64afcd5..66026da 100644 --- a/app/src/main/res/drawable/telegram_new.xml +++ b/app/src/main/res/drawable/telegram_new.xml @@ -4,5 +4,5 @@ android:width="24dp" android:viewportWidth="24" android:viewportHeight="24"> - + \ No newline at end of file diff --git a/app/src/main/res/drawable/test_tube.xml b/app/src/main/res/drawable/test_tube.xml deleted file mode 100644 index 1a08a4b..0000000 --- a/app/src/main/res/drawable/test_tube.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_log.xml b/app/src/main/res/layout/fragment_log.xml new file mode 100644 index 0000000..7064801 --- /dev/null +++ b/app/src/main/res/layout/fragment_log.xml @@ -0,0 +1,9 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/raw/changelog.xml b/app/src/main/res/raw/changelog.xml new file mode 100644 index 0000000..03a6298 --- /dev/null +++ b/app/src/main/res/raw/changelog.xml @@ -0,0 +1,30 @@ + + + + + [b]New![/b] Changelog + [b]New![/b] About page + + + + [b]Fix![/b] Review crash + + + + [b]New![/b] Rate and review section + + + + [b]Fix![/b] Bugs + + + + [b]New![/b] Pdf file type associations + Minor color changes + + + + Initial release + + + \ No newline at end of file diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index fa0cf5d..dbd32ee 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -3,4 +3,5 @@ #2481a1 #1a5e76 #00cc99 + #ffffff diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 601db32..b281370 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -17,7 +17,7 @@ A simple Pdf document viewer. Open Source Libraries - Pdf Viewer Plus License + License MIT License Privacy Policy More Info @@ -43,6 +43,10 @@ Special Thanks Rate Review + Libraries Used + Change Log + Ok + About 2 diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index d5e7b83..04e3007 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -27,4 +27,17 @@ ?android:attr/textColorSecondary + + + + + +