Skip to content

Commit ae89f0d

Browse files
authored
1.1.0 (#5)
2 parents 56f2eb6 + c99f0db commit ae89f0d

29 files changed

+371
-229
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
name: Bug report
3+
about: Report a bug or an issue with existing features
4+
title: "[\U0001F41E] "
5+
labels: bug, triage
6+
assignees: Nek-12
7+
8+
---
9+
10+
### Description (required):
11+
<sup>describe the difference between expected and actual behavior, if not evident</sup>
12+
13+
14+
15+
### Steps to reproduce (required)
16+
Steps to reproduce the behavior:
17+
18+
1. ...
19+
20+
---
21+
22+
<details>
23+
<summary>Stacktrace (if applicable):</summary>
24+
25+
```plaintext
26+
27+
```
28+
29+
</details>
30+
31+
---
32+
33+
<details>
34+
<summary>Relevant code:</summary>
35+
36+
```kotlin
37+
38+
```
39+
40+
</details>
41+
42+
---
43+
44+
- [ ] This issue hasn't been reported already
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: "[\U0001F680] "
5+
labels: feature, triage
6+
assignees: Nek-12
7+
8+
---
9+
10+
### Description (required)
11+
<sup>describe what you are trying to solve and what is missing</sup>
12+
13+
---
14+
15+
<details>
16+
<summary>Relevant code (if applicable):</summary>
17+
18+
```kotlin
19+
20+
```
21+
22+
</details>
23+
24+
---
25+
26+
- [ ] This issue hasn't been reported already
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
name: Something else
3+
about: Ask a question, request documentation, or something else
4+
title: "[❔] "
5+
labels: question, triage
6+
assignees: Nek-12
7+
8+
---
9+
10+
---
11+
12+
- [ ] This question or issue hasn't been asked or reported already via Discussions or Issues

.github/changelog_config.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"template" : "#{{CHANGELOG}}",
3+
"pr_template" : "- #{{TITLE_ONLY}}",
4+
"trim_values" : true,
5+
"categories" : [
6+
{
7+
"title" : "## 🚀 New Features",
8+
"labels" : [
9+
"feat",
10+
"feature"
11+
]
12+
},
13+
{
14+
"title" : "## 🧨 Api Changes",
15+
"labels" : [
16+
"feat!",
17+
"breaking",
18+
"api"
19+
]
20+
},
21+
{
22+
"title" : "## 🐞 Bug Fixes",
23+
"labels" : [
24+
"fix",
25+
"bug"
26+
]
27+
},
28+
{
29+
"title" : "## ❔ Other",
30+
"labels" : []
31+
},
32+
{
33+
"title" : "## 📚 Docs",
34+
"labels" : [
35+
"doc",
36+
"docs"
37+
]
38+
}
39+
],
40+
"custom_placeholders" : [
41+
{
42+
"name" : "TITLE_ONLY",
43+
"source" : "TITLE",
44+
"transformer" : {
45+
"method" : "regexr",
46+
"pattern" : "(\\w+(\\(.+\\))?: ?)?(.+)",
47+
"target" : "$2"
48+
}
49+
}
50+
],
51+
"label_extractor" : [
52+
{
53+
"pattern" : "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\\([\\w\\-\\.]+\\))?(!)?: ([\\w ])+([\\s\\S]*)",
54+
"target" : "$1"
55+
}
56+
]
57+
}

.github/ci-gradle.properties

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 -XX:+UseParallelGC
1+
org.gradle.jvmargs=-Xmx3g -Xms1g -XX:+UseParallelGC -XX:+UseStringDeduplication -Dfile.encoding=UTF-8
2+
kotlin.daemon.jvmargs=-Xmx3g -Xms1g -XX:+UseParallelGC -XX:+UseStringDeduplication -XX:MaxMetaspaceSize=1g
23
android.useAndroidX=true
34
kotlin.code.style=official
5+
org.gradle.caching=true
6+
org.gradle.parallel=true
47
android.enableR8.fullMode=true
58
org.gradle.configureondemand=true
69
android.enableJetifier=false
@@ -10,14 +13,16 @@ android.experimental.enableSourceSetPathsMap=true
1013
android.experimental.cacheCompileLibResources=true
1114
kotlin.mpp.enableCInteropCommonization=true
1215
kotlin.mpp.stability.nowarn=true
13-
kotlin.mpp.androidSourceSetLayoutVersion=2
14-
android.nonFinalResIds=true
1516
kotlin.mpp.androidGradlePluginCompatibility.nowarn=true
16-
# changed
17-
org.gradle.caching=true
18-
org.gradle.parallel=true
19-
warningsAsErrors=true
20-
org.gradle.daemon=false
21-
org.gradle.workers.max=2
22-
org.gradle.unsafe.configuration-cache=false
17+
org.gradle.unsafe.configuration-cache=true
18+
kotlin.mpp.androidSourceSetLayoutVersion=2
2319
android.disableResourceValidation=false
20+
org.gradle.daemon=true
21+
android.nonFinalResIds=true
22+
kotlin.native.ignoreIncorrectDependencies=true
23+
kotlinx.atomicfu.enableJvmIrTransformation=true
24+
org.jetbrains.compose.experimental.macos.enabled=true
25+
org.gradle.configuration-cache.problems=warn
26+
nl.littlerobots.vcu.resolver=true
27+
org.gradle.console=plain
28+
CI=true

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions" # See documentation for possible values
4+
directory: "/" # Location of package manifests
5+
schedule:
6+
interval: "weekly"

.github/workflows/assign_self.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Assign self to PR
2+
3+
on:
4+
pull_request:
5+
types: [ opened ]
6+
branches:
7+
- master
8+
- main
9+
10+
jobs:
11+
assign_author:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: samspills/assign-pr-to-author@v1.0.2
15+
with:
16+
repo-token: '${{ secrets.GITHUB_TOKEN }}'

.github/workflows/autotag.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Auto-tag
2+
on:
3+
pull_request:
4+
types:
5+
- closed
6+
branches:
7+
- master
8+
9+
jobs:
10+
build:
11+
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'autorelease')
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
ref: ${{ github.event.pull_request.merge_commit_sha }}
19+
fetch-depth: '0'
20+
21+
- name: Bump version and push tag
22+
uses: anothrNick/github-tag-action@v1
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.OPENSOURCE_PAT }} # Use PAT to trigger workflows
25+
CUSTOM_TAG: ${{ github.event.pull_request.title }}
26+
WITH_V: false
27+
PRERELEASE: false

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: macos-latest
1616

1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919

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

2828
- name: set up JDK
29-
uses: actions/setup-java@v3
29+
uses: actions/setup-java@v4
3030
with:
3131
distribution: 'zulu'
3232
check-latest: true
3333
java-version: 21
3434
cache: 'gradle'
3535

3636
- name: Validate gradle wrapper
37-
uses: gradle/wrapper-validation-action@v1
37+
uses: gradle/wrapper-validation-action@v3
3838

3939
- uses: maxim-lobanov/setup-xcode@v1
4040
with:
@@ -44,7 +44,7 @@ jobs:
4444
run: ./gradlew detektAll
4545

4646
- name: Build
47-
run: ./gradlew assemble --stacktrace
47+
run: ./gradlew assemble --stacktrace --no-configuration-cache
4848

4949
- name: Unit tests
50-
run: ./gradlew allTests --stacktrace
50+
run: ./gradlew allTests --stacktrace --no-configuration-cache

.github/workflows/docs.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ jobs:
1919

2020
runs-on: macos-latest
2121
steps:
22-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v4
2323

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

2727
- name: set up JDK
28-
uses: actions/setup-java@v3
28+
uses: actions/setup-java@v4
2929
with:
3030
distribution: 'zulu'
3131
check-latest: true
@@ -44,19 +44,19 @@ jobs:
4444
run: cp ./README.md ./docs/README.md
4545

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

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

5252
- name: Setup Pages
53-
uses: actions/configure-pages@v3
53+
uses: actions/configure-pages@v5
5454

5555
- name: Upload pages
56-
uses: actions/upload-pages-artifact@v1
56+
uses: actions/upload-pages-artifact@v3
5757
with:
5858
path: './docs/'
5959

6060
- name: Deploy to GitHub Pages
6161
id: deployment
62-
uses: actions/deploy-pages@v1
62+
uses: actions/deploy-pages@v4

.github/workflows/publish.yml

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: publish
1+
name: Publishing
22

33
on:
44
push:
@@ -12,15 +12,16 @@ concurrency:
1212
jobs:
1313
publish:
1414
runs-on: macos-latest
15+
environment: publishing
1516

1617
steps:
17-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1819

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

2223
- name: set up JDK
23-
uses: actions/setup-java@v3
24+
uses: actions/setup-java@v4
2425
with:
2526
distribution: 'zulu'
2627
check-latest: true
@@ -43,4 +44,28 @@ jobs:
4344
env:
4445
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
4546
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
46-
run: ./gradlew publishAllPublicationsToSonatypeRepository --stacktrace
47+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
48+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
49+
# It's important to not upload in parallel or duplicate repos will be created
50+
# repository creds are broken with gradle 8.6 https://github.com/gradle/gradle/issues/24040
51+
run: ./gradlew publishAllPublicationsToSonatypeRepository -Dorg.gradle.parallel=false --stacktrace --no-configuration-cache
52+
53+
- name: Generate Changelog
54+
uses: mikepenz/release-changelog-builder-action@v4
55+
id: build_changelog
56+
with:
57+
commitMode: true
58+
configuration: ".github/changelog_config.json"
59+
60+
- name: Create GH release
61+
uses: ncipollo/release-action@v1.14.0
62+
id: create_release
63+
with:
64+
draft: true
65+
artifactErrorsFailBuild: true
66+
prerelease: false
67+
artifacts: sample/build/outputs/apk/release/pro.respawn.flowmvi.sample.apk
68+
body: ${{steps.build_changelog.outputs.changelog}}
69+
tag: ${{ inputs.tag != '' && inputs.tag || github.ref_name }}
70+
env:
71+
GITHUB_TOKEN: ${{ github.token }}

.idea/studiobot.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle.kts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ plugins {
22
id("com.android.application")
33
kotlin("android")
44
id("kotlin-parcelize")
5+
alias(libs.plugins.compose.compiler)
56
}
67

78
android {
8-
configureAndroid(this)
9+
configureAndroid()
910

1011
namespace = "${Config.namespace}.sample"
1112
compileSdk = Config.compileSdk
@@ -22,11 +23,7 @@ android {
2223
compose = true
2324
}
2425
kotlinOptions {
25-
freeCompilerArgs += Config.jvmCompilerArgs +
26-
"-P" +
27-
"plugin:androidx.compose.compiler.plugins.kotlin:suppressKotlinVersionCompatibilityCheck=true"
2826
jvmTarget = Config.jvmTarget.target
29-
languageVersion = Config.kotlinVersion.version
3027
}
3128
}
3229

0 commit comments

Comments
 (0)