diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..ae659bc --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019-2020 Geraked + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..ee59ba7 --- /dev/null +++ b/README.md @@ -0,0 +1,18 @@ +![catalog](docs/catalog.jpg) + +# Nahj al-Balagha + +![GitHub release (latest by date)](https://img.shields.io/github/v/release/geraked/application-nahj) + +It's a simple book app created with Android Studio. Source of the project is available, just open the `src` folder as a project in Android Studio and start modifying. + +![screenshot](docs/screenshot.jpg) + +## Release +View on [Myket](https://myket.ir/app/ir.geraked.nahj). + +## Author +**Rabist** - view on [LinkedIn](https://www.linkedin.com/in/rabist) + +## License +Licensed under [MIT](LICENSE). \ No newline at end of file diff --git a/app/release/Nahj-1.0.1.apk b/app/release/Nahj-1.0.1.apk deleted file mode 100644 index d8bbc0f..0000000 Binary files a/app/release/Nahj-1.0.1.apk and /dev/null differ diff --git a/docs/catalog.jpg b/docs/catalog.jpg new file mode 100644 index 0000000..e68e975 Binary files /dev/null and b/docs/catalog.jpg differ diff --git a/docs/screenshot.jpg b/docs/screenshot.jpg new file mode 100644 index 0000000..e911014 Binary files /dev/null and b/docs/screenshot.jpg differ diff --git a/.gitignore b/src/.gitignore similarity index 100% rename from .gitignore rename to src/.gitignore diff --git a/.idea/codeStyles/Project.xml b/src/.idea/codeStyles/Project.xml similarity index 100% rename from .idea/codeStyles/Project.xml rename to src/.idea/codeStyles/Project.xml diff --git a/.idea/misc.xml b/src/.idea/misc.xml similarity index 100% rename from .idea/misc.xml rename to src/.idea/misc.xml diff --git a/.idea/runConfigurations.xml b/src/.idea/runConfigurations.xml similarity index 100% rename from .idea/runConfigurations.xml rename to src/.idea/runConfigurations.xml diff --git a/.project b/src/.project similarity index 100% rename from .project rename to src/.project diff --git a/.settings/org.eclipse.buildship.core.prefs b/src/.settings/org.eclipse.buildship.core.prefs similarity index 100% rename from .settings/org.eclipse.buildship.core.prefs rename to src/.settings/org.eclipse.buildship.core.prefs diff --git a/app/.classpath b/src/app/.classpath similarity index 100% rename from app/.classpath rename to src/app/.classpath diff --git a/app/.gitignore b/src/app/.gitignore similarity index 100% rename from app/.gitignore rename to src/app/.gitignore diff --git a/app/.project b/src/app/.project similarity index 100% rename from app/.project rename to src/app/.project diff --git a/app/.settings/org.eclipse.buildship.core.prefs b/src/app/.settings/org.eclipse.buildship.core.prefs similarity index 100% rename from app/.settings/org.eclipse.buildship.core.prefs rename to src/app/.settings/org.eclipse.buildship.core.prefs diff --git a/app/build.gradle b/src/app/build.gradle similarity index 100% rename from app/build.gradle rename to src/app/build.gradle diff --git a/app/proguard-rules.pro b/src/app/proguard-rules.pro similarity index 100% rename from app/proguard-rules.pro rename to src/app/proguard-rules.pro diff --git a/app/release/Nahj-1.0.2.apk b/src/app/release/Nahj-1.0.2.apk similarity index 100% rename from app/release/Nahj-1.0.2.apk rename to src/app/release/Nahj-1.0.2.apk diff --git a/app/release/output.json b/src/app/release/output.json similarity index 100% rename from app/release/output.json rename to src/app/release/output.json diff --git a/app/src/androidTest/java/ir/geraked/nahj/ExampleInstrumentedTest.java b/src/app/src/androidTest/java/ir/geraked/nahj/ExampleInstrumentedTest.java similarity index 100% rename from app/src/androidTest/java/ir/geraked/nahj/ExampleInstrumentedTest.java rename to src/app/src/androidTest/java/ir/geraked/nahj/ExampleInstrumentedTest.java diff --git a/app/src/main/AndroidManifest.xml b/src/app/src/main/AndroidManifest.xml similarity index 100% rename from app/src/main/AndroidManifest.xml rename to src/app/src/main/AndroidManifest.xml diff --git a/app/src/main/assets/ger-nahj.db b/src/app/src/main/assets/ger-nahj.db similarity index 100% rename from app/src/main/assets/ger-nahj.db rename to src/app/src/main/assets/ger-nahj.db diff --git a/app/src/main/java/ir/geraked/nahj/IntroActivity.java b/src/app/src/main/java/ir/geraked/nahj/IntroActivity.java similarity index 100% rename from app/src/main/java/ir/geraked/nahj/IntroActivity.java rename to src/app/src/main/java/ir/geraked/nahj/IntroActivity.java diff --git a/app/src/main/java/ir/geraked/nahj/MainActivity.java b/src/app/src/main/java/ir/geraked/nahj/MainActivity.java similarity index 100% rename from app/src/main/java/ir/geraked/nahj/MainActivity.java rename to src/app/src/main/java/ir/geraked/nahj/MainActivity.java diff --git a/app/src/main/java/ir/geraked/nahj/database/Model.java b/src/app/src/main/java/ir/geraked/nahj/database/Model.java similarity index 100% rename from app/src/main/java/ir/geraked/nahj/database/Model.java rename to src/app/src/main/java/ir/geraked/nahj/database/Model.java diff --git a/app/src/main/java/ir/geraked/nahj/database/SqlLiteDbHelper.java b/src/app/src/main/java/ir/geraked/nahj/database/SqlLiteDbHelper.java similarity index 100% rename from app/src/main/java/ir/geraked/nahj/database/SqlLiteDbHelper.java rename to src/app/src/main/java/ir/geraked/nahj/database/SqlLiteDbHelper.java diff --git a/app/src/main/java/ir/geraked/nahj/fragments/ContentFragment.java b/src/app/src/main/java/ir/geraked/nahj/fragments/ContentFragment.java similarity index 100% rename from app/src/main/java/ir/geraked/nahj/fragments/ContentFragment.java rename to src/app/src/main/java/ir/geraked/nahj/fragments/ContentFragment.java diff --git a/app/src/main/java/ir/geraked/nahj/fragments/HomeFragment.java b/src/app/src/main/java/ir/geraked/nahj/fragments/HomeFragment.java similarity index 100% rename from app/src/main/java/ir/geraked/nahj/fragments/HomeFragment.java rename to src/app/src/main/java/ir/geraked/nahj/fragments/HomeFragment.java diff --git a/app/src/main/java/ir/geraked/nahj/fragments/ListFragment.java b/src/app/src/main/java/ir/geraked/nahj/fragments/ListFragment.java similarity index 100% rename from app/src/main/java/ir/geraked/nahj/fragments/ListFragment.java rename to src/app/src/main/java/ir/geraked/nahj/fragments/ListFragment.java diff --git a/app/src/main/java/ir/geraked/nahj/recyclerlist/Item.java b/src/app/src/main/java/ir/geraked/nahj/recyclerlist/Item.java similarity index 100% rename from app/src/main/java/ir/geraked/nahj/recyclerlist/Item.java rename to src/app/src/main/java/ir/geraked/nahj/recyclerlist/Item.java diff --git a/app/src/main/java/ir/geraked/nahj/recyclerlist/ItemAdapter.java b/src/app/src/main/java/ir/geraked/nahj/recyclerlist/ItemAdapter.java similarity index 100% rename from app/src/main/java/ir/geraked/nahj/recyclerlist/ItemAdapter.java rename to src/app/src/main/java/ir/geraked/nahj/recyclerlist/ItemAdapter.java diff --git a/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/src/app/src/main/res/drawable-v24/ic_launcher_foreground.xml similarity index 100% rename from app/src/main/res/drawable-v24/ic_launcher_foreground.xml rename to src/app/src/main/res/drawable-v24/ic_launcher_foreground.xml diff --git a/app/src/main/res/drawable/besm.xml b/src/app/src/main/res/drawable/besm.xml similarity index 100% rename from app/src/main/res/drawable/besm.xml rename to src/app/src/main/res/drawable/besm.xml diff --git a/app/src/main/res/drawable/bg.xml b/src/app/src/main/res/drawable/bg.xml similarity index 100% rename from app/src/main/res/drawable/bg.xml rename to src/app/src/main/res/drawable/bg.xml diff --git a/app/src/main/res/drawable/bg_img.jpg b/src/app/src/main/res/drawable/bg_img.jpg similarity index 100% rename from app/src/main/res/drawable/bg_img.jpg rename to src/app/src/main/res/drawable/bg_img.jpg diff --git a/app/src/main/res/drawable/geraked_logo.xml b/src/app/src/main/res/drawable/geraked_logo.xml similarity index 100% rename from app/src/main/res/drawable/geraked_logo.xml rename to src/app/src/main/res/drawable/geraked_logo.xml diff --git a/app/src/main/res/drawable/ic_about.xml b/src/app/src/main/res/drawable/ic_about.xml similarity index 100% rename from app/src/main/res/drawable/ic_about.xml rename to src/app/src/main/res/drawable/ic_about.xml diff --git a/app/src/main/res/drawable/ic_announcement.xml b/src/app/src/main/res/drawable/ic_announcement.xml similarity index 100% rename from app/src/main/res/drawable/ic_announcement.xml rename to src/app/src/main/res/drawable/ic_announcement.xml diff --git a/app/src/main/res/drawable/ic_format_size.xml b/src/app/src/main/res/drawable/ic_format_size.xml similarity index 100% rename from app/src/main/res/drawable/ic_format_size.xml rename to src/app/src/main/res/drawable/ic_format_size.xml diff --git a/app/src/main/res/drawable/ic_home.xml b/src/app/src/main/res/drawable/ic_home.xml similarity index 100% rename from app/src/main/res/drawable/ic_home.xml rename to src/app/src/main/res/drawable/ic_home.xml diff --git a/app/src/main/res/drawable/ic_launcher_background.xml b/src/app/src/main/res/drawable/ic_launcher_background.xml similarity index 100% rename from app/src/main/res/drawable/ic_launcher_background.xml rename to src/app/src/main/res/drawable/ic_launcher_background.xml diff --git a/app/src/main/res/drawable/ic_mail.xml b/src/app/src/main/res/drawable/ic_mail.xml similarity index 100% rename from app/src/main/res/drawable/ic_mail.xml rename to src/app/src/main/res/drawable/ic_mail.xml diff --git a/app/src/main/res/drawable/ic_menu.xml b/src/app/src/main/res/drawable/ic_menu.xml similarity index 100% rename from app/src/main/res/drawable/ic_menu.xml rename to src/app/src/main/res/drawable/ic_menu.xml diff --git a/app/src/main/res/drawable/ic_moon_black.xml b/src/app/src/main/res/drawable/ic_moon_black.xml similarity index 100% rename from app/src/main/res/drawable/ic_moon_black.xml rename to src/app/src/main/res/drawable/ic_moon_black.xml diff --git a/app/src/main/res/drawable/ic_moon_green.xml b/src/app/src/main/res/drawable/ic_moon_green.xml similarity index 100% rename from app/src/main/res/drawable/ic_moon_green.xml rename to src/app/src/main/res/drawable/ic_moon_green.xml diff --git a/app/src/main/res/drawable/ic_rate.xml b/src/app/src/main/res/drawable/ic_rate.xml similarity index 100% rename from app/src/main/res/drawable/ic_rate.xml rename to src/app/src/main/res/drawable/ic_rate.xml diff --git a/app/src/main/res/drawable/ic_receipt.xml b/src/app/src/main/res/drawable/ic_receipt.xml similarity index 100% rename from app/src/main/res/drawable/ic_receipt.xml rename to src/app/src/main/res/drawable/ic_receipt.xml diff --git a/app/src/main/res/drawable/ic_record_voice_over.xml b/src/app/src/main/res/drawable/ic_record_voice_over.xml similarity index 100% rename from app/src/main/res/drawable/ic_record_voice_over.xml rename to src/app/src/main/res/drawable/ic_record_voice_over.xml diff --git a/app/src/main/res/drawable/ic_search.xml b/src/app/src/main/res/drawable/ic_search.xml similarity index 100% rename from app/src/main/res/drawable/ic_search.xml rename to src/app/src/main/res/drawable/ic_search.xml diff --git a/app/src/main/res/drawable/ic_settings.xml b/src/app/src/main/res/drawable/ic_settings.xml similarity index 100% rename from app/src/main/res/drawable/ic_settings.xml rename to src/app/src/main/res/drawable/ic_settings.xml diff --git a/app/src/main/res/drawable/ic_share.xml b/src/app/src/main/res/drawable/ic_share.xml similarity index 100% rename from app/src/main/res/drawable/ic_share.xml rename to src/app/src/main/res/drawable/ic_share.xml diff --git a/app/src/main/res/drawable/ic_speaker_notes.xml b/src/app/src/main/res/drawable/ic_speaker_notes.xml similarity index 100% rename from app/src/main/res/drawable/ic_speaker_notes.xml rename to src/app/src/main/res/drawable/ic_speaker_notes.xml diff --git a/app/src/main/res/drawable/ic_star_filled.xml b/src/app/src/main/res/drawable/ic_star_filled.xml similarity index 100% rename from app/src/main/res/drawable/ic_star_filled.xml rename to src/app/src/main/res/drawable/ic_star_filled.xml diff --git a/app/src/main/res/drawable/ic_star_filled_black.xml b/src/app/src/main/res/drawable/ic_star_filled_black.xml similarity index 100% rename from app/src/main/res/drawable/ic_star_filled_black.xml rename to src/app/src/main/res/drawable/ic_star_filled_black.xml diff --git a/app/src/main/res/drawable/ic_star_outline.xml b/src/app/src/main/res/drawable/ic_star_outline.xml similarity index 100% rename from app/src/main/res/drawable/ic_star_outline.xml rename to src/app/src/main/res/drawable/ic_star_outline.xml diff --git a/app/src/main/res/drawable/icon.png b/src/app/src/main/res/drawable/icon.png similarity index 100% rename from app/src/main/res/drawable/icon.png rename to src/app/src/main/res/drawable/icon.png diff --git a/app/src/main/res/drawable/icon_round.png b/src/app/src/main/res/drawable/icon_round.png similarity index 100% rename from app/src/main/res/drawable/icon_round.png rename to src/app/src/main/res/drawable/icon_round.png diff --git a/app/src/main/res/drawable/nav_nahj.xml b/src/app/src/main/res/drawable/nav_nahj.xml similarity index 100% rename from app/src/main/res/drawable/nav_nahj.xml rename to src/app/src/main/res/drawable/nav_nahj.xml diff --git a/app/src/main/res/drawable/side_nav_bar.xml b/src/app/src/main/res/drawable/side_nav_bar.xml similarity index 100% rename from app/src/main/res/drawable/side_nav_bar.xml rename to src/app/src/main/res/drawable/side_nav_bar.xml diff --git a/app/src/main/res/font/iran_sans.ttf b/src/app/src/main/res/font/iran_sans.ttf similarity index 100% rename from app/src/main/res/font/iran_sans.ttf rename to src/app/src/main/res/font/iran_sans.ttf diff --git a/app/src/main/res/layout/activity_intro.xml b/src/app/src/main/res/layout/activity_intro.xml similarity index 100% rename from app/src/main/res/layout/activity_intro.xml rename to src/app/src/main/res/layout/activity_intro.xml diff --git a/app/src/main/res/layout/activity_main.xml b/src/app/src/main/res/layout/activity_main.xml similarity index 100% rename from app/src/main/res/layout/activity_main.xml rename to src/app/src/main/res/layout/activity_main.xml diff --git a/app/src/main/res/layout/app_bar_main.xml b/src/app/src/main/res/layout/app_bar_main.xml similarity index 100% rename from app/src/main/res/layout/app_bar_main.xml rename to src/app/src/main/res/layout/app_bar_main.xml diff --git a/app/src/main/res/layout/card_list_item.xml b/src/app/src/main/res/layout/card_list_item.xml similarity index 100% rename from app/src/main/res/layout/card_list_item.xml rename to src/app/src/main/res/layout/card_list_item.xml diff --git a/app/src/main/res/layout/dialog_about.xml b/src/app/src/main/res/layout/dialog_about.xml similarity index 100% rename from app/src/main/res/layout/dialog_about.xml rename to src/app/src/main/res/layout/dialog_about.xml diff --git a/app/src/main/res/layout/dialog_font.xml b/src/app/src/main/res/layout/dialog_font.xml similarity index 100% rename from app/src/main/res/layout/dialog_font.xml rename to src/app/src/main/res/layout/dialog_font.xml diff --git a/app/src/main/res/layout/fragment_content.xml b/src/app/src/main/res/layout/fragment_content.xml similarity index 100% rename from app/src/main/res/layout/fragment_content.xml rename to src/app/src/main/res/layout/fragment_content.xml diff --git a/app/src/main/res/layout/fragment_home.xml b/src/app/src/main/res/layout/fragment_home.xml similarity index 100% rename from app/src/main/res/layout/fragment_home.xml rename to src/app/src/main/res/layout/fragment_home.xml diff --git a/app/src/main/res/layout/fragment_list.xml b/src/app/src/main/res/layout/fragment_list.xml similarity index 100% rename from app/src/main/res/layout/fragment_list.xml rename to src/app/src/main/res/layout/fragment_list.xml diff --git a/app/src/main/res/layout/nav_header_main.xml b/src/app/src/main/res/layout/nav_header_main.xml similarity index 100% rename from app/src/main/res/layout/nav_header_main.xml rename to src/app/src/main/res/layout/nav_header_main.xml diff --git a/app/src/main/res/menu/activity_main_drawer.xml b/src/app/src/main/res/menu/activity_main_drawer.xml similarity index 100% rename from app/src/main/res/menu/activity_main_drawer.xml rename to src/app/src/main/res/menu/activity_main_drawer.xml diff --git a/app/src/main/res/menu/main.xml b/src/app/src/main/res/menu/main.xml similarity index 100% rename from app/src/main/res/menu/main.xml rename to src/app/src/main/res/menu/main.xml diff --git a/app/src/main/res/values-v21/styles.xml b/src/app/src/main/res/values-v21/styles.xml similarity index 100% rename from app/src/main/res/values-v21/styles.xml rename to src/app/src/main/res/values-v21/styles.xml diff --git a/app/src/main/res/values/attrs.xml b/src/app/src/main/res/values/attrs.xml similarity index 100% rename from app/src/main/res/values/attrs.xml rename to src/app/src/main/res/values/attrs.xml diff --git a/app/src/main/res/values/colors.xml b/src/app/src/main/res/values/colors.xml similarity index 100% rename from app/src/main/res/values/colors.xml rename to src/app/src/main/res/values/colors.xml diff --git a/app/src/main/res/values/dimens.xml b/src/app/src/main/res/values/dimens.xml similarity index 100% rename from app/src/main/res/values/dimens.xml rename to src/app/src/main/res/values/dimens.xml diff --git a/app/src/main/res/values/strings.xml b/src/app/src/main/res/values/strings.xml similarity index 100% rename from app/src/main/res/values/strings.xml rename to src/app/src/main/res/values/strings.xml diff --git a/app/src/main/res/values/styles.xml b/src/app/src/main/res/values/styles.xml similarity index 100% rename from app/src/main/res/values/styles.xml rename to src/app/src/main/res/values/styles.xml diff --git a/app/src/test/java/ir/geraked/nahj/ExampleUnitTest.java b/src/app/src/test/java/ir/geraked/nahj/ExampleUnitTest.java similarity index 100% rename from app/src/test/java/ir/geraked/nahj/ExampleUnitTest.java rename to src/app/src/test/java/ir/geraked/nahj/ExampleUnitTest.java diff --git a/build.gradle b/src/build.gradle similarity index 100% rename from build.gradle rename to src/build.gradle diff --git a/gradle.properties b/src/gradle.properties similarity index 100% rename from gradle.properties rename to src/gradle.properties diff --git a/gradle/wrapper/gradle-wrapper.jar b/src/gradle/wrapper/gradle-wrapper.jar similarity index 100% rename from gradle/wrapper/gradle-wrapper.jar rename to src/gradle/wrapper/gradle-wrapper.jar diff --git a/gradle/wrapper/gradle-wrapper.properties b/src/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from gradle/wrapper/gradle-wrapper.properties rename to src/gradle/wrapper/gradle-wrapper.properties diff --git a/gradlew b/src/gradlew similarity index 100% rename from gradlew rename to src/gradlew diff --git a/gradlew.bat b/src/gradlew.bat similarity index 100% rename from gradlew.bat rename to src/gradlew.bat diff --git a/settings.gradle b/src/settings.gradle similarity index 100% rename from settings.gradle rename to src/settings.gradle