Skip to content

Commit

Permalink
Merge pull request #523 from nimblehq/release/3.24.0
Browse files Browse the repository at this point in the history
[Release] 3.24.0
  • Loading branch information
ryan-conway committed Oct 2, 2023
2 parents 832b35e + 0a6b800 commit e0136b9
Show file tree
Hide file tree
Showing 105 changed files with 561 additions and 404 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
timeout-minutes: 30
steps:
- name: Set up JDK 11
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
run: ./gradlew detekt

- name: Archive Detekt reports
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: DetektReports
path: build/reports/detekt/
Expand All @@ -51,7 +51,7 @@ jobs:
run: ./gradlew koverHtmlReport

- name: Archive code coverage reports
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: CodeCoverageReports
path: app/build/reports/kover/
Expand Down
2 changes: 1 addition & 1 deletion .cicdtemplate/.github/workflows/review_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
timeout-minutes: 30
steps:
- name: Set up JDK 11
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
Expand Down
6 changes: 3 additions & 3 deletions .cicdtemplate/.github/workflows/run_detekt_and_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
timeout-minutes: 30
steps:
- name: Set up JDK 11
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
run: ./gradlew detekt

- name: Archive Detekt reports
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: DetektReports
path: build/reports/detekt/
Expand All @@ -54,7 +54,7 @@ jobs:
run: ./gradlew koverHtmlReport

- name: Archive code coverage reports
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
if: always()
with:
name: CodeCoverageReports
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/review_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
environment: template-compose
steps:
- name: Set up JDK 11
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
Expand Down Expand Up @@ -47,6 +47,12 @@ jobs:

# template-compose

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'

- name: Run Detekt on template-compose
working-directory: ./template-compose
run: ./gradlew detekt
Expand Down
72 changes: 39 additions & 33 deletions .github/workflows/run_detekt_and_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '11'

- name: Checkout source code
uses: actions/checkout@v2.3.2

Expand All @@ -28,36 +22,20 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-
# template-xml

- name: Run Detekt on template-xml
working-directory: ./template-xml
run: ./gradlew detekt

- name: Archive Detekt reports on template-xml
uses: actions/upload-artifact@v2
with:
name: DetektReportsTemplateXML
path: template-xml/build/reports/detekt/

- name: Run unit tests with Kover on template-xml
working-directory: ./template-xml
run: ./gradlew koverHtmlReport
# template-compose

- name: Archive code coverage reports on template-xml
uses: actions/upload-artifact@v2
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
name: CodeCoverageReportsTemplateXML
path: template-xml/app/build/reports/kover/

# template-compose
distribution: 'temurin'
java-version: '17'

- name: Run Detekt on template-compose
working-directory: ./template-compose
run: ./gradlew detekt

- name: Archive Detekt reports on template-compose
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: DetektReportsTemplateCompose
path: template-compose/build/reports/detekt/
Expand All @@ -67,19 +45,47 @@ jobs:
run: ./gradlew koverHtmlReport

- name: Archive code coverage reports on template-compose
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: CodeCoverageReportsTemplateCompose
path: template-compose/app/build/reports/kover/

# template-xml

- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'

- name: Run Detekt on template-xml
working-directory: ./template-xml
run: ./gradlew detekt

- name: Archive Detekt reports on template-xml
uses: actions/upload-artifact@v3
with:
name: DetektReportsTemplateXML
path: template-xml/build/reports/detekt/

- name: Run unit tests with Kover on template-xml
working-directory: ./template-xml
run: ./gradlew koverHtmlReport

- name: Archive code coverage reports on template-xml
uses: actions/upload-artifact@v3
with:
name: CodeCoverageReportsTemplateXML
path: template-xml/app/build/reports/kover/

# sample-xml

- name: Run Detekt on sample-xml
working-directory: ./sample-xml
run: ./gradlew detekt

- name: Archive Detekt reports on sample-xml
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: DetektReportsTemplateXML
path: sample-xml/build/reports/detekt/
Expand All @@ -89,7 +95,7 @@ jobs:
run: ./gradlew koverHtmlReport

- name: Archive code coverage reports on sample-xml
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: CodeCoverageReportsTemplateXML
path: sample-xml/app/build/reports/kover/
Expand All @@ -101,7 +107,7 @@ jobs:
run: ./gradlew detekt

- name: Archive Detekt reports on sample-compose
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: DetektReportsTemplateCompose
path: sample-compose/build/reports/detekt/
Expand All @@ -111,7 +117,7 @@ jobs:
run: ./gradlew koverHtmlReport

- name: Archive code coverage reports on sample-compose
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: CodeCoverageReportsTemplateCompose
path: sample-compose/app/build/reports/kover/
8 changes: 7 additions & 1 deletion .github/workflows/verify_newproject_script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
timeout-minutes: 30
steps:
- name: Set up JDK 11
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
Expand Down Expand Up @@ -44,6 +44,12 @@ jobs:
working-directory: scripts
run: kscript new_project.kts package-name=co.myxmlproject.example app-name="My XML Project" template=xml

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'

- name: Verify generating new project from template-compose
working-directory: scripts
run: kscript new_project.kts package-name=co.mycomposeproject.example app-name="My Compose Project" template=compose
Expand Down
2 changes: 1 addition & 1 deletion sample-compose/buildSrc/src/main/java/Versions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ object Versions {
const val ANDROID_TARGET_SDK_VERSION = 33

const val ANDROID_VERSION_CODE = 1
const val ANDROID_VERSION_NAME = "3.23.0"
const val ANDROID_VERSION_NAME = "3.24.0"

// Dependencies (Alphabet sorted)
const val ACCOMPANIST_PERMISSIONS_VERSION = "0.30.1"
Expand Down
2 changes: 1 addition & 1 deletion sample-xml/buildSrc/src/main/java/Versions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ object Versions {
const val ANDROID_TARGET_SDK_VERSION = 33

const val ANDROID_VERSION_CODE = 1
const val ANDROID_VERSION_NAME = "3.23.0"
const val ANDROID_VERSION_NAME = "3.24.0"

// Dependencies (Alphabet sorted)
const val ANDROID_COMMON_KTX_VERSION = "0.1.1"
Expand Down
10 changes: 10 additions & 0 deletions scripts/new_project.kts
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,16 @@ object NewProject {
newValue = appName
)
}
File(projectPath)
.walk()
.filter { it.name == "settings.gradle.kts" }
.forEach { filePath ->
rename(
sourcePath = filePath.toString(),
oldValue = templateAppName,
newValue = appName
)
}
}

private fun rename(sourcePath: String, oldValue: String, newValue: String) {
Expand Down
6 changes: 0 additions & 6 deletions template-compose/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,8 @@ captures/
*.iml
.idea/*

# Keystore files
secret/

# External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild

# Google services
google-services.json

# Keystore
config/release.keystore
3 changes: 3 additions & 0 deletions template-compose/app/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
/build

# Google services
google-services.json
Loading

0 comments on commit e0136b9

Please sign in to comment.