From ad4ecbf00b0b95c4a45f226e28c1096613064a14 Mon Sep 17 00:00:00 2001 From: Kenechukwu Akubue Date: Mon, 4 Dec 2023 12:47:08 +0100 Subject: [PATCH] Initial commit --- .github/ISSUE_TEMPLATE/bug_report.md | 24 + .github/ISSUE_TEMPLATE/feature_request.md | 15 + .github/PULL_REQUEST_TEMPLATE | 29 + .github/template-cleanup/README.md | 12 + .github/workflows/cleanup.yaml | 44 + .../workflows/gradle-wrapper-validation.yml | 19 + .github/workflows/pre-merge.yaml | 32 + .github/workflows/publish-release.yaml | 48 + .github/workflows/publish-snapshot.yaml | 50 + .gitignore | 329 ++++++ .idea/codeStyles/Project.xml | 139 +++ .idea/codeStyles/codeStyleConfig.xml | 5 + .idea/icon.png | Bin 0 -> 16570 bytes .idea/icon_dark.png | Bin 0 -> 16570 bytes LICENSE | 19 + README.md | 114 +++ TROUBLESHOOTING.md | 27 + app/build.gradle.kts | 73 ++ app/proguard-rules.pro | 21 + .../kotlin/template/app/MainActivityTest.kt | 31 + app/src/main/AndroidManifest.xml | 23 + .../kotlin/template/app/MainActivity.kt | 43 + .../drawable-v24/ic_launcher_foreground.xml | 30 + .../res/drawable/ic_launcher_background.xml | 170 ++++ app/src/main/res/layout/activity_main.xml | 73 ++ .../res/mipmap-anydpi-v26/ic_launcher.xml | 6 + .../mipmap-anydpi-v26/ic_launcher_round.xml | 6 + app/src/main/res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 3593 bytes .../res/mipmap-hdpi/ic_launcher_round.png | Bin 0 -> 5339 bytes app/src/main/res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 2636 bytes .../res/mipmap-mdpi/ic_launcher_round.png | Bin 0 -> 3388 bytes app/src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 4926 bytes .../res/mipmap-xhdpi/ic_launcher_round.png | Bin 0 -> 7472 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 7909 bytes .../res/mipmap-xxhdpi/ic_launcher_round.png | Bin 0 -> 11873 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 0 -> 10652 bytes .../res/mipmap-xxxhdpi/ic_launcher_round.png | Bin 0 -> 16570 bytes app/src/main/res/values/colors.xml | 6 + app/src/main/res/values/dimens.xml | 5 + app/src/main/res/values/strings.xml | 10 + app/src/main/res/values/styles.xml | 11 + build.gradle.kts | 39 + buildSrc/build.gradle.kts | 22 + buildSrc/settings.gradle.kts | 8 + buildSrc/src/main/java/Coordinates.kt | 17 + buildSrc/src/main/java/Extensions.kt | 5 + buildSrc/src/main/kotlin/cleanup.gradle.kts | 109 ++ buildSrc/src/main/kotlin/publish.gradle.kts | 105 ++ config/detekt/detekt.yml | 936 ++++++++++++++++++ gradle.properties | 21 + gradle/libs.versions.toml | 43 + gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 43462 bytes gradle/wrapper/gradle-wrapper.properties | 7 + gradlew | 249 +++++ gradlew.bat | 92 ++ library-android/build.gradle.kts | 62 ++ library-android/consumer-rules.pro | 0 library-android/proguard-rules.pro | 21 + .../template/library/android/ToastUtilTest.kt | 26 + .../template/library/android/ToastUtil.kt | 12 + library-compose/.gitignore | 1 + library-compose/build.gradle.kts | 63 ++ library-compose/consumer-rules.pro | 0 library-compose/proguard-rules.pro | 21 + .../kotlin/template/app/FactorialTest.kt | 31 + library-compose/src/main/AndroidManifest.xml | 10 + .../kotlin/template/app/ComposeActivity.kt | 57 ++ .../template/app/ui/components/Factorial.kt | 108 ++ library-kotlin/build.gradle.kts | 23 + .../template/library/FactorialCalculator.kt | 13 + .../library/FactorialCalculatorTest.kt | 38 + renovate.json | 6 + settings.gradle.kts | 25 + 73 files changed, 3584 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md create mode 100644 .github/PULL_REQUEST_TEMPLATE create mode 100644 .github/template-cleanup/README.md create mode 100644 .github/workflows/cleanup.yaml create mode 100644 .github/workflows/gradle-wrapper-validation.yml create mode 100644 .github/workflows/pre-merge.yaml create mode 100644 .github/workflows/publish-release.yaml create mode 100644 .github/workflows/publish-snapshot.yaml create mode 100644 .gitignore create mode 100644 .idea/codeStyles/Project.xml create mode 100644 .idea/codeStyles/codeStyleConfig.xml create mode 100644 .idea/icon.png create mode 100644 .idea/icon_dark.png create mode 100644 LICENSE create mode 100644 README.md create mode 100644 TROUBLESHOOTING.md create mode 100644 app/build.gradle.kts create mode 100644 app/proguard-rules.pro create mode 100644 app/src/androidTest/java/com/ncorti/kotlin/template/app/MainActivityTest.kt create mode 100644 app/src/main/AndroidManifest.xml create mode 100644 app/src/main/java/com/ncorti/kotlin/template/app/MainActivity.kt create mode 100644 app/src/main/res/drawable-v24/ic_launcher_foreground.xml create mode 100644 app/src/main/res/drawable/ic_launcher_background.xml create mode 100644 app/src/main/res/layout/activity_main.xml create mode 100644 app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml create mode 100644 app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml create mode 100644 app/src/main/res/mipmap-hdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-hdpi/ic_launcher_round.png create mode 100644 app/src/main/res/mipmap-mdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-mdpi/ic_launcher_round.png create mode 100644 app/src/main/res/mipmap-xhdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-xhdpi/ic_launcher_round.png create mode 100644 app/src/main/res/mipmap-xxhdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png create mode 100644 app/src/main/res/mipmap-xxxhdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png create mode 100644 app/src/main/res/values/colors.xml create mode 100644 app/src/main/res/values/dimens.xml create mode 100644 app/src/main/res/values/strings.xml create mode 100644 app/src/main/res/values/styles.xml create mode 100644 build.gradle.kts create mode 100644 buildSrc/build.gradle.kts create mode 100644 buildSrc/settings.gradle.kts create mode 100644 buildSrc/src/main/java/Coordinates.kt create mode 100644 buildSrc/src/main/java/Extensions.kt create mode 100644 buildSrc/src/main/kotlin/cleanup.gradle.kts create mode 100644 buildSrc/src/main/kotlin/publish.gradle.kts create mode 100644 config/detekt/detekt.yml create mode 100644 gradle.properties create mode 100644 gradle/libs.versions.toml create mode 100644 gradle/wrapper/gradle-wrapper.jar create mode 100644 gradle/wrapper/gradle-wrapper.properties create mode 100755 gradlew create mode 100644 gradlew.bat create mode 100644 library-android/build.gradle.kts create mode 100644 library-android/consumer-rules.pro create mode 100644 library-android/proguard-rules.pro create mode 100644 library-android/src/androidTest/java/com/ncorti/kotlin/template/library/android/ToastUtilTest.kt create mode 100644 library-android/src/main/java/com/ncorti/kotlin/template/library/android/ToastUtil.kt create mode 100644 library-compose/.gitignore create mode 100644 library-compose/build.gradle.kts create mode 100644 library-compose/consumer-rules.pro create mode 100644 library-compose/proguard-rules.pro create mode 100644 library-compose/src/androidTest/java/com/ncorti/kotlin/template/app/FactorialTest.kt create mode 100644 library-compose/src/main/AndroidManifest.xml create mode 100644 library-compose/src/main/java/com/ncorti/kotlin/template/app/ComposeActivity.kt create mode 100644 library-compose/src/main/java/com/ncorti/kotlin/template/app/ui/components/Factorial.kt create mode 100644 library-kotlin/build.gradle.kts create mode 100644 library-kotlin/src/main/java/com/ncorti/kotlin/template/library/FactorialCalculator.kt create mode 100644 library-kotlin/src/test/java/com/ncorti/kotlin/template/library/FactorialCalculatorTest.kt create mode 100644 renovate.json create mode 100644 settings.gradle.kts diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..6dd8404 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,24 @@ +--- +name: Bug report +about: Create a report to help us improve +--- + +## 🐛 Describe the bug + + +## ⚠️ Current behavior + + +## ✅ Expected behavior + + +## 💣 Steps to reproduce + + +## 📷 Screenshots + + +## 📱 Tech info + - Device: + - OS: + - Library/App version: diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..b93222d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,15 @@ +--- +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 + + +## 🤚 Do you want to develop this feature yourself? + +- [ ] Yes +- [ ] No diff --git a/.github/PULL_REQUEST_TEMPLATE b/.github/PULL_REQUEST_TEMPLATE new file mode 100644 index 0000000..2c4bc46 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE @@ -0,0 +1,29 @@ + + +## 🚀 Description + + +## 📄 Motivation and Context + + + +## 🧪 How Has This Been Tested? + + + + +## 📷 Screenshots (if appropriate) + + +## 📦 Types of changes + +- [ ] Bug fix (non-breaking change which fixes an issue) +- [ ] New feature (non-breaking change which adds functionality) +- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) + +## ✅ Checklist + + +- [ ] My code follows the code style of this project. +- [ ] My change requires a change to the documentation. +- [ ] I have updated the documentation accordingly. \ No newline at end of file diff --git a/.github/template-cleanup/README.md b/.github/template-cleanup/README.md new file mode 100644 index 0000000..3d82f26 --- /dev/null +++ b/.github/template-cleanup/README.md @@ -0,0 +1,12 @@ +# %NAME% + +![Build](https://github.com/%REPOSITORY%/workflows/Pre%20Merge%20Checks/badge.svg) + +This is your new Kotlin Android Project! Happy hacking! + +## Template ToDo list 👣 + +- [x] Create a new template project. +- [ ] Choose a [LICENSE](https://github.com/%REPOSITORY%/community/license/new?branch=main). +- [ ] Set your `ORG_GRADLE_PROJECT_NEXUS_USERNAME`, `ORG_GRADLE_PROJECT_NEXUS_PASSWORD`, `ORG_GRADLE_PROJECT_SIGNING_KEY` and `ORG_GRADLE_PROJECT_SIGNING_PWD` secrets in [Settings](https://github.com/%REPOSITORY%/settings/secrets/actions). +- [ ] Code some cool apps and libraries 🚀. diff --git a/.github/workflows/cleanup.yaml b/.github/workflows/cleanup.yaml new file mode 100644 index 0000000..8fe31cc --- /dev/null +++ b/.github/workflows/cleanup.yaml @@ -0,0 +1,44 @@ +# GitHub Actions Workflow responsible for cleaning up the template repository from +# the template-specific files and configurations. This workflow is supposed to be triggered automatically +# when a new template-based repository has been created. + +name: Template Cleanup +on: + push: + branches: + - main + +jobs: + template-cleanup: + name: Template Cleanup + runs-on: ubuntu-latest + if: github.event.repository.name != 'kotlin-android-template' + steps: + + # Check out current repository + - name: Fetch Sources + uses: actions/checkout@v4 + # Setup Java + - uses: actions/setup-java@v4 + with: + distribution: 'zulu' + java-version: '17' + # Setup Gradle + - name: Setup Gradle + uses: gradle/gradle-build-action@v2 + # Cleanup project + - name: Cleanup + run: ./gradlew templateCleanup + # Commit modified files + - name: Commit files + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git add . + git commit -m "Template cleanup" + # Push changes + - name: Push changes + uses: ad-m/github-push-action@v0.8.0 + with: + branch: main + github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/gradle-wrapper-validation.yml b/.github/workflows/gradle-wrapper-validation.yml new file mode 100644 index 0000000..7304803 --- /dev/null +++ b/.github/workflows/gradle-wrapper-validation.yml @@ -0,0 +1,19 @@ +name: Validate Gradle Wrapper +on: + push: + branches: + - main + pull_request: + branches: + - '*' + +jobs: + validation: + name: Validation + runs-on: ubuntu-latest + steps: + - name: Checkout latest code + uses: actions/checkout@v4 + - name: Validate Gradle Wrapper + uses: gradle/wrapper-validation-action@v1 + diff --git a/.github/workflows/pre-merge.yaml b/.github/workflows/pre-merge.yaml new file mode 100644 index 0000000..863e787 --- /dev/null +++ b/.github/workflows/pre-merge.yaml @@ -0,0 +1,32 @@ +name: Pre Merge Checks + +on: + push: + branches: + - main + pull_request: + branches: + - "*" + +jobs: + gradle: + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + if: ${{ !contains(github.event.head_commit.message, 'ci skip') }} + steps: + - name: Checkout Repo + uses: actions/checkout@v4 + + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: "zulu" + java-version: "17" + + - name: Setup Gradle + uses: gradle/gradle-build-action@v2 + + - name: Run Gradle + run: ./gradlew build publishToMavenLocal --continue diff --git a/.github/workflows/publish-release.yaml b/.github/workflows/publish-release.yaml new file mode 100644 index 0000000..804837e --- /dev/null +++ b/.github/workflows/publish-release.yaml @@ -0,0 +1,48 @@ +name: Publish Release +on: + push: + tags: + - '*' + workflow_dispatch: + +jobs: + publish: + # remove this check when your secrets are setup and you're ready to publish + if: ${{ github.repository == 'cortinico/kotlin-android-template'}} + runs-on: [ubuntu-latest] + env: + GRADLE_OPTS: -Dorg.gradle.parallel=false + + steps: + + - name: Checkout Repo + uses: actions/checkout@v4 + + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: 'zulu' + java-version: '17' + + - name: Setup Gradle + uses: gradle/gradle-build-action@v2 + + - name: Publish to Maven Local + run: ./gradlew publishToMavenLocal + env: + ORG_GRADLE_PROJECT_SIGNING_KEY: ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_KEY }} + ORG_GRADLE_PROJECT_SIGNING_PWD: ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_PWD }} + + - name: Upload Build Artifacts + uses: actions/upload-artifact@v3 + with: + name: 'release-artifacts' + path: '~/.m2/repository/' + + - name: Publish to the Snapshot Repository + run: ./gradlew publishReleasePublicationToNexusRepository + env: + ORG_GRADLE_PROJECT_SIGNING_KEY: ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_KEY }} + ORG_GRADLE_PROJECT_SIGNING_PWD: ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_PWD }} + ORG_GRADLE_PROJECT_NEXUS_USERNAME: ${{ secrets.ORG_GRADLE_PROJECT_NEXUS_USERNAME }} + ORG_GRADLE_PROJECT_NEXUS_PASSWORD: ${{ secrets.ORG_GRADLE_PROJECT_NEXUS_PASSWORD }} \ No newline at end of file diff --git a/.github/workflows/publish-snapshot.yaml b/.github/workflows/publish-snapshot.yaml new file mode 100644 index 0000000..18ac062 --- /dev/null +++ b/.github/workflows/publish-snapshot.yaml @@ -0,0 +1,50 @@ +name: Publish Snapshot +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + publish: + # remove this check when your secrets are setup and you're ready to publish + if: ${{ github.repository == 'cortinico/kotlin-android-template'}} + runs-on: [ubuntu-latest] + env: + GRADLE_OPTS: -Dorg.gradle.parallel=false + + steps: + + - name: Checkout Repo + uses: actions/checkout@v4 + + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: 'zulu' + java-version: '17' + + - name: Setup Gradle + uses: gradle/gradle-build-action@v2 + + - name: Publish to Maven Local + run: ./gradlew publishToMavenLocal + env: + ORG_GRADLE_PROJECT_SIGNING_KEY: ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_KEY }} + ORG_GRADLE_PROJECT_SIGNING_PWD: ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_PWD }} + ORG_GRADLE_PROJECT_USE_SNAPSHOT: true + + - name: Upload Build Artifacts + uses: actions/upload-artifact@v3 + with: + name: 'snapshot-artifacts' + path: '~/.m2/repository/' + + - name: Publish to the Snapshot Repository + run: ./gradlew publishReleasePublicationToSnapshotRepository + env: + ORG_GRADLE_PROJECT_SIGNING_KEY: ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_KEY }} + ORG_GRADLE_PROJECT_SIGNING_PWD: ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_PWD }} + ORG_GRADLE_PROJECT_NEXUS_USERNAME: ${{ secrets.ORG_GRADLE_PROJECT_NEXUS_USERNAME }} + ORG_GRADLE_PROJECT_NEXUS_PASSWORD: ${{ secrets.ORG_GRADLE_PROJECT_NEXUS_PASSWORD }} + ORG_GRADLE_PROJECT_USE_SNAPSHOT: true \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..274db5b --- /dev/null +++ b/.gitignore @@ -0,0 +1,329 @@ + +# Created by https://www.toptal.com/developers/gitignore/api/macos,linux,gradle,windows,android,androidstudio,java,kotlin +# Edit at https://www.toptal.com/developers/gitignore?templates=macos,linux,gradle,windows,android,androidstudio,java,kotlin + +### Android ### +# Built application files +*.apk +*.aar +*.ap_ +*.aab + +# Files for the ART/Dalvik VM +*.dex + +# Java class files +*.class + +# Generated files +bin/ +gen/ +out/ +# Uncomment the following line in case you need and you don't have the release build type files in your app +# release/ + +# Gradle files +.gradle/ +build/ + +# Local configuration file (sdk path, etc) +local.properties + +# Proguard folder generated by Eclipse +proguard/ + +# Log Files +*.log + +# Android Studio Navigation editor temp files +.navigation/ + +# Android Studio captures folder +captures/ + +# IntelliJ +*.iml +.idea/workspace.xml +.idea/tasks.xml +.idea/gradle.xml +.idea/assetWizardSettings.xml +.idea/dictionaries +.idea/libraries +# Android Studio 3 in .gitignore file. +.idea/caches +.idea/modules.xml +# Comment next line if keeping position of elements in Navigation Editor is relevant for you +.idea/navEditor.xml + +# Keystore files +# Uncomment the following lines if you do not want to check your keystore files in. +#*.jks +#*.keystore + +# External native build folder generated in Android Studio 2.2 and later +.externalNativeBuild +.cxx/ + +# Google Services (e.g. APIs or Firebase) +# google-services.json + +# Freeline +freeline.py +freeline/ +freeline_project_description.json + +# fastlane +fastlane/report.xml +fastlane/Preview.html +fastlane/screenshots +fastlane/test_output +fastlane/readme.md + +# Version control +vcs.xml + +# lint +lint/intermediates/ +lint/generated/ +lint/outputs/ +lint/tmp/ +# lint/reports/ + +### Android Patch ### +gen-external-apklibs +output.json + +# Replacement of .externalNativeBuild directories introduced +# with Android Studio 3.5. + +### Java ### +# Compiled class file + +# Log file + +# BlueJ files +*.ctxt + +# Build release generated +*.txt + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.jar +*.war +*.nar +*.ear +*.zip +*.tar.gz +*.rar + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* + +### Kotlin ### +# Compiled class file + +# Log file + +# BlueJ files + +# Mobile Tools for Java (J2ME) + +# Package Files # + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml + +### Linux ### +*~ + +# temporary files which can be created if a process still has a handle open of a deleted file +.fuse_hidden* + +# KDE directory preferences +.directory + +# Linux trash folder which might appear on any partition or disk +.Trash-* + +# .nfs files are created when an open file is removed but is still being accessed +.nfs* + +### macOS ### +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +### Windows ### +# Windows thumbnail cache files +Thumbs.db +Thumbs.db:encryptable +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +### Gradle ### +.gradle + +# Ignore Gradle GUI config +gradle-app.setting + +# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) +!gradle-wrapper.jar + +# Cache of project +.gradletasknamecache + +# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898 +# gradle/wrapper/gradle-wrapper.properties + +### Gradle Patch ### +**/build/ + +### AndroidStudio ### +# Covers files to be ignored for android development using Android Studio. + +# Built application files + +# Files for the ART/Dalvik VM + +# Java class files + +# Generated files + +# Gradle files + +# Signing files +.signing/ + +# Local configuration file (sdk path, etc) + +# Proguard folder generated by Eclipse + +# Log Files + +# Android Studio +/*/build/ +/*/local.properties +/*/out +/*/*/build +/*/*/production +*.ipr +*.swp + +# Android Patch + +# External native build folder generated in Android Studio 2.2 and later + +# NDK +obj/ + +# IntelliJ IDEA +*.iws +/out/ + +# User-specific configurations +.idea/caches/ +.idea/libraries/ +.idea/shelf/ +.idea/.name +.idea/compiler.xml +.idea/copyright/profiles_settings.xml +.idea/encodings.xml +.idea/misc.xml +.idea/scopes/scope_settings.xml +.idea/vcs.xml +.idea/jsLibraryMappings.xml +.idea/datasources.xml +.idea/dataSources.ids +.idea/sqlDataSources.xml +.idea/dynamic.xml +.idea/uiDesigner.xml + +# Below 2 lines added manually for this project +.idea/.gitignore +.idea/jarRepositories.xml + +# static analysis plugins +.idea/sonarlint/ +.idea/checkstyle-idea.xml + +# OS-specific files +.DS_Store? + +# Legacy Eclipse project files +.classpath +.project +.cproject +.settings/ + +# Mobile Tools for Java (J2ME) + +# Package Files # + +# virtual machine crash logs (Reference: http://www.java.com/en/download/help/error_hotspot.xml) + +## Plugin-specific files: + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Mongo Explorer plugin +.idea/mongoSettings.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +### AndroidStudio Patch ### + +!/gradle/wrapper/gradle-wrapper.jar + +# End of https://www.toptal.com/developers/gitignore/api/macos,linux,gradle,windows,android,androidstudio,java,kotlin \ No newline at end of file diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml new file mode 100644 index 0000000..5fb25e2 --- /dev/null +++ b/.idea/codeStyles/Project.xml @@ -0,0 +1,139 @@ + + + + + + + + + + + +
+ + + + 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 0000000..79ee123 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/icon.png b/.idea/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..e96783ccce844001359f968f5cd9d85b341bd3fb GIT binary patch literal 16570 zcmZvEWmH>D)b2?jxVyVsk)p-j-5rV+cZc8GGY5%N`)qq>0%lm8H1uS zrdQ3<#fnm=+YqTy#qn+McW{6Nihq7Z%e?^;q5A?s$#eedqJriK_0fw%PWwIn2(QJCG|R zma%s1hZS$wg$RPFr;`@@oHqFnTgJs^f|N}7y)BROi2PG7Z`I^f3&-^cBK>#d0vX|3BeajwXf_ z)j5U~=eY+eVY^!~Xi7h8=*EXHwV9nP};_?~c{#{?CH^oz@I@oeyA*pCWq zw2e#6in8t6VUg~3Fa&usGc3uUi`HwI8+pFV13Xc|MXc`&C~b;JS1rj~QNxgMew1nB z4D7_d;*5Jbetta2!F8;T+(Ah#V>?ty2MFS6m6!<7mjssNi9{{Jd6I@mONNHezENXl zm{#X~@>eZ-wi)$l+aKLnZ2t9gmg+|&I7jf48W7C)9)&jHBVmI}LsCPnYKEx&wW^VE zk_3I6Gz;n!XV3;6E?$whGo9~QBJ*mamzN?lAAM2Z4##_ND)HcXvtF(%>8NKz?UEE7 z?rLi929wAH*}Huek?7#OH9uDR4r4^!8 z!+gxw8yooRJ9R2gT&#u1ip(KfX%ZPD1Itr{km7v6<~ij(mB;Bl>MGf)sg^~Y0&dEE z#jWUQy1G&(W2h^+1%V_jB8^WDOj>ccmDoPAwDo4W>ZW)X17o$#|!LpDQEjR{+@%F;CNwQpbc zB&8N0M*~3Y(j31o2D+X~GVwA~fpbLt){>Oy*EQ|ti6O=2AeMa0bkTZp=5}8qH9C+Q z)!f4wQMt#uQe08Zq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du_o-^z|EMGsq5o{*a}_fvqV6DE*%tI>di|fTDWCX| z`_+7q7?x4@{q~2^*!9RR2biZSye6`b`sB(H^Zb6ovX9b@#D5(biRodW_yZvZ)tyqf z1amz!T**d2(NMWf>>o;VtSd2*^y1uA|H)@U3}I_*ncL-%gRjGvda-)jXDud|L2+jT zQbA#bKL@)*dt31@{%~_fx&6_tQ7;VV^JqRCA#iQppUi)0bkRz3Ay2#eWQvmCG#RY{ zYm$~BtG|)0h0`_~!?xoc!vOPSL?>-ebef z!i7>Tf;{u=k~zl)n!=Y5Fz!w)sV$;dzmme`^|TmmsbL%Zcu> zZ)H4KiklB{_n7KziFNl1|IClB zP%IL<_pAOBU`}y5T-Ikjvj@Y-r)eiG6>!pjOyTDVwH&{rSD75)Q2KZ-JFsaleEw3; z`cP1`%VM!O=86iIRCBvT6WU2sy9m$9AKyGQVhJnk;S--&}4|e zN literal 0 HcmV?d00001 diff --git a/.idea/icon_dark.png b/.idea/icon_dark.png new file mode 100644 index 0000000000000000000000000000000000000000..e96783ccce844001359f968f5cd9d85b341bd3fb GIT binary patch literal 16570 zcmZvEWmH>D)b2?jxVyVsk)p-j-5rV+cZc8GGY5%N`)qq>0%lm8H1uS zrdQ3<#fnm=+YqTy#qn+McW{6Nihq7Z%e?^;q5A?s$#eedqJriK_0fw%PWwIn2(QJCG|R zma%s1hZS$wg$RPFr;`@@oHqFnTgJs^f|N}7y)BROi2PG7Z`I^f3&-^cBK>#d0vX|3BeajwXf_ z)j5U~=eY+eVY^!~Xi7h8=*EXHwV9nP};_?~c{#{?CH^oz@I@oeyA*pCWq zw2e#6in8t6VUg~3Fa&usGc3uUi`HwI8+pFV13Xc|MXc`&C~b;JS1rj~QNxgMew1nB z4D7_d;*5Jbetta2!F8;T+(Ah#V>?ty2MFS6m6!<7mjssNi9{{Jd6I@mONNHezENXl zm{#X~@>eZ-wi)$l+aKLnZ2t9gmg+|&I7jf48W7C)9)&jHBVmI}LsCPnYKEx&wW^VE zk_3I6Gz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LL@mXq4aWychS&o?VRf#rE6kC+$$+&hc{5Ne&rE zKG|$k`5GkOiPLU(lSo^{Q#V7u0_lhrk<7lbL3+cBEOOd#XAriVQ@+3@qb}HTuxDN^ zv)x~#Gl4^0lq>p%{FmcY(?u8ya3Ob@ZAm+CMJb$UAy`5y=AFaNgH_Z;QYHA=<Los^P4615`ATU{7m+Ws9*b#7eE9VF@ST`9htx%yTH(kV3I7kb02<`cmiAxi=ap zua~WEG}`!eGE}=q%y=89y43C4XRnVW=FdjNVxz7JFGwdm?bP{NF+*)u%aau!f4++P z?!4AP)CnETRq)m?R_BW^@s)du_o-^z|EMGsq5o{*a}_fvqV6DE*%tI>di|fTDWCX| z`_+7q7?x4@{q~2^*!9RR2biZSye6`b`sB(H^Zb6ovX9b@#D5(biRodW_yZvZ)tyqf z1amz!T**d2(NMWf>>o;VtSd2*^y1uA|H)@U3}I_*ncL-%gRjGvda-)jXDud|L2+jT zQbA#bKL@)*dt31@{%~_fx&6_tQ7;VV^JqRCA#iQppUi)0bkRz3Ay2#eWQvmCG#RY{ zYm$~BtG|)0h0`_~!?xoc!vOPSL?>-ebef z!i7>Tf;{u=k~zl)n!=Y5Fz!w)sV$;dzmme`^|TmmsbL%Zcu> zZ)H4KiklB{_n7KziFNl1|IClB zP%IL<_pAOBU`}y5T-Ikjvj@Y-r)eiG6>!pjOyTDVwH&{rSD75)Q2KZ-JFsaleEw3; z`cP1`%VM!O=86iIRCBvT6WU2sy9m$9AKyGQVhJnk;S--&}4|e zN literal 0 HcmV?d00001 diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..1b795d0 --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2020 + +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. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..b5e076c --- /dev/null +++ b/README.md @@ -0,0 +1,114 @@ +# kotlin-android-template 🤖 + +[![Use this template](https://img.shields.io/badge/from-kotlin--android--template-brightgreen?logo=dropbox)](https://github.com/cortinico/kotlin-android-template/generate) ![Pre Merge Checks](https://github.com/cortinico/kotlin-android-template/workflows/Pre%20Merge%20Checks/badge.svg) ![License](https://img.shields.io/github/license/cortinico/kotlin-android-template.svg) ![Language](https://img.shields.io/github/languages/top/cortinico/kotlin-android-template?color=blue&logo=kotlin) + +A simple Github template that lets you create an **Android/Kotlin** project and be up and running in a **few seconds**. + +This template is focused on delivering a project with **static analysis** and **continuous integration** already in place. + +## How to use 👣 + +Just click on [![Use this template](https://img.shields.io/badge/-Use%20this%20template-brightgreen)](https://github.com/cortinico/kotlin-android-template/generate) button to create a new repo starting from this template. + +Once created don't forget to update the: +- [App ID](buildSrc/src/main/java/Coordinates.kt) +- AndroidManifest ([here](app/src/main/AndroidManifest.xml) and [here](library-compose/src/main/AndroidManifest.xml)) +- Package of the source files + +## Features 🎨 + +- **100% Kotlin-only template**. +- 4 Sample modules (Android app, Android library, Kotlin library, Jetpack Compose Activity). +- Jetpack Compose setup ready to use. +- Sample Espresso, Instrumentation & JUnit tests. +- 100% Gradle Kotlin DSL setup. +- CI Setup with GitHub Actions. +- Publish to **Maven Central** with Github Actions. +- Dependency versions managed via `buildSrc`. +- Kotlin Static Analysis via `detekt` and `ktlint`. +- Issues Template (bug report + feature request). +- Pull Request Template. + +## Troubleshooting + +For help with issues which you might encounter when using this template, please refer to [TROUBLESHOOTING.md](TROUBLESHOOTING.md) + +## Gradle Setup 🐘 + +This template is using [**Gradle Kotlin DSL**](https://docs.gradle.org/current/userguide/kotlin_dsl.html) as well as the [Plugin DSL](https://docs.gradle.org/current/userguide/plugins.html#sec:plugins_block) to setup the build. + +Dependencies are centralized inside the Gradle Version Catalog in the [libs.versions.toml](gradle/libs.versions.toml) file in the `gradle` folder. + +## Static Analysis 🔍 + +This template is using [**detekt**](https://github.com/detekt/detekt) to analyze the source code, with the configuration that is stored in the [detekt.yml](config/detekt/detekt.yml) file (the file has been generated with the `detektGenerateConfig` task). It also uses the **detekt-formatting** plugin which includes the ktlint rules (see https://detekt.dev/docs/rules/formatting/). + +## CI ⚙️ + +This template is using [**GitHub Actions**](https://github.com/cortinico/kotlin-android-template/actions) as CI. You don't need to setup any external service and you should have a running CI once you start using this template, just make sure that you turn on the "Read and Write permissions" on the Action Settings of your repository. + +There are currently the following workflows available: +- [Validate Gradle Wrapper](.github/workflows/gradle-wrapper-validation.yml) - Will check that the gradle wrapper has a valid checksum +- [Pre Merge Checks](.github/workflows/pre-merge.yaml) - Will run the `build`, `check` and `publishToMavenLocal` tasks. +- [Publish Snapshot](.github/workflows/publish-snapshot.yaml) - Will publish a `-SNAPSHOT` of the libraries to Sonatype. +- [Publish Release](.github/workflows/publish-release.yaml) - Will publish a new release version of the libraries to Maven Central on tag pushes. + +## Publishing 🚀 + +The template is setup to be **ready to publish** a library/artifact on a Maven Repository. + +For every module you want to publish you simply have to add the `publish` plugin: + +``` +plugins { + publish +} +``` + +### To Maven Central + +In order to use this template to publish on Maven Central, you need to configure some secrets on your repository: + +| Secret name | Value | +| --- | --- | +| `ORG_GRADLE_PROJECT_NEXUS_USERNAME` | The username you use to access Sonatype's services (such as [Nexus](https://oss.sonatype.org/) and [Jira](https://issues.sonatype.org/)) | +| `ORG_GRADLE_PROJECT_NEXUS_PASSWORD` | The password you use to access Sonatype's services (such as [Nexus](https://oss.sonatype.org/) and [Jira](https://issues.sonatype.org/)) | +| `ORG_GRADLE_PROJECT_SIGNING_KEY` | The GPG Private key to sign your artifacts. You can obtain it with `gpg --armor --export-secret-keys ` or you can create one key online on [pgpkeygen.com](https://pgpkeygen.com). The key starts with a `-----BEGIN PGP PRIVATE KEY BLOCK-----`. | +| `ORG_GRADLE_PROJECT_SIGNING_PWD` | The passphrase to unlock your private key (you picked it when creating the key). | + +The template already attaches `-sources.jar` to your publications via the new AGP publishing DSL. + +Once set up, the following workflows will take care of publishing: + +- [Publish Snapshot](.github/workflows/publish-snapshot.yaml) - To publish `-SNAPSHOT` versions to Sonatype. The workflow is setup to run either manually (with `workflow_dispatch`) or on every merge. +- [Publish Release](.github/workflows/publish-release.yaml) - Will publish a new release version of the libraries to Maven Central on tag pushes. You can trigger the workflow also manually if needed. + +### To Jitpack + +If you're using [JitPack](https://jitpack.io/), you don't need any further configuration and you can just configure the repo on JitPack. + +You probably want to disable the [Publish Snapshot] and [Publish Release](.github/workflows/publish-release.yaml) workflows (delete the files), as Jitpack will take care of that for you. + +## Project Structure + +The project includes three sub-projects, each in their own subdirectories: + +- **`app`:** The source for the final Android application. +- **`library-android`:** The source for an Android library including UI. +- **`library-kotlin`:** The source for a UI-less Kotlin library. +- **`library-compose`:** The source for a UI library with Jetpack Compose library. + +The following additional top-level directories configure & support building the app & projects: + +- **`buildSrc`:** Contains shared Gradle logic as [precompiled script plugins](https://docs.gradle.org/current/userguide/custom_plugins.html#sec:precompiled_plugins) +- **`config`:** Contains the [Detekt configuration file](https://detekt.dev/docs/introduction/configurations/). +- **`gradle`:** Contains Gradle Configuration files such as the Gradle Version Catalog and the [Gradle Wrapper](https://docs.gradle.org/current/userguide/gradle_wrapper.html). + +Finally, the following hidden top-level directories provide functionality for specific development systems: + +- **`.github`:** Defines the [Github Actions](https://github.com/features/actions) CI tasks and templates for new pull requests, issues, etc. +- **`.idea`:** Sets common initial project settings when the project is opened in [Android Studio](https://developer.android.com/studio) or [IntelliJ IDEA](https://www.jetbrains.com/idea/). + +## Contributing 🤝 + +Feel free to open a issue or submit a pull request for any bugs/improvements. diff --git a/TROUBLESHOOTING.md b/TROUBLESHOOTING.md new file mode 100644 index 0000000..69b2aea --- /dev/null +++ b/TROUBLESHOOTING.md @@ -0,0 +1,27 @@ +# agp incompatibility with IntelliJ IDEA + +Opening this template in IDEA might result in an error like this: + +``` +The project is using an incompatible version (AGP 8.0.0) of the Android Gradle plugin. Latest supported version is AGP 7.4.0 +``` + +This is caused by IDEA support for AGP lagging behind releases of AGP and is tracked by bugs like https://youtrack.jetbrains.com/issue/IDEA-317997. + +To get this working in the mean time, you can downgrade the version of `agp` in `libs.versions.toml` to a supported version. + +# Use correct JVM version + +This template requires you to have the correct JDK version in your path. Check which version you have by running `java --version` in a terminal. This should match the version specified in the Gradle build files e.g.: +``` + kotlinOptions { + jvmTarget = JavaVersion.VERSION_17.toString() + } +``` +If you use a JVM which is too new, you may see an error like this: +``` +FAILURE: Build failed with an exception. +* What went wrong: +Execution failed for task ':library-compose:detekt'. +> Invalid value (20) passed to --jvm-target, must be one of [1.6, 1.8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18] +``` \ No newline at end of file diff --git a/app/build.gradle.kts b/app/build.gradle.kts new file mode 100644 index 0000000..2bff1f3 --- /dev/null +++ b/app/build.gradle.kts @@ -0,0 +1,73 @@ +plugins { + id("com.android.application") + kotlin("android") +} + +android { + compileSdk = libs.versions.compile.sdk.version.get().toInt() + + defaultConfig { + minSdk = libs.versions.min.sdk.version.get().toInt() + namespace = "com.ncorti.kotlin.template.app" + + applicationId = AppCoordinates.APP_ID + versionCode = AppCoordinates.APP_VERSION_CODE + versionName = AppCoordinates.APP_VERSION_NAME + testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" + } + buildFeatures { + viewBinding = true + } + compileOptions { + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 + } + kotlinOptions { + jvmTarget = JavaVersion.VERSION_17.toString() + } + buildTypes { + getByName("release") { + isMinifyEnabled = false + proguardFiles( + getDefaultProguardFile("proguard-android-optimize.txt"), + "proguard-rules.pro" + ) + } + } + + lint { + warningsAsErrors = true + abortOnError = true + disable.add("GradleDependency") + } + + // Use this block to configure different flavors +// flavorDimensions("version") +// productFlavors { +// create("full") { +// dimension = "version" +// applicationIdSuffix = ".full" +// } +// create("demo") { +// dimension = "version" +// applicationIdSuffix = ".demo" +// } +// } +} + +dependencies { + implementation(projects.libraryAndroid) + implementation(projects.libraryCompose) + implementation(projects.libraryKotlin) + + implementation(libs.androidx.appcompat) + implementation(libs.androidx.constraint.layout) + implementation(libs.androidx.core.ktx) + + testImplementation(libs.junit) + + androidTestImplementation(libs.androidx.test.ext.junit) + androidTestImplementation(libs.androidx.test.ext.junit.ktx) + androidTestImplementation(libs.androidx.test.rules) + androidTestImplementation(libs.espresso.core) +} diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro new file mode 100644 index 0000000..2f9dc5a --- /dev/null +++ b/app/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle.kts. +# +# 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 diff --git a/app/src/androidTest/java/com/ncorti/kotlin/template/app/MainActivityTest.kt b/app/src/androidTest/java/com/ncorti/kotlin/template/app/MainActivityTest.kt new file mode 100644 index 0000000..83a35b5 --- /dev/null +++ b/app/src/androidTest/java/com/ncorti/kotlin/template/app/MainActivityTest.kt @@ -0,0 +1,31 @@ +package com.ncorti.kotlin.template.app + +import androidx.test.espresso.Espresso.onView +import androidx.test.espresso.action.ViewActions.click +import androidx.test.espresso.action.ViewActions.closeSoftKeyboard +import androidx.test.espresso.action.ViewActions.typeText +import androidx.test.espresso.assertion.ViewAssertions.matches +import androidx.test.espresso.matcher.ViewMatchers.isDisplayed +import androidx.test.espresso.matcher.ViewMatchers.withId +import androidx.test.espresso.matcher.ViewMatchers.withText +import androidx.test.ext.junit.rules.activityScenarioRule +import androidx.test.ext.junit.runners.AndroidJUnit4 +import org.junit.Rule +import org.junit.Test +import org.junit.runner.RunWith + +@RunWith(AndroidJUnit4::class) +class MainActivityTest { + + @get:Rule + val rule = activityScenarioRule() + + @Test + fun typeANumber_resultIsDisplayed() { + onView(withId(R.id.edit_text_factorial)).perform(typeText("1"), closeSoftKeyboard()) + onView(withId(R.id.button_compute)).perform(click()) + + onView(withId(R.id.text_result)).check(matches(isDisplayed())) + onView(withId(R.id.text_result)).check(matches(withText("1"))) + } +} diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..ddf8326 --- /dev/null +++ b/app/src/main/AndroidManifest.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + diff --git a/app/src/main/java/com/ncorti/kotlin/template/app/MainActivity.kt b/app/src/main/java/com/ncorti/kotlin/template/app/MainActivity.kt new file mode 100644 index 0000000..dc8142a --- /dev/null +++ b/app/src/main/java/com/ncorti/kotlin/template/app/MainActivity.kt @@ -0,0 +1,43 @@ +package com.ncorti.kotlin.template.app + +import android.content.Intent +import android.os.Bundle +import android.view.View +import androidx.appcompat.app.AppCompatActivity +import com.ncorti.kotlin.template.app.databinding.ActivityMainBinding +import com.ncorti.kotlin.template.library.FactorialCalculator +import com.ncorti.kotlin.template.library.android.ToastUtil + +class MainActivity : AppCompatActivity() { + + private lateinit var binding: ActivityMainBinding + + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + binding = ActivityMainBinding.inflate(layoutInflater) + setContentView(binding.root) + + binding.buttonCompute.setOnClickListener { + val message = if (binding.editTextFactorial.text.isNotEmpty()) { + val input = binding.editTextFactorial.text.toString().toLong() + val result = try { + FactorialCalculator.computeFactorial(input).toString() + } catch (ex: IllegalStateException) { + "Error: ${ex.message}" + } + + binding.textResult.text = result + binding.textResult.visibility = View.VISIBLE + getString(R.string.notification_title, result) + } else { + getString(R.string.please_enter_a_number) + } + ToastUtil.showToast(this, message) + } + + binding.buttonAppcompose.setOnClickListener { + val intent = Intent(it.context, ComposeActivity::class.java) + startActivity(intent) + } + } +} 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 0000000..2b068d1 --- /dev/null +++ b/app/src/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + \ No newline at end of file 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 0000000..07d5da9 --- /dev/null +++ b/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000..cc49eb8 --- /dev/null +++ b/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + +