diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md new file mode 100644 index 000000000..245620feb --- /dev/null +++ b/.github/CODE_OF_CONDUCT.md @@ -0,0 +1,47 @@ +# Contributor Covenant Code of Conduct + +## Pledge + +In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. + +## Standards + +Examples of behavior that contributes to creating a positive environment include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a professional setting + +## Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team [via email][mail]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. + +Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] + +[homepage]: http://contributor-covenant.org +[version]: http://contributor-covenant.org/version/1/4/ +[mail]: mailto:hi@jahirfiquitiva.com diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md new file mode 100644 index 000000000..f83c97f4d --- /dev/null +++ b/.github/CONTRIBUTING.md @@ -0,0 +1,29 @@ +Contributing +====== +Considering that this project is actively maintained, contributions of all types are welcome. + +Asking Questions +------- +Before asking any question, read the [wiki](/../../wiki). +It may contains the answer to your questions. +If not, or if the wiki isn't clear, open a new issue. The issue will be labeled with _question_. + + +Opening issues +------- +Open a new issue when: +- you notice an unwanted behavior +- you want a new feature implemented +- you have just some doubts + +To open a new issue, please use the provided issue template and fill it out as much as possible. +If you are interested to an existing issue, feel free to comment the issue or subscribe to it. + + +Submitting pull requests +------- +If you want to fix a bug or implement a new feature, feel free to submit a new pull request. +To submit a pull request, you have to fork this repository and fill the PR template. +When you want to submit a pull request, remember to: +- follow this project's code style +- run `./gradlew clean build` diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 000000000..e078b4218 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,2 @@ +github: jahirfiquitiva +custom: https://jahir.dev/donate diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 000000000..e6bc5ee15 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,55 @@ +--- +name: Bug Report +about: Report any issues/bugs you're facing +--- + + + +- [ ] I have verified there are no duplicate active or recent bugs, questions, or requests +- [ ] I have verified that I am using the latest version. + +### Device/App info: + - Kuper Version: `?` + - Android version: `?` + - Device Manufacturer: `?` + - Device Name: `?` + +### Describe the bug +A clear and concise description of what the bug is. + +### Reproduction Steps +1. +2. +3. + +### Expected behavior + + + + +### Screenshots + + +### Code and/or Logs + +```kotlin +println("Hello, world!") +``` + + +```Gradle +java.lang.RuntimeException: This is an example Exception log + at com.package.name.HelloWorld + at com.package.name.HelloWorld$ThisIsNotARealLog + at android.app.Instrumentation.callActivityOnResume(Instrumentation.kt) +``` + +### Additional context + diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 000000000..81e6d74f4 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,22 @@ +--- +name: Feature Request +about: Suggest an idea for this project + +--- + + + + +### Is your feature request related to a problem? Please describe. + + +### Describe the solution you'd like + + +### Describe alternatives you've considered + + +### Additional context + diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 000000000..c36103bb7 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,16 @@ + + +### Description + + +### Motivation + \ No newline at end of file diff --git a/.github/ci-reporter.yml b/.github/ci-reporter.yml new file mode 100644 index 000000000..0db4bc60f --- /dev/null +++ b/.github/ci-reporter.yml @@ -0,0 +1,8 @@ +# Set to false to create a new comment instead of updating the app's first one +updateComment: false + +# Use a custom string, or set to false to disable +before: "Unfortunately, the [{{ provider }} build]({{ targetUrl }}) is failing as of {{ commit }}. Here's the output:" + +# Use a custom string, or set to false to disable +after: "If you need help with this issue, don't hesitate to ask a maintainer of the project!" diff --git a/.github/config.yml b/.github/config.yml new file mode 100644 index 000000000..2c7962978 --- /dev/null +++ b/.github/config.yml @@ -0,0 +1,25 @@ +requestInfoReplyComment: > + I would appreciate it if you could provide us with more info about this issue/pr! + +requestInfoLabelToAdd: "Status: Needs Info" + +newPRWelcomeComment: > + Thanks so much for opening your first PR here :smiley:. Please be sure to check the [contribution guidelines](../tree/sample/.github/CONTRIBUTING.md)! :wink: + +firstPRMergeComment: > + Congrats on merging your first pull request here! :tada: How awesome! + +newIssueWelcomeComment: > + Thanks for opening your first issue here :smiley:! Please be sure to follow the issue template and check the [contribution guidelines](../tree/sample/.github/CONTRIBUTING.md) :wink: (otherwise the issue will be ignored :confused:). + +sentimentBotToxicityThreshold: .7 + +sentimentBotReplyComment: > + Please be sure to review the [code of conduct](../tree/sample/.github/CODE_OF_CONDUCT.md) and be respectful of other users. cc/ @jahirfiquitiva + +lockThreads: + toxicityThreshold: .7 + numComments: 2 + setTimeInHours: 48 + replyComment: > + This thread is being locked due to exceeding the toxicity minimums. cc/ @jahirfiquitiva diff --git a/.github/lock.yml b/.github/lock.yml new file mode 100644 index 000000000..de6f55510 --- /dev/null +++ b/.github/lock.yml @@ -0,0 +1,7 @@ +# Number of days of inactivity before a closed issue or pull request is locked +daysUntilLock: 7 +# Comment to post before locking. Set to `false` to disable +lockComment: > + This thread has been automatically locked because it has not had recent + activity. Please open a new issue for related bugs and link to relevant + comments in this thread. \ No newline at end of file diff --git a/.github/move.yml b/.github/move.yml new file mode 100644 index 000000000..d3f085f0a --- /dev/null +++ b/.github/move.yml @@ -0,0 +1,6 @@ +# Delete the command comment. Ignored when the comment also contains other content +deleteCommand: true +# Close the source issue after moving +closeSourceIssue: true +# Lock the source issue after moving +lockSourceIssue: true \ No newline at end of file diff --git a/.github/no-response.yml b/.github/no-response.yml new file mode 100644 index 000000000..a5a907a60 --- /dev/null +++ b/.github/no-response.yml @@ -0,0 +1,11 @@ +# Number of days of inactivity before an Issue is closed for lack of response +daysUntilClose: 2 +# Label requiring a response +responseRequiredLabel: "Status: Needs info" +# Comment to post when closing an Issue for lack of response. Set to `false` to disable +closeComment: > + This issue has been automatically closed because there has been no response + to our request for more information. With only the information that is + currently in the issue, we don't have enough information to take action. + Please reach out if you have or find the answers we need so that we can + investigate further. diff --git a/.github/stale.yml b/.github/stale.yml new file mode 100644 index 000000000..c987f3d02 --- /dev/null +++ b/.github/stale.yml @@ -0,0 +1,21 @@ +daysUntilStale: 3 +daysUntilClose: 7 + +exemptLabels: + - "Status: Accepted" + - "Status: Pending" +staleLabel: "Status: Stale" + +markComment: > + This issue has been automatically marked as stale because it has not had activity in the last three (3) days. It will be closed if no further activity occurs within the next four (4) days. Thank you for your contributions. +unmarkComment: > + Thanks for updating this issue. It is no longer marked as stale. +closeComment: false + +pulls: + daysUntilStale: 5 + daysUntilClose: 10 + markComment: > + This pull request has been automatically marked as stale because it has not had activity in the last five (5) days. It will be closed if no further activity occurs within the next five (5) days. Thank you for your contributions. + unmarkComment: > + Thanks for updating this pull request. It is no longer marked as stale. diff --git a/.github/support.yml b/.github/support.yml new file mode 100644 index 000000000..4fcbe2ff1 --- /dev/null +++ b/.github/support.yml @@ -0,0 +1,12 @@ +# Label used to mark issues as support requests +supportLabel: "Type: Support" +# Comment to post on issues marked as support requests. Add a link +# to a support page, or set to `false` to disable +supportComment: > + ๐Ÿ‘‹ We use the issue tracker exclusively for bug reports and feature requests. + However, this issue appears to be a support request. Please join the + [Telegram Group](https://t.me/JFsDashSupport) to get help with the project. +# Whether to close issues marked as support requests +close: true +# Whether to lock issues marked as support requests +lock: true diff --git a/.github/triage.yml b/.github/triage.yml new file mode 100644 index 000000000..5f0fe5385 --- /dev/null +++ b/.github/triage.yml @@ -0,0 +1,4 @@ +# Label to use +label: 'Status: Pending' +# If enabled +enabled: true diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..b915109ce --- /dev/null +++ b/.gitignore @@ -0,0 +1,91 @@ +############################################################################# +# +# .gitignore declares what files should be ignored by git +# +# This particular file is a composite of github's Android and Eclipse +# files, along with some custom additions. +# +############################################################################# + +############################################################################# +# Eclipse related files +############################################################################# + +# do not ignore debug apk +!app-debug.apk + +*.pydevproject +.metadata +.gradle +bin/ +*.tmp +*.bak +*.swp +*~.nib +local.properties +.settings/ +.loadpath + +# External tool builders +.externalToolBuilders/ + +# Locally stored "Eclipse launch configurations" +*.launch + +# CDT-specific +.cproject + +# PDT-specific +.buildpath + +# sbteclipse plugin +.target + +# TeXlipse plugin +.texlipse + +############################################################################# +# Android related files +############################################################################# + +# Built application files +*.apk +#*.ap_ + +# Generated files +gen/ + +# Gradle files +build/ + +# Proguard folder generated by Eclipse +proguard/ + +#Log Files +*.log + +############################################################################# +# Other Misc. files +############################################################################# + +# Temp files for KDE and other Editor's +*~ + +############################################################################# +# Android Studio related files +############################################################################# +!.idea/copyright +!.idea/codeStyles +.idea/*.xml +.idea/caches +.idea/libraries +#gradle.properties +*.iml +======= +.DS_Store +/captures +/projectFilesBackup +/reports +/report + +app/release diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml new file mode 100644 index 000000000..a3350b10f --- /dev/null +++ b/.idea/codeStyles/Project.xml @@ -0,0 +1,126 @@ + + + + + + + + + +
+ + + + xmlns:android + + ^$ + + + +
+
+ + + + xmlns:.* + + ^$ + + + BY_NAME + +
+
+ + + + .*:id + + http://schemas.android.com/apk/res/android + + + +
+
+ + + + .*:name + + http://schemas.android.com/apk/res/android + + + +
+
+ + + + name + + ^$ + + + +
+
+ + + + style + + ^$ + + + +
+
+ + + + .* + + ^$ + + + BY_NAME + +
+
+ + + + .* + + http://schemas.android.com/apk/res/android + + + ANDROID_ATTRIBUTE_ORDER + +
+
+ + + + .* + + .* + + + BY_NAME + +
+
+
+
+ + +
+
\ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 000000000..3c617fb8f --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..7399738eb --- /dev/null +++ b/.travis.yml @@ -0,0 +1,61 @@ +language: android +dist: trusty +sudo: false +jdk: oraclejdk8 + +env: + global: + - ANDROID_API=29 + - ANDROID_BUILD_TOOLS=29.0.3 + +android: + components: + - tools + - platform-tools + - build-tools-$ANDROID_BUILD_TOOLS + - android-$ANDROID_API + - extra-android-support + - extra-google-m2repository + - extra-android-m2repository + licenses: + - '.+' + +before_install: + - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock + - rm -fr $HOME/.gradle/caches/*/plugin-resolution/ + - yes | sdkmanager "platforms;android-$ANDROID_API" + - yes | sdkmanager "build-tools;$ANDROID_BUILD_TOOLS" + +script: ./gradlew clean test --full-stacktrace + +branches: + except: + - images + - gh-pages + - travis-build + - i18n + +notifications: + email: false + slack: + rooms: jahirfiquitiva:BPPLJNqX4mxGp8h2lkkotgNn + template: + - 'Build <%{build_url}|#%{build_number}> (<%{compare_url}|%{commit}: ''%{commit_subject}''>) by + %{author} for %{repository_name}@%{branch}, %{result} in %{duration}. <%{build_url}|Check + details>.' + +before_cache: + - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock + - rm -fr $HOME/.gradle/caches/*/plugin-resolution/ + +cache: + directories: + - "$HOME/.android/build-cache" + - "$HOME/.m2" + - "$HOME/.gradle" + - "$HOME/.gradle/caches/" + - "$HOME/.gradle/wrapper/" + +before_script: + - chmod +x gradlew + - chmod +x gradle/wrapper/gradle-wrapper.jar diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 000000000..849337454 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,161 @@ +## Creative Commons Attribution-ShareAlike 4.0 International Public License + +By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution-ShareAlike 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions. + +### Section 1 โ€“ Definitions. + +a. __Adapted Material__ means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image. + +b. __Adapter's License__ means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License. + +c. __BY-SA Compatible License__ means a license listed at [creativecommons.org/compatiblelicenses](http://creativecommons.org/compatiblelicenses), approved by Creative Commons as essentially the equivalent of this Public License. + +d. __Copyright and Similar Rights__ means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights. + +e. __Effective Technological Measures__ means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements. + +f. __Exceptions and Limitations__ means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material. + +g. __License Elements__ means the license attributes listed in the name of a Creative Commons Public License. The License Elements of this Public License are Attribution and ShareAlike. + +h. __Licensed Material__ means the artistic or literary work, database, or other material to which the Licensor applied this Public License. + +i. __Licensed Rights__ means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license. + +j. __Licensor__ means the individual(s) or entity(ies) granting rights under this Public License. + +k. __Share__ means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them. + +l. __Sui Generis Database Rights__ means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world. + +m. __You__ means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning. + +### Section 2 โ€“ Scope. + +a. ___License grant.___ + + 1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to: + + A. reproduce and Share the Licensed Material, in whole or in part; and + + B. produce, reproduce, and Share Adapted Material. + + 2. __Exceptions and Limitations.__ For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions. + + 3. __Term.__ The term of this Public License is specified in Section 6(a). + + 4. __Media and formats; technical modifications allowed.__ The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material. + + 5. __Downstream recipients.__ + + A. __Offer from the Licensor โ€“ Licensed Material.__ Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License. + + B. __Additional offer from the Licensor โ€“ Adapted Material. Every recipient of Adapted Material from You automatically receives an offer from the Licensor to exercise the Licensed Rights in the Adapted Material under the conditions of the Adapterโ€™s License You apply. + + C. __No downstream restrictions.__ You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material. + + 6. __No endorsement.__ Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i). + +b. ___Other rights.___ + + 1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise. + + 2. Patent and trademark rights are not licensed under this Public License. + + 3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties. + +### Section 3 โ€“ License Conditions. + +Your exercise of the Licensed Rights is expressly made subject to the following conditions. + +a. ___Attribution.___ + + 1. If You Share the Licensed Material (including in modified form), You must: + + A. retain the following if it is supplied by the Licensor with the Licensed Material: + + i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated); + + ii. a copyright notice; + + iii. a notice that refers to this Public License; + + iv. a notice that refers to the disclaimer of warranties; + + v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable; + + B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and + + C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License. + + 2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information. + + 3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable. + +b. ___ShareAlike.___ + +In addition to the conditions in Section 3(a), if You Share Adapted Material You produce, the following conditions also apply. + +1. The Adapterโ€™s License You apply must be a Creative Commons license with the same License Elements, this version or later, or a BY-SA Compatible License. + +2. You must include the text of, or the URI or hyperlink to, the Adapter's License You apply. You may satisfy this condition in any reasonable manner based on the medium, means, and context in which You Share Adapted Material. + +3. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, Adapted Material that restrict exercise of the rights granted under the Adapter's License You apply. + +### Section 4 โ€“ Sui Generis Database Rights. + +Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material: + +a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database; + +b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material, including for purposes of Section 3(b); and + +c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database. + +For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights. + +### Section 5 โ€“ Disclaimer of Warranties and Limitation of Liability. + +a. __Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You.__ + +b. __To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You.__ + +c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability. + +### Section 6 โ€“ Term and Termination. + +a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically. + +b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates: + + 1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or + + 2. upon express reinstatement by the Licensor. + + For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License. + +c. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License. + +d. Sections 1, 5, 6, 7, and 8 survive termination of this Public License. + +### Section 7 โ€“ Other Terms and Conditions. + +a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed. + +b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License.t stated herein are separate from and independent of the terms and conditions of this Public License. + +### Section 8 โ€“ Interpretation. + +a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License. + +b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions. + +c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor. + +d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority. + +``` +Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the โ€œLicensor.โ€ Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at [creativecommons.org/policies](http://creativecommons.org/policies), Creative Commons does not authorize the use of the trademark โ€œCreative Commonsโ€ or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses. + +Creative Commons may be contacted at creativecommons.org +``` \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 000000000..aeb479e5b --- /dev/null +++ b/README.md @@ -0,0 +1,180 @@ + + +Blueprint +====== + +![API](https://img.shields.io/badge/API-21%2B-34bf49.svg) +[![JitPack](https://jitpack.io/v/com.jahirfiquitiva/Blueprint.svg)](https://jitpack.io/#com.jahirfiquitiva/Blueprint) +[![Build Status](https://travis-ci.com/jahirfiquitiva/Blueprint.svg?branch=master)](https://travis-ci.com/jahirfiquitiva/Blueprint) +[![Codacy Badge](https://api.codacy.com/project/badge/Grade/55f3f196492a4ea88f13da0f219b9125)](https://www.codacy.com/app/jahirfiquitiva/Blueprint?utm_source=github.com&utm_medium=referral&utm_content=jahirfiquitiva/Blueprint&utm_campaign=Badge_Grade) +[![Crowdin](https://d322cqt584bo4o.cloudfront.net/Blueprint/localized.svg)](https://crowdin.com/project/Blueprint/invite) + +Free, feature-rich, easily customizable Android dashboard for icon packs + + + + + + + + + + +## Show some :blue_heart: +[![GitHub stars](https://img.shields.io/github/stars/jahirfiquitiva/Blueprint.svg?style=social&label=Star)](https://github.com/jahirfiquitiva/Blueprint) +[![GitHub forks](https://img.shields.io/github/forks/jahirfiquitiva/Blueprint.svg?style=social&label=Fork)](https://github.com/jahirfiquitiva/Blueprint/fork) +[![GitHub watchers](https://img.shields.io/github/watchers/jahirfiquitiva/Blueprint.svg?style=social&label=Watch)](https://github.com/jahirfiquitiva/Blueprint) + +[![Follow on GitHub](https://img.shields.io/github/followers/jahirfiquitiva.svg?style=social&label=Follow)](https://github.com/jahirfiquitiva) +[![Twitter Follow](https://img.shields.io/twitter/follow/jahirfiquitiva.svg?style=social)](https://twitter.com/jahirfiquitiva) + +--- + +# Previews + +### Home / Icons / Apply / Requests +

+ + + + +

+ +### Wallpapers support (Based on [Frames](https://github.com/jahirfiquitiva/Frames)) / Templates support (Based on [Kuper](https://github.com/Kuper)) +

+ + + + +

+ +### Help / Credits / Settings / Navigation Drawer +

+ + + + +

+ +--- + +# Features: +- Material Design dashboard. +- License Checker. +- Donations. +- OneSignal notifications ready. +- Support for adaptive icon packs (Additional improvements coming soon!) +- In-app icon request tool +- Premium Icon Requests (Coming soon!) +- Support for [Arctic Manager](https://arcticmanager.com/) +- Apply section with 20 supported launchers. (Other launchers might not support direct apply) +- Help section, to answer the questions your users have. +- Support for Zooper templates, Kustom Wallpapers, Widgets, Lockscreens and Komponents. +- Cloud based (only) wallpapers. +- App can work offline. +- Wallpapers can be applied and downloaded. +- Wallpapers include a full-screen viewer with zooming capabilities and detailed info viewer. +- Credits section. +- Settings section with these options: + - Option to change app theme (Light, Dark, System, AMOLED). + - Option to color navigation bar (Lollipop+). + - Option to clear app cache. +- Tablet layouts. +- Lots of customizations. +- Works with Android 5.0 and newer. + +## Help translating +:page_facing_up: Help making Blueprint available in more languages. [Click here to go to the translation site](https://crowdin.com/project/Blueprint/invite) + +## Changelog +:radio_button: You can find it in the [Releases page](https://github.com/jahirfiquitiva/Blueprint/releases) + +--- + +# Including in your project +Blueprint is available via JitPack, so getting it as simple as adding it as a dependency, like this: + +1. Add JitPack repository to your root `build.gradle` file +```gradle +allprojects { + repositories { + maven { url 'https://jitpack.io' } + } +} +``` +2. Add the dependency in your project `build.gradle` file +```gradle +dependencies { + implementation('dev.jahir:Blueprint:{latest version}@aar') { + transitive = true + } +} +``` +where `{latest version}` corresponds to published version in [![JitPack](https://jitpack.io/v/dev.jahir/Blueprint.svg)](https://jitpack.io/#dev.jahir/Blueprint) + +## How to implement +:page_with_curl: Everything you need to know can be found in the **[Wiki Docs](https://github.com/jahirfiquitiva/Blueprint/wiki/)** + +## Still need help :question: +Just join our community and make a post. We'll help you as soon as possible. [![Telegram Chat](https://img.shields.io/badge/Telegram-Chat-0088cc.svg)](https://t.me/JFsDashSupport) + +--- + +# Developed by + +### [Jahir Fiquitiva](https://jahir.dev/) + +[![Follow on GitHub](https://img.shields.io/github/followers/jahirfiquitiva.svg?style=social&label=Follow)](https://github.com/jahirfiquitiva) +[![Twitter Follow](https://img.shields.io/twitter/follow/jahirfiquitiva.svg?style=social)](https://twitter.com/jahirfiquitiva) + +If you found this app/library helpful and want to thank me, you can: + + + + + +**Thanks in advance!** :pray: + +## Special thanks ๐Ÿ™Œ + +- [Eduardo Pratti](https://pratti.design/) ๐ŸŽจ +- [Sherry Sabatine](http://www.ssabatinephotography.com/) ๐Ÿ’ต +- [Allan Wang](https://www.allanwang.ca/) ๐Ÿ’ป +- [James Fenn](https://theandroidmaster.github.io/) ๐Ÿ”Œ +- [Maximilian Keppeler](https://twitter.com/maxKeppeler) ๐Ÿ”Œ +- [Sasi Kanth](https://twitter.com/its_sasikanth) ๐Ÿ”Œ +- [Alexandre Piveteau](https://github.com/alexandrepiveteau) ๐Ÿ’ป +- [Lukas Koller](https://github.com/kollerlukas) ๐Ÿ”Œ +- [Patryk Goworowski](https://twitter.com/pgoworowski) ๐ŸŽจ +- [Lumiq Creative](https://lumiqcreative.com/) ๐ŸŽจ +- [Jackson Hayes](https://jacksonhayes.xyz/) ๐Ÿ“– +- [Kevin Aguilar](https://twitter.com/kevttob) ๐ŸŽจ +- [Anthony Nguyen](https://twitter.com/link6155) ๐ŸŽจ + +--- + +# License + +This app is shared under the CreativeCommons Attribution-ShareAlike license. + + Copyright ยฉ 2020 Jahir Fiquitiva + + Licensed under the CreativeCommons Attribution-ShareAlike + 4.0 International License. You may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://creativecommons.org/licenses/by-sa/4.0/legalcode + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +## Library source + +As you may know, the [library source](https://github.com/jahirfiquitiva/Blueprint/tree/master) is open-source. This means that you can fork it and do your own modifications, but it has some conditions: + +When using the [library source](https://github.com/jahirfiquitiva/Blueprint/tree/master), anything from it: errors, crashes, issues, etc. including successful builds, must be done completely by yourself and under your own risk and responsibility. I **will not** provide any help/support when using the [library source](https://github.com/jahirfiquitiva/Blueprint/tree/master). + +Finally, be sure your projects comply with the [license previously mentioned](https://github.com/jahirfiquitiva/Blueprint#license). Otherwise I will be taking the required legal actions. I hope you understand. diff --git a/app/.gitignore b/app/.gitignore new file mode 100644 index 000000000..796b96d1c --- /dev/null +++ b/app/.gitignore @@ -0,0 +1 @@ +/build diff --git a/app/build.gradle b/app/build.gradle new file mode 100644 index 000000000..b45fed1f5 --- /dev/null +++ b/app/build.gradle @@ -0,0 +1,99 @@ +// TODO: Remove comment marks to enable +/* +buildscript { + repositories { + maven { url 'https://plugins.gradle.org/m2/' } + } + + dependencies { + classpath Plugins.oneSignal + } +} + +apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin' +*/ + +apply plugin: 'com.android.application' +apply plugin: 'kotlin-android' +apply plugin: 'kotlin-android-extensions' +apply plugin: 'kotlin-kapt' + +android { + applicationVariants.all { variant -> + variant.outputs.all { output -> + outputFileName = defaultConfig.applicationId + "-v${variant.versionName}-${variant.name}.apk" + } + } + + lintOptions { + abortOnError false + checkReleaseBuilds true + disable 'MissingTranslation', 'GoogleAppIndexingWarning' + } + + compileSdkVersion Versions.targetSdk + buildToolsVersion Versions.buildTools + + defaultConfig { + manifestPlaceholders = [ + onesignal_app_id : OneSignal.appId, + onesignal_google_project_number: OneSignal.googleProjectNumber + ] + applicationId MyApp.appId + minSdkVersion Versions.minSdk + targetSdkVersion Versions.targetSdk + versionCode MyApp.version + versionName MyApp.versionName + vectorDrawables.useSupportLibrary = true + proguardFiles 'proguard-android-optimize.txt', 'proguard-rules.pro' + consumerProguardFiles 'proguard-android-optimize.txt', 'proguard-rules.pro' + + javaCompileOptions { + annotationProcessorOptions { + arguments = [ + "room.schemaLocation" : "$projectDir/schemas".toString(), + "room.incremental" : "true", + "room.expandProjection": "true"] + } + } + } + + buildTypes { + release { + debuggable false + zipAlignEnabled true + minifyEnabled true + shrinkResources false + proguardFiles 'proguard-android-optimize.txt', 'proguard-rules.pro' + consumerProguardFiles 'proguard-android-optimize.txt', 'proguard-rules.pro' + signingConfig signingConfigs.release + } + } + + sourceSets { + main.java.srcDirs += 'src/main/kotlin' + } + + packagingOptions { + pickFirst 'META-INF/core_debug.kotlin_module' + pickFirst 'META-INF/core_release.kotlin_module' + pickFirst 'META-INF/library_debug.kotlin_module' + pickFirst 'META-INF/library_release.kotlin_module' + } + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + kotlinOptions { + jvmTarget = '1.8' + } +} + +dependencies { + implementation fileTree(dir: 'libs', include: ['*.jar']) + implementation project(':library') + // TODO: Remove comment marks to enable + // implementation Libs.oneSignal +} diff --git a/app/proguard-android-optimize.txt b/app/proguard-android-optimize.txt new file mode 100644 index 000000000..c34eebd71 --- /dev/null +++ b/app/proguard-android-optimize.txt @@ -0,0 +1,80 @@ +# This is a configuration file for ProGuard. +# http://proguard.sourceforge.net/index.html#manual/usage.html + +# Optimizations: If you don't want to optimize, use the +# proguard-android.txt configuration file instead of this one, which +# turns off the optimization flags. Adding optimization introduces +# certain risks, since for example not all optimizations performed by +# ProGuard works on all versions of Dalvik. The following flags turn +# off various optimizations known to have issues, but the list may not +# be complete or up to date. (The "arithmetic" optimization can be +# used if you are only targeting Android 2.0 or later.) Make sure you +# test thoroughly if you go this route. +-optimizations !code/simplification/arithmetic,!code/simplification/cast,!field/*,!class/merging/* +-optimizationpasses 5 +-allowaccessmodification +-dontpreverify + +# The remainder of this file is identical to the non-optimized version +# of the Proguard configuration file (except that the other file has +# flags to turn off optimization). + +-dontusemixedcaseclassnames +-dontskipnonpubliclibraryclasses + +-keepattributes *Annotation* +-keep public class com.google.vending.licensing.ILicensingService +-keep public class com.android.vending.licensing.ILicensingService + +# For native methods, see http://proguard.sourceforge.net/manual/examples.html#native +-keepclasseswithmembernames class * { + native ; +} + +# keep setters in Views so that animations can still work. +# see http://proguard.sourceforge.net/manual/examples.html#beans +-keepclassmembers public class * extends android.view.View { + void set*(***); + *** get*(); +} + +# We want to keep methods in Activity that could be used in the XML attribute onClick +-keepclassmembers class * extends android.app.Activity { + public void *(android.view.View); +} + +# For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations +-keepclassmembers enum * { + public static **[] values(); + public static ** valueOf(java.lang.String); +} + +-keepclassmembers class * implements android.os.Parcelable { + public static final android.os.Parcelable$Creator CREATOR; +} + +-keepclassmembers class **.R$* { + public static ; +} + +# The support library contains references to newer platform versions. +# Don't warn about those in case this app is linking against an older +# platform version. We know about them, and they are safe. +-dontwarn android.support.** + +# Understand the @Keep support annotation. +-keep class android.support.annotation.Keep + +-keep @android.support.annotation.Keep class * {*;} + +-keepclasseswithmembers class * { + @android.support.annotation.Keep ; +} + +-keepclasseswithmembers class * { + @android.support.annotation.Keep ; +} + +-keepclasseswithmembers class * { + @android.support.annotation.Keep (...); +} \ No newline at end of file diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro new file mode 100644 index 000000000..25d65e5d4 --- /dev/null +++ b/app/proguard-rules.pro @@ -0,0 +1,55 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile + +-keep class dev.jahir.frames.** { *; } +-keep class dev.jahir.kuper.** { *; } +-keep class dev.jahir.blueprint.** { *; } + +-keep class com.google.** +-keep class autovalue.shaded.com.google.** +-keep class com.android.vending.billing.** +-keep public class com.android.vending.licensing.ILicensingService + +-dontwarn org.apache.** +-dontwarn com.google.** +-dontwarn autovalue.shaded.com.google.** +-dontwarn com.android.vending.billing.** + +-dontwarn okhttp3.** +-dontwarn okio.** +-dontwarn javax.annotation.** + +# Retrofit +-keepattributes Signature, InnerClasses, EnclosingMethod +-keepattributes RuntimeVisibleAnnotations, RuntimeVisibleParameterAnnotations +-keepclassmembers,allowshrinking,allowobfuscation interface * { + @retrofit2.http.* ; +} +-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement +-dontwarn kotlin.Unit +-dontwarn retrofit2.KotlinExtensions +-dontwarn retrofit2.KotlinExtensions$* +-if interface * { @retrofit2.http.* ; } +-keep,allowobfuscation interface <1> + +-dontwarn +-ignorewarnings \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml new file mode 100644 index 000000000..3cc528703 --- /dev/null +++ b/app/src/main/AndroidManifest.xml @@ -0,0 +1,268 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/assets/iconsets/Minimal Weather.zip b/app/src/main/assets/iconsets/Minimal Weather.zip new file mode 100644 index 000000000..b38abf758 Binary files /dev/null and b/app/src/main/assets/iconsets/Minimal Weather.zip differ diff --git a/app/src/main/assets/komponents/GoogleMaterial.komp.zip b/app/src/main/assets/komponents/GoogleMaterial.komp.zip new file mode 100644 index 000000000..eecaeef09 Binary files /dev/null and b/app/src/main/assets/komponents/GoogleMaterial.komp.zip differ diff --git a/app/src/main/assets/lockscreens/Micro.klck.zip b/app/src/main/assets/lockscreens/Micro.klck.zip new file mode 100644 index 000000000..526fabba9 Binary files /dev/null and b/app/src/main/assets/lockscreens/Micro.klck.zip differ diff --git a/app/src/main/assets/lockscreens/Simple_PIN_Unlock.klck.zip b/app/src/main/assets/lockscreens/Simple_PIN_Unlock.klck.zip new file mode 100644 index 000000000..a7e522de8 Binary files /dev/null and b/app/src/main/assets/lockscreens/Simple_PIN_Unlock.klck.zip differ diff --git a/app/src/main/assets/lockscreens/Swipe_Dark.klck.zip b/app/src/main/assets/lockscreens/Swipe_Dark.klck.zip new file mode 100644 index 000000000..3fcf4dd41 Binary files /dev/null and b/app/src/main/assets/lockscreens/Swipe_Dark.klck.zip differ diff --git a/app/src/main/assets/templates/Fimbo Analog Clock.zw b/app/src/main/assets/templates/Fimbo Analog Clock.zw new file mode 100644 index 000000000..6c480c115 Binary files /dev/null and b/app/src/main/assets/templates/Fimbo Analog Clock.zw differ diff --git a/app/src/main/assets/templates/Fimbo Calendar.zw b/app/src/main/assets/templates/Fimbo Calendar.zw new file mode 100644 index 000000000..5f1d49fce Binary files /dev/null and b/app/src/main/assets/templates/Fimbo Calendar.zw differ diff --git a/app/src/main/assets/templates/Fimbo Digital Clock.zw b/app/src/main/assets/templates/Fimbo Digital Clock.zw new file mode 100644 index 000000000..fbf1971a4 Binary files /dev/null and b/app/src/main/assets/templates/Fimbo Digital Clock.zw differ diff --git a/app/src/main/assets/templates/Fimbo Weather.zw b/app/src/main/assets/templates/Fimbo Weather.zw new file mode 100644 index 000000000..e33cfa544 Binary files /dev/null and b/app/src/main/assets/templates/Fimbo Weather.zw differ diff --git a/app/src/main/assets/templates/FimboSearchBar-by-JadenPleasants.zw b/app/src/main/assets/templates/FimboSearchBar-by-JadenPleasants.zw new file mode 100644 index 000000000..af260fa13 Binary files /dev/null and b/app/src/main/assets/templates/FimboSearchBar-by-JadenPleasants.zw differ diff --git a/app/src/main/assets/templates/FimboSimpleBar.zw b/app/src/main/assets/templates/FimboSimpleBar.zw new file mode 100644 index 000000000..79d8dd388 Binary files /dev/null and b/app/src/main/assets/templates/FimboSimpleBar.zw differ diff --git a/app/src/main/assets/templates/FimboWeatherTime.zw b/app/src/main/assets/templates/FimboWeatherTime.zw new file mode 100644 index 000000000..77f3c71be Binary files /dev/null and b/app/src/main/assets/templates/FimboWeatherTime.zw differ diff --git a/app/src/main/assets/wallpapers/HelloWorld.klwp.zip b/app/src/main/assets/wallpapers/HelloWorld.klwp.zip new file mode 100644 index 000000000..7a234e308 Binary files /dev/null and b/app/src/main/assets/wallpapers/HelloWorld.klwp.zip differ diff --git a/app/src/main/assets/widgets/A_Better_Weather.kwgt.zip b/app/src/main/assets/widgets/A_Better_Weather.kwgt.zip new file mode 100644 index 000000000..3f4ab1361 Binary files /dev/null and b/app/src/main/assets/widgets/A_Better_Weather.kwgt.zip differ diff --git a/app/src/main/assets/widgets/kuper_calendar.kwgt b/app/src/main/assets/widgets/kuper_calendar.kwgt new file mode 100755 index 000000000..a32ca2b66 Binary files /dev/null and b/app/src/main/assets/widgets/kuper_calendar.kwgt differ diff --git a/app/src/main/assets/widgets/kuper_music.kwgt b/app/src/main/assets/widgets/kuper_music.kwgt new file mode 100755 index 000000000..1a15e849e Binary files /dev/null and b/app/src/main/assets/widgets/kuper_music.kwgt differ diff --git a/app/src/main/assets/widgets/kuper_strip.kwgt b/app/src/main/assets/widgets/kuper_strip.kwgt new file mode 100755 index 000000000..e10aad6df Binary files /dev/null and b/app/src/main/assets/widgets/kuper_strip.kwgt differ diff --git a/app/src/main/assets/widgets/kuper_type.kwgt b/app/src/main/assets/widgets/kuper_type.kwgt new file mode 100755 index 000000000..6571b5bec Binary files /dev/null and b/app/src/main/assets/widgets/kuper_type.kwgt differ diff --git a/app/src/main/assets/widgets/kuper_unread_counter.kwgt b/app/src/main/assets/widgets/kuper_unread_counter.kwgt new file mode 100755 index 000000000..80173b391 Binary files /dev/null and b/app/src/main/assets/widgets/kuper_unread_counter.kwgt differ diff --git a/app/src/main/kotlin/dev/jahir/blueprint/app/MainActivity.kt b/app/src/main/kotlin/dev/jahir/blueprint/app/MainActivity.kt new file mode 100644 index 000000000..aaab1a962 --- /dev/null +++ b/app/src/main/kotlin/dev/jahir/blueprint/app/MainActivity.kt @@ -0,0 +1,40 @@ +package dev.jahir.blueprint.app + +import com.github.javiersantos.piracychecker.PiracyChecker +import dev.jahir.blueprint.ui.activities.BottomNavigationBlueprintActivity + +/** + * You can choose between: + * - DrawerBlueprintActivity + * - BottomNavigationBlueprintActivity + */ +class MainActivity : BottomNavigationBlueprintActivity() { + + /** + * These things here have the default values. You can delete the ones you don't want to change + * and/or modify the ones you want to. + */ + override val billingEnabled = true + + override fun amazonInstallsEnabled(): Boolean = false + override fun checkLPF(): Boolean = true + override fun checkStores(): Boolean = true + override val isDebug: Boolean = BuildConfig.DEBUG + + /** + * This is your app's license key. Get yours on Google Play Dev Console. + * Default one isn't valid and could cause issues in your app. + */ + override fun getLicKey(): String? = "MIIBIjANBgkqhkiGgKglYGYGihLuihUuhhuBlouBkuiu" + + /** + * This is the license checker code. Feel free to create your own implementation or + * leave it as it is. + * Anyways, keep the 'destroyChecker()' as the very first line of this code block + * Return null to disable license check + */ + override fun getLicenseChecker(): PiracyChecker? { + destroyChecker() // Important + return if (BuildConfig.DEBUG) null else super.getLicenseChecker() + } +} \ No newline at end of file diff --git a/app/src/main/kotlin/dev/jahir/blueprint/app/MyApplication.kt b/app/src/main/kotlin/dev/jahir/blueprint/app/MyApplication.kt new file mode 100644 index 000000000..a5b2e0a43 --- /dev/null +++ b/app/src/main/kotlin/dev/jahir/blueprint/app/MyApplication.kt @@ -0,0 +1,19 @@ +package dev.jahir.blueprint.app + +import dev.jahir.frames.ui.FramesApplication + +// TODO: Remove comment marks to enable +// import com.onesignal.OneSignal + +class MyApplication : FramesApplication() { + override fun onCreate() { + super.onCreate() + // TODO: Remove comment marks to enable + /* + OneSignal.startInit(this) + .inFocusDisplaying(OneSignal.OSInFocusDisplayOption.Notification) + .unsubscribeWhenNotificationsAreDisabled(true) + .init() + */ + } +} \ No newline at end of file diff --git a/app/src/main/kotlin/dev/jahir/blueprint/app/NotificationService.kt b/app/src/main/kotlin/dev/jahir/blueprint/app/NotificationService.kt new file mode 100644 index 000000000..947822de6 --- /dev/null +++ b/app/src/main/kotlin/dev/jahir/blueprint/app/NotificationService.kt @@ -0,0 +1,12 @@ +package dev.jahir.blueprint.app + +/* TODO: Remove comment marks to enable +import com.onesignal.NotificationExtenderService +import com.onesignal.OSNotificationReceivedResult +import dev.jahir.frames.extensions.preferences + +class NotificationService : NotificationExtenderService() { + override fun onNotificationProcessing(notification: OSNotificationReceivedResult?): Boolean = + !preferences.notificationsEnabled +} +*/ \ No newline at end of file diff --git a/app/src/main/kotlin/dev/jahir/blueprint/app/ZooperProvider.kt b/app/src/main/kotlin/dev/jahir/blueprint/app/ZooperProvider.kt new file mode 100644 index 000000000..c5356ae16 --- /dev/null +++ b/app/src/main/kotlin/dev/jahir/blueprint/app/ZooperProvider.kt @@ -0,0 +1,5 @@ +package dev.jahir.blueprint.app + +import dev.jahir.kuper.data.providers.ZooperTemplateProvider + +class ZooperProvider : ZooperTemplateProvider() \ No newline at end of file diff --git a/app/src/main/res/drawable-nodpi/amber_circle.png b/app/src/main/res/drawable-nodpi/amber_circle.png new file mode 100644 index 000000000..4db20275f Binary files /dev/null and b/app/src/main/res/drawable-nodpi/amber_circle.png differ diff --git a/app/src/main/res/drawable-nodpi/amber_rectangle.png b/app/src/main/res/drawable-nodpi/amber_rectangle.png new file mode 100644 index 000000000..627cbaf2a Binary files /dev/null and b/app/src/main/res/drawable-nodpi/amber_rectangle.png differ diff --git a/app/src/main/res/drawable-nodpi/amber_square.png b/app/src/main/res/drawable-nodpi/amber_square.png new file mode 100644 index 000000000..723db9c42 Binary files /dev/null and b/app/src/main/res/drawable-nodpi/amber_square.png differ diff --git a/app/src/main/res/drawable-nodpi/blue_circle.png b/app/src/main/res/drawable-nodpi/blue_circle.png new file mode 100644 index 000000000..63ace7658 Binary files /dev/null and b/app/src/main/res/drawable-nodpi/blue_circle.png differ diff --git a/app/src/main/res/drawable-nodpi/blue_rectangle.png b/app/src/main/res/drawable-nodpi/blue_rectangle.png new file mode 100644 index 000000000..8022a5aba Binary files /dev/null and b/app/src/main/res/drawable-nodpi/blue_rectangle.png differ diff --git a/app/src/main/res/drawable-nodpi/blue_square.png b/app/src/main/res/drawable-nodpi/blue_square.png new file mode 100644 index 000000000..7eac918cf Binary files /dev/null and b/app/src/main/res/drawable-nodpi/blue_square.png differ diff --git a/app/src/main/res/drawable-nodpi/ic_na_launcher.png b/app/src/main/res/drawable-nodpi/ic_na_launcher.png new file mode 100644 index 000000000..644e6f856 Binary files /dev/null and b/app/src/main/res/drawable-nodpi/ic_na_launcher.png differ diff --git a/app/src/main/res/drawable-nodpi/purple_circle.png b/app/src/main/res/drawable-nodpi/purple_circle.png new file mode 100644 index 000000000..b3ff3bf3e Binary files /dev/null and b/app/src/main/res/drawable-nodpi/purple_circle.png differ diff --git a/app/src/main/res/drawable-nodpi/purple_rectangle.png b/app/src/main/res/drawable-nodpi/purple_rectangle.png new file mode 100644 index 000000000..8d9932073 Binary files /dev/null and b/app/src/main/res/drawable-nodpi/purple_rectangle.png differ diff --git a/app/src/main/res/drawable-nodpi/purple_square.png b/app/src/main/res/drawable-nodpi/purple_square.png new file mode 100644 index 000000000..d34a6d9bc Binary files /dev/null and b/app/src/main/res/drawable-nodpi/purple_square.png differ diff --git a/app/src/main/res/drawable-nodpi/red_circle.png b/app/src/main/res/drawable-nodpi/red_circle.png new file mode 100644 index 000000000..3b69dab58 Binary files /dev/null and b/app/src/main/res/drawable-nodpi/red_circle.png differ diff --git a/app/src/main/res/drawable-nodpi/red_rectangle.png b/app/src/main/res/drawable-nodpi/red_rectangle.png new file mode 100644 index 000000000..64997ec8f Binary files /dev/null and b/app/src/main/res/drawable-nodpi/red_rectangle.png differ diff --git a/app/src/main/res/drawable-nodpi/red_square.png b/app/src/main/res/drawable-nodpi/red_square.png new file mode 100644 index 000000000..3086a0f6f Binary files /dev/null and b/app/src/main/res/drawable-nodpi/red_square.png differ diff --git a/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/app/src/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 000000000..1f6bb2906 --- /dev/null +++ b/app/src/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + diff --git a/app/src/main/res/drawable/ic_launcher_background.xml b/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 000000000..0d025f9bf --- /dev/null +++ b/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/menu/bottom_navigation_menu.xml b/app/src/main/res/menu/bottom_navigation_menu.xml new file mode 100644 index 000000000..546eba251 --- /dev/null +++ b/app/src/main/res/menu/bottom_navigation_menu.xml @@ -0,0 +1,34 @@ + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/menu/drawer_menu.xml b/app/src/main/res/menu/drawer_menu.xml new file mode 100644 index 000000000..059967d1d --- /dev/null +++ b/app/src/main/res/menu/drawer_menu.xml @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 000000000..eca70cfe5 --- /dev/null +++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 000000000..eca70cfe5 --- /dev/null +++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.png b/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 000000000..898f3ed59 Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/app/src/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 000000000..dffca3601 Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.png b/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 000000000..64ba76f75 Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/app/src/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 000000000..dae5e0823 Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 000000000..e5ed46597 Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 000000000..14ed0af35 Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 000000000..b0907cac3 Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 000000000..d8ae03154 Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 000000000..2c18de9e6 Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 000000000..beed3cdd2 Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/app/src/main/res/values/about_setup.xml b/app/src/main/res/values/about_setup.xml new file mode 100644 index 000000000..c2a7f3146 --- /dev/null +++ b/app/src/main/res/values/about_setup.xml @@ -0,0 +1,27 @@ + + + + https://lh3.googleusercontent.com/-0mdcClKXlgM/AAAAAAAAAAI/AAAAAAAAAAA/xgdLWeAg7pM/s120-c/photo.jpg + https://ssl.gstatic.com/images/branding/product/2x/avatar_square_grey_512dp.png + + + + Your Name + Another Name + + + + Details of first credited person + Details of another credited person + + + + Google+|Instagram + Facebook|Website|Twitter + + + + https://www.google.com/+JahirFiquitivaR|http://instagram.com/jahirfiquitiva + https://facebook.com/|https://jahir.dev/|https://twitter.com/jahirfiquitiva + + \ No newline at end of file diff --git a/app/src/main/res/values/blueprint_setup.xml b/app/src/main/res/values/blueprint_setup.xml new file mode 100644 index 000000000..353866142 --- /dev/null +++ b/app/src/main/res/values/blueprint_setup.xml @@ -0,0 +1,62 @@ + + + + true + + + + + + + false + + + false + + + someone@email.com + + + Blueprint + Blueprint Icon Request + + + -1 + 0 + + + + \ No newline at end of file diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml new file mode 100644 index 000000000..46c21f8ec --- /dev/null +++ b/app/src/main/res/values/colors.xml @@ -0,0 +1,60 @@ + + + + + #1a000000 + #fff + #000 + #00000000 + #80000000 + #1f000000 + + + + #ffffff + #fafafa + #de000000 + + #3881fa + #ffffff + + #ffffff + #de000000 + #8a000000 + + #fafafa + #de000000 + + + + #212121 + #000000 + #ffffff + + #ff3f80 + #ffffff + + #424242 + #ffffff + #b3ffffff + + #303030 + #b3ffffff + + + + #000000 + #000000 + #ffffff + + #64ffda + #de000000 + + #212121 + #ffffff + #101010 + + @color/darkThemeOnSurfaceVariant + @color/darkThemeOnBackground + + \ No newline at end of file diff --git a/app/src/main/res/values/dashboard_setup.xml b/app/src/main/res/values/dashboard_setup.xml new file mode 100644 index 000000000..f86ab1f2d --- /dev/null +++ b/app/src/main/res/values/dashboard_setup.xml @@ -0,0 +1,51 @@ + + + + + true + + + true + + + "" + + + "" + + + true + + + 2 + + + false + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml new file mode 100644 index 000000000..934b6a0c8 --- /dev/null +++ b/app/src/main/res/values/dimens.xml @@ -0,0 +1,9 @@ + + + 8dp + 2dp + 4dp + 6dp + 8dp + 12dp + \ No newline at end of file diff --git a/app/src/main/res/values/floats.xml b/app/src/main/res/values/floats.xml new file mode 100644 index 000000000..1547a4f36 --- /dev/null +++ b/app/src/main/res/values/floats.xml @@ -0,0 +1,5 @@ + + + 1.35 + 1.7 + \ No newline at end of file diff --git a/app/src/main/res/values/frames_setup.xml b/app/src/main/res/values/frames_setup.xml new file mode 100644 index 000000000..52f0750c5 --- /dev/null +++ b/app/src/main/res/values/frames_setup.xml @@ -0,0 +1,29 @@ + + + + + https://jahir.dev/frames/frames.json + + + true + + + false + + + false + + + true + + + + + \ No newline at end of file diff --git a/app/src/main/res/values/home_setup.xml b/app/src/main/res/values/home_setup.xml new file mode 100644 index 000000000..1dceae5e3 --- /dev/null +++ b/app/src/main/res/values/home_setup.xml @@ -0,0 +1,49 @@ + + + + 1 + + + true + + + false + + + + + + + IconShowcase + An App + + + It is the old version of this awesome dashboard + This is an app + + + ic_na_launcher + ic_na_launcher + + + https://github.com/jahirfiquitiva/Blueprint + https://play.google.com/store/apps/details?id=com.android.settings + + \ No newline at end of file diff --git a/app/src/main/res/values/icon_pack.xml b/app/src/main/res/values/icon_pack.xml new file mode 100644 index 000000000..f0cf6afb8 --- /dev/null +++ b/app/src/main/res/values/icon_pack.xml @@ -0,0 +1,95 @@ + + + + + + amber_circle + amber_rectangle + amber_square + blue_circle + blue_rectangle + blue_square + purple_circle + purple_rectangle + purple_square + red_circle + red_rectangle + red_square + + + + + + + + all + amber + blue + purple + red + circles + rectangles + squares + + + + amber_circle + amber_rectangle + amber_square + blue_circle + blue_rectangle + blue_square + purple_circle + purple_rectangle + purple_square + red_circle + red_rectangle + red_square + + + + amber_circle + amber_rectangle + amber_square + + + + blue_circle + blue_rectangle + blue_square + + + + purple_circle + purple_rectangle + purple_square + + + + red_circle + red_rectangle + red_square + + + + amber_circle + blue_circle + purple_circle + red_circle + + + + amber_rectangle + blue_rectangle + purple_rectangle + red_rectangle + + + + amber_square + blue_square + purple_square + red_square + + \ No newline at end of file diff --git a/app/src/main/res/values/integers.xml b/app/src/main/res/values/integers.xml new file mode 100644 index 000000000..323350b08 --- /dev/null +++ b/app/src/main/res/values/integers.xml @@ -0,0 +1,5 @@ + + + 2 + 1 + \ No newline at end of file diff --git a/app/src/main/res/values/kuper_setup.xml b/app/src/main/res/values/kuper_setup.xml new file mode 100644 index 000000000..09d45c9bc --- /dev/null +++ b/app/src/main/res/values/kuper_setup.xml @@ -0,0 +1,29 @@ + + + + false + + + + + @string/app_name + Cool widgets. + Your name + + + 1 + + + @mipmap/ic_launcher + + + false + + + + + @string/app_name + + + Cool Kustom komponents, wallpapers and widgets. + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml new file mode 100644 index 000000000..281600759 --- /dev/null +++ b/app/src/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + Blueprint + diff --git a/app/src/main/res/xml/changelog.xml b/app/src/main/res/xml/changelog.xml new file mode 100644 index 000000000..1dba2f8fe --- /dev/null +++ b/app/src/main/res/xml/changelog.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/build.gradle b/build.gradle new file mode 100644 index 000000000..028480dce --- /dev/null +++ b/build.gradle @@ -0,0 +1,33 @@ +// Top-level build file where you can add configuration options common to all sub-projects/modules. + +buildscript { + repositories { + google() + jcenter() + mavenCentral() + maven { url 'https://jitpack.io' } + maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } + maven { url 'https://plugins.gradle.org/m2/' } + } + + dependencies { + classpath Plugins.android + classpath Plugins.kotlin + classpath Plugins.jitpack + } +} + +allprojects { + repositories { + google() + jcenter() + mavenCentral() + maven { url 'https://jitpack.io' } + maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } + maven { url 'https://plugins.gradle.org/m2/' } + } +} + +task clean(type: Delete) { + delete rootProject.buildDir +} diff --git a/buildSrc/.gitignore b/buildSrc/.gitignore new file mode 100644 index 000000000..a5583176c --- /dev/null +++ b/buildSrc/.gitignore @@ -0,0 +1,6 @@ +/build +build +/.gradle +.gradle +/gradle +gradle diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts new file mode 100644 index 000000000..2dade6e3e --- /dev/null +++ b/buildSrc/build.gradle.kts @@ -0,0 +1,12 @@ +plugins { + `kotlin-dsl` +} + +repositories { + google() + jcenter() + mavenCentral() + maven(url = "https://jitpack.io") + maven(url = "https://oss.sonatype.org/content/repositories/snapshots/") + maven(url = "https://plugins.gradle.org/m2/") +} \ No newline at end of file diff --git a/buildSrc/src/main/java/Libs.kt b/buildSrc/src/main/java/Libs.kt new file mode 100644 index 000000000..5db4a6a83 --- /dev/null +++ b/buildSrc/src/main/java/Libs.kt @@ -0,0 +1,12 @@ +@file:Suppress("unused") + +object Libs { + // Kotlin + const val kotlin = "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${Versions.kotlin}" + + // Blueprint + const val blueprint = "dev.jahir:Blueprint:${Versions.blueprint}@aar" + + // OneSignal + const val oneSignal = "com.onesignal:OneSignal:${Versions.oneSignal}" +} \ No newline at end of file diff --git a/buildSrc/src/main/java/MyApp.kt b/buildSrc/src/main/java/MyApp.kt new file mode 100644 index 000000000..6e03a6afc --- /dev/null +++ b/buildSrc/src/main/java/MyApp.kt @@ -0,0 +1,7 @@ +@file:Suppress("unused") + +object MyApp { + const val appId = "dev.jahir.blueprint.app" + const val version = 200 + const val versionName = "2.0.0" +} diff --git a/buildSrc/src/main/java/OneSignal.kt b/buildSrc/src/main/java/OneSignal.kt new file mode 100644 index 000000000..f16e09e1b --- /dev/null +++ b/buildSrc/src/main/java/OneSignal.kt @@ -0,0 +1,6 @@ +@file:Suppress("unused") + +object OneSignal { + const val appId = "965921b5-91a2-45b8-a960-a9f28948a781" + const val googleProjectNumber = "191533712411" +} diff --git a/buildSrc/src/main/java/Plugins.kt b/buildSrc/src/main/java/Plugins.kt new file mode 100644 index 000000000..fb21390cb --- /dev/null +++ b/buildSrc/src/main/java/Plugins.kt @@ -0,0 +1,13 @@ +@file:Suppress("unused") + +object Plugins { + // Android + const val android = "com.android.tools.build:gradle:${Versions.gradle}" + // Kotlin + const val kotlin = "org.jetbrains.kotlin:kotlin-gradle-plugin:${Versions.kotlin}" + // Jitpack Publisher + const val jitpack = "com.github.dcendents:android-maven-gradle-plugin:${Versions.jitpack}" + // OneSignal + const val oneSignal = + "gradle.plugin.com.onesignal:onesignal-gradle-plugin:${Versions.oneSignalPlugin}" +} \ No newline at end of file diff --git a/buildSrc/src/main/java/Versions.kt b/buildSrc/src/main/java/Versions.kt new file mode 100644 index 000000000..a741f9369 --- /dev/null +++ b/buildSrc/src/main/java/Versions.kt @@ -0,0 +1,20 @@ +@file:Suppress("unused") + +object Versions { + // Plugins + const val gradle = "3.6.2" + const val kotlin = "1.3.71" + const val jitpack = "2.1" + + // OneSignal + const val oneSignalPlugin = "0.12.6" + const val oneSignal = "3.12.7" + + // App + const val minSdk = 21 + const val targetSdk = 29 + const val buildTools = "29.0.3" + + // Blueprint + const val blueprint = "2.0.0" +} diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 000000000..33a40e6e6 --- /dev/null +++ b/gradle.properties @@ -0,0 +1,22 @@ +# Project-wide Gradle settings. +# IDE (e.g. Android Studio) users: +# Gradle settings configured through the IDE *will override* +# any settings specified in this file. +# For more details on how to configure your build environment visit +# http://www.gradle.org/docs/current/userguide/build_environment.html +# Specifies the JVM arguments used for the daemon process. +# The setting is particularly useful for tweaking memory settings. +org.gradle.jvmargs=-Xmx1536m +# When configured, Gradle will run in incubating parallel mode. +# This option should only be used with decoupled projects. More details, visit +# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects +# org.gradle.parallel=true +# AndroidX package structure to make it clearer which packages are bundled with the +# Android operating system, and which are packaged with your app's APK +# https://developer.android.com/topic/libraries/support-library/androidx-rn +android.useAndroidX=true +# Automatically convert third-party libraries to use AndroidX +android.enableJetifier=true +# Kotlin code style for this project: "official" or "obsolete": +kotlin.code.style=official +kapt.incremental.apt=true \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 000000000..f6b961fd5 Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 000000000..dc67ed1c9 --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +#Tue Mar 17 11:14:49 COT 2020 +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip diff --git a/gradlew b/gradlew new file mode 100755 index 000000000..cccdd3d51 --- /dev/null +++ b/gradlew @@ -0,0 +1,172 @@ +#!/usr/bin/env sh + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >/dev/null +APP_HOME="`pwd -P`" +cd "$SAVED" >/dev/null + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS="" + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn () { + echo "$*" +} + +die () { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; + NONSTOP* ) + nonstop=true + ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin, switch paths to Windows format before running java +if $cygwin ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + JAVACMD=`cygpath --unix "$JAVACMD"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=$((i+1)) + done + case $i in + (0) set -- ;; + (1) set -- "$args0" ;; + (2) set -- "$args0" "$args1" ;; + (3) set -- "$args0" "$args1" "$args2" ;; + (4) set -- "$args0" "$args1" "$args2" "$args3" ;; + (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Escape application args +save () { + for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done + echo " " +} +APP_ARGS=$(save "$@") + +# Collect all arguments for the java command, following the shell quoting and substitution rules +eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" + +# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong +if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then + cd "$(dirname "$0")" +fi + +exec "$JAVACMD" "$@" diff --git a/gradlew.bat b/gradlew.bat new file mode 100644 index 000000000..e95643d6a --- /dev/null +++ b/gradlew.bat @@ -0,0 +1,84 @@ +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS= + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto init + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto init + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:init +@rem Get command-line arguments, handling Windows variants + +if not "%OS%" == "Windows_NT" goto win9xME_args + +:win9xME_args +@rem Slurp the command line arguments. +set CMD_LINE_ARGS= +set _SKIP=2 + +:win9xME_args_slurp +if "x%~1" == "x" goto execute + +set CMD_LINE_ARGS=%* + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 000000000..e7b4def49 --- /dev/null +++ b/settings.gradle @@ -0,0 +1 @@ +include ':app'