From 2b511a40b3fdb4ba8201a8fb5097fb47ee061054 Mon Sep 17 00:00:00 2001 From: Patryk Kaczmarkiewicz Date: Tue, 17 Apr 2018 21:43:50 -0600 Subject: [PATCH] Add changelog --- .idea/caches/build_file_checksums.ser | Bin 535 -> 535 bytes README.md | 1 + app/build.gradle | 1 + app/src/main/AndroidManifest.xml | 8 +++++ app/src/main/assets/changelog.md | 10 ++++++ .../ca/pkay/rcloneexplorer/AboutActivity.java | 3 +- .../rcloneexplorer/ChangelogActivity.java | 34 ++++++++++++++++++ .../main/res/layout/activity_changelog.xml | 26 ++++++++++++++ app/src/main/res/layout/content_changelog.xml | 12 +++++++ .../values/about_libraries_markdown_view.xml | 13 +++++++ app/src/main/res/values/strings.xml | 1 + 11 files changed, 108 insertions(+), 1 deletion(-) create mode 100644 app/src/main/assets/changelog.md create mode 100644 app/src/main/java/ca/pkay/rcloneexplorer/ChangelogActivity.java create mode 100644 app/src/main/res/layout/activity_changelog.xml create mode 100644 app/src/main/res/layout/content_changelog.xml create mode 100644 app/src/main/res/values/about_libraries_markdown_view.xml diff --git a/.idea/caches/build_file_checksums.ser b/.idea/caches/build_file_checksums.ser index 8222d9a1bad58f222183dec48effe5c04a6535e3..6c075a58cdbd5190d4b5a62065b4f5676890790f 100644 GIT binary patch delta 33 rcmV++0N($X1eXMmm;~15nEA1sY5@_v35dPw*A$ChVAej|>o;b25xWqP delta 33 rcmV++0N($X1eXMmm;}}O)m*WhY5@@ + + + + \ No newline at end of file diff --git a/app/src/main/assets/changelog.md b/app/src/main/assets/changelog.md new file mode 100644 index 0000000..dfdc2b8 --- /dev/null +++ b/app/src/main/assets/changelog.md @@ -0,0 +1,10 @@ +### Version 0.3.0-alpha +*** + +* **New:** Changelog added under About screen +* **New:** Clicking on File/Folder icon will select it +* **New:** App icon +* **Fix:** Status bar color + +*** + diff --git a/app/src/main/java/ca/pkay/rcloneexplorer/AboutActivity.java b/app/src/main/java/ca/pkay/rcloneexplorer/AboutActivity.java index 2d52e78..2a8d61b 100644 --- a/app/src/main/java/ca/pkay/rcloneexplorer/AboutActivity.java +++ b/app/src/main/java/ca/pkay/rcloneexplorer/AboutActivity.java @@ -73,7 +73,8 @@ public boolean onSupportNavigateUp() { } private void showChangelog() { - Toast.makeText(this, "Coming soon", Toast.LENGTH_SHORT).show(); + Intent changelogIntent = new Intent(this, ChangelogActivity.class); + startActivity(changelogIntent); } private void showOpenSourceLibraries() { diff --git a/app/src/main/java/ca/pkay/rcloneexplorer/ChangelogActivity.java b/app/src/main/java/ca/pkay/rcloneexplorer/ChangelogActivity.java new file mode 100644 index 0000000..5905625 --- /dev/null +++ b/app/src/main/java/ca/pkay/rcloneexplorer/ChangelogActivity.java @@ -0,0 +1,34 @@ +package ca.pkay.rcloneexplorer; + +import android.os.Bundle; +import android.support.v7.app.ActionBar; +import android.support.v7.app.AppCompatActivity; +import android.support.v7.widget.Toolbar; + +import us.feras.mdv.MarkdownView; + + +public class ChangelogActivity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_changelog); + Toolbar toolbar = findViewById(R.id.toolbar); + setSupportActionBar(toolbar); + ActionBar actionBar = getSupportActionBar(); + if (actionBar != null) { + actionBar.setDisplayHomeAsUpEnabled(true); + actionBar.setDisplayShowHomeEnabled(true); + } + + MarkdownView markdownView = findViewById(R.id.markdownView); + markdownView.loadMarkdownFile("file:///android_asset/changelog.md"); + } + + @Override + public boolean onSupportNavigateUp() { + onBackPressed(); + return true; + } +} diff --git a/app/src/main/res/layout/activity_changelog.xml b/app/src/main/res/layout/activity_changelog.xml new file mode 100644 index 0000000..0de785c --- /dev/null +++ b/app/src/main/res/layout/activity_changelog.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/content_changelog.xml b/app/src/main/res/layout/content_changelog.xml new file mode 100644 index 0000000..d71b43b --- /dev/null +++ b/app/src/main/res/layout/content_changelog.xml @@ -0,0 +1,12 @@ + + + \ No newline at end of file diff --git a/app/src/main/res/values/about_libraries_markdown_view.xml b/app/src/main/res/values/about_libraries_markdown_view.xml new file mode 100644 index 0000000..8d252a0 --- /dev/null +++ b/app/src/main/res/values/about_libraries_markdown_view.xml @@ -0,0 +1,13 @@ + + + + Feras Alnatsheh + https://github.com/falnatsheh/ + Markdown View + MarkdownView is an Android webview with the capablity of loading Markdown text or file and display it as HTML, it uses MarkdownJ and extends Android webview. + + https://github.com/falnatsheh/MarkdownView/ + apache_2.0 + true + https://github.com/falnatsheh/MarkdownView/ + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 409b882..66aa8a3 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -7,4 +7,5 @@ Settings About + Changelog