Skip to content

Commit

Permalink
1.1.0 (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nek-12 authored May 30, 2024
2 parents 56f2eb6 + c99f0db commit ae89f0d
Show file tree
Hide file tree
Showing 29 changed files with 371 additions and 229 deletions.
44 changes: 44 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
name: Bug report
about: Report a bug or an issue with existing features
title: "[\U0001F41E] "
labels: bug, triage
assignees: Nek-12

---

### Description (required):
<sup>describe the difference between expected and actual behavior, if not evident</sup>



### Steps to reproduce (required)
Steps to reproduce the behavior:

1. ...

---

<details>
<summary>Stacktrace (if applicable):</summary>

```plaintext
```

</details>

---

<details>
<summary>Relevant code:</summary>

```kotlin

```

</details>

---

- [ ] This issue hasn't been reported already
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Feature request
about: Suggest an idea for this project
title: "[\U0001F680] "
labels: feature, triage
assignees: Nek-12

---

### Description (required)
<sup>describe what you are trying to solve and what is missing</sup>

---

<details>
<summary>Relevant code (if applicable):</summary>

```kotlin

```

</details>

---

- [ ] This issue hasn't been reported already
12 changes: 12 additions & 0 deletions .github/ISSUE_TEMPLATE/something-else.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: Something else
about: Ask a question, request documentation, or something else
title: "[❔] "
labels: question, triage
assignees: Nek-12

---

---

- [ ] This question or issue hasn't been asked or reported already via Discussions or Issues
57 changes: 57 additions & 0 deletions .github/changelog_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"template" : "#{{CHANGELOG}}",
"pr_template" : "- #{{TITLE_ONLY}}",
"trim_values" : true,
"categories" : [
{
"title" : "## 🚀 New Features",
"labels" : [
"feat",
"feature"
]
},
{
"title" : "## 🧨 Api Changes",
"labels" : [
"feat!",
"breaking",
"api"
]
},
{
"title" : "## 🐞 Bug Fixes",
"labels" : [
"fix",
"bug"
]
},
{
"title" : "## ❔ Other",
"labels" : []
},
{
"title" : "## 📚 Docs",
"labels" : [
"doc",
"docs"
]
}
],
"custom_placeholders" : [
{
"name" : "TITLE_ONLY",
"source" : "TITLE",
"transformer" : {
"method" : "regexr",
"pattern" : "(\\w+(\\(.+\\))?: ?)?(.+)",
"target" : "$2"
}
}
],
"label_extractor" : [
{
"pattern" : "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\\([\\w\\-\\.]+\\))?(!)?: ([\\w ])+([\\s\\S]*)",
"target" : "$1"
}
]
}
25 changes: 15 additions & 10 deletions .github/ci-gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 -XX:+UseParallelGC
org.gradle.jvmargs=-Xmx3g -Xms1g -XX:+UseParallelGC -XX:+UseStringDeduplication -Dfile.encoding=UTF-8
kotlin.daemon.jvmargs=-Xmx3g -Xms1g -XX:+UseParallelGC -XX:+UseStringDeduplication -XX:MaxMetaspaceSize=1g
android.useAndroidX=true
kotlin.code.style=official
org.gradle.caching=true
org.gradle.parallel=true
android.enableR8.fullMode=true
org.gradle.configureondemand=true
android.enableJetifier=false
Expand All @@ -10,14 +13,16 @@ android.experimental.enableSourceSetPathsMap=true
android.experimental.cacheCompileLibResources=true
kotlin.mpp.enableCInteropCommonization=true
kotlin.mpp.stability.nowarn=true
kotlin.mpp.androidSourceSetLayoutVersion=2
android.nonFinalResIds=true
kotlin.mpp.androidGradlePluginCompatibility.nowarn=true
# changed
org.gradle.caching=true
org.gradle.parallel=true
warningsAsErrors=true
org.gradle.daemon=false
org.gradle.workers.max=2
org.gradle.unsafe.configuration-cache=false
org.gradle.unsafe.configuration-cache=true
kotlin.mpp.androidSourceSetLayoutVersion=2
android.disableResourceValidation=false
org.gradle.daemon=true
android.nonFinalResIds=true
kotlin.native.ignoreIncorrectDependencies=true
kotlinx.atomicfu.enableJvmIrTransformation=true
org.jetbrains.compose.experimental.macos.enabled=true
org.gradle.configuration-cache.problems=warn
nl.littlerobots.vcu.resolver=true
org.gradle.console=plain
CI=true
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
16 changes: 16 additions & 0 deletions .github/workflows/assign_self.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Assign self to PR

on:
pull_request:
types: [ opened ]
branches:
- master
- main

jobs:
assign_author:
runs-on: ubuntu-latest
steps:
- uses: samspills/[email protected]
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
27 changes: 27 additions & 0 deletions .github/workflows/autotag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Auto-tag
on:
pull_request:
types:
- closed
branches:
- master

jobs:
build:
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'autorelease')
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.merge_commit_sha }}
fetch-depth: '0'

- name: Bump version and push tag
uses: anothrNick/github-tag-action@v1
env:
GITHUB_TOKEN: ${{ secrets.OPENSOURCE_PAT }} # Use PAT to trigger workflows
CUSTOM_TAG: ${{ github.event.pull_request.title }}
WITH_V: false
PRERELEASE: false
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
Expand All @@ -26,15 +26,15 @@ jobs:
run: echo "$LOCAL_PROPERTIES" > local.properties

- name: set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'zulu'
check-latest: true
java-version: 21
cache: 'gradle'

- name: Validate gradle wrapper
uses: gradle/wrapper-validation-action@v1
uses: gradle/wrapper-validation-action@v3

- uses: maxim-lobanov/setup-xcode@v1
with:
Expand All @@ -44,7 +44,7 @@ jobs:
run: ./gradlew detektAll

- name: Build
run: ./gradlew assemble --stacktrace
run: ./gradlew assemble --stacktrace --no-configuration-cache

- name: Unit tests
run: ./gradlew allTests --stacktrace
run: ./gradlew allTests --stacktrace --no-configuration-cache
12 changes: 6 additions & 6 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ jobs:

runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties

- name: set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'zulu'
check-latest: true
Expand All @@ -44,19 +44,19 @@ jobs:
run: cp ./README.md ./docs/README.md

- name: Generate docs
run: ./gradlew dokkaHtmlMultiModule --no-configuration-cache -Pkotlin.mpp.enableCInteropCommonization=false
run: ./gradlew :dokkaHtmlMultiModule --no-configuration-cache

- name: Move docs to the parent docs dir
run: cp -r ./build/dokka/htmlMultiModule/ ./docs/javadocs/

- name: Setup Pages
uses: actions/configure-pages@v3
uses: actions/configure-pages@v5

- name: Upload pages
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
path: './docs/'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4
33 changes: 29 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: publish
name: Publishing

on:
push:
Expand All @@ -12,15 +12,16 @@ concurrency:
jobs:
publish:
runs-on: macos-latest
environment: publishing

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties

- name: set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'zulu'
check-latest: true
Expand All @@ -43,4 +44,28 @@ jobs:
env:
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
run: ./gradlew publishAllPublicationsToSonatypeRepository --stacktrace
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
# It's important to not upload in parallel or duplicate repos will be created
# repository creds are broken with gradle 8.6 https://github.com/gradle/gradle/issues/24040
run: ./gradlew publishAllPublicationsToSonatypeRepository -Dorg.gradle.parallel=false --stacktrace --no-configuration-cache

- name: Generate Changelog
uses: mikepenz/release-changelog-builder-action@v4
id: build_changelog
with:
commitMode: true
configuration: ".github/changelog_config.json"

- name: Create GH release
uses: ncipollo/[email protected]
id: create_release
with:
draft: true
artifactErrorsFailBuild: true
prerelease: false
artifacts: sample/build/outputs/apk/release/pro.respawn.flowmvi.sample.apk
body: ${{steps.build_changelog.outputs.changelog}}
tag: ${{ inputs.tag != '' && inputs.tag || github.ref_name }}
env:
GITHUB_TOKEN: ${{ github.token }}
6 changes: 6 additions & 0 deletions .idea/studiobot.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ plugins {
id("com.android.application")
kotlin("android")
id("kotlin-parcelize")
alias(libs.plugins.compose.compiler)
}

android {
configureAndroid(this)
configureAndroid()

namespace = "${Config.namespace}.sample"
compileSdk = Config.compileSdk
Expand All @@ -22,11 +23,7 @@ android {
compose = true
}
kotlinOptions {
freeCompilerArgs += Config.jvmCompilerArgs +
"-P" +
"plugin:androidx.compose.compiler.plugins.kotlin:suppressKotlinVersionCompatibilityCheck=true"
jvmTarget = Config.jvmTarget.target
languageVersion = Config.kotlinVersion.version
}
}

Expand Down
Loading

0 comments on commit ae89f0d

Please sign in to comment.