Skip to content

Commit 10d2d4c

Browse files
[#244] Rename CoroutineTemplate to template inside workflows, documentation, ...
1 parent 9bae575 commit 10d2d4c

File tree

10 files changed

+32
-32
lines changed

10 files changed

+32
-32
lines changed

.github/workflows/review_pull_request.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@ jobs:
2929
restore-keys: |
3030
${{ runner.os }}-gradle-
3131
32-
- name: Run Detekt on CoroutineTemplate
33-
working-directory: ./CoroutineTemplate
32+
- name: Run Detekt on template
33+
working-directory: ./template
3434
run: ./gradlew detekt
3535

36-
- name: Run Android Lint on CoroutineTemplate
37-
working-directory: ./CoroutineTemplate
36+
- name: Run Android Lint on template
37+
working-directory: ./template
3838
run: ./gradlew lint
3939

40-
- name: Run unit tests and Jacoco on CoroutineTemplate
41-
working-directory: ./CoroutineTemplate
40+
- name: Run unit tests and Jacoco on template
41+
working-directory: ./template
4242
run: ./gradlew jacocoTestReport
4343

4444
- name: Set up Ruby

.github/workflows/run_detekt_and_unit_tests.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,22 @@ jobs:
2727
restore-keys: |
2828
${{ runner.os }}-gradle-
2929
30-
- name: Run Detekt on CoroutineTemplate
31-
working-directory: ./CoroutineTemplate
30+
- name: Run Detekt on template
31+
working-directory: ./template
3232
run: ./gradlew detekt
3333

34-
- name: Archive Detekt reports on CoroutineTemplate
34+
- name: Archive Detekt reports on template
3535
uses: actions/upload-artifact@v2
3636
with:
37-
name: DetektReportsCoroutine
38-
path: CoroutineTemplate/build/reports/detekt/
37+
name: DetektReportsTemplate
38+
path: template/build/reports/detekt/
3939

40-
- name: Run unit tests and Jacoco on CoroutineTemplate
41-
working-directory: ./CoroutineTemplate
40+
- name: Run unit tests and Jacoco on template
41+
working-directory: ./template
4242
run: ./gradlew jacocoTestReport
4343

44-
- name: Archive code coverage reports on CoroutineTemplate
44+
- name: Archive code coverage reports on template
4545
uses: actions/upload-artifact@v2
4646
with:
47-
name: CodeCoverageReportsCoroutine
48-
path: CoroutineTemplate/app/build/reports/jacoco/jacocoTestReport/
47+
name: CodeCoverageReportsTemplate
48+
path: template/app/build/reports/jacoco/jacocoTestReport/

.github/workflows/verify_newproject_script.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ jobs:
3838
sdk install kscript 4.0.3
3939
echo $PATH >> $GITHUB_PATH
4040
41-
- name: Verify generating new project from CoroutineTemplate
41+
- name: Verify generating new project from template
4242
working-directory: scripts
4343
run: kscript new_project.kts package-name=co.myproject.example app-name="My Project"

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
*.iml
22
.idea
33
.gradle
4-
/CoroutineTemplate/local.properties
4+
/template/local.properties
55
/RxJavaTemplate[DEPRECATED]/local.properties
66
.DS_Store
77
build/

CoroutineTemplate/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Android Templates: Coroutine
1+
# Android Templates
22

33
- Our optimized Android templates used in our android projects
44

@@ -48,4 +48,4 @@ Report is located at: `./app/build/reports/jacoco/`
4848
For `release` builds, we need to provide release keystore and signing properties:
4949

5050
- Put the `release.keystore` file at root `config` folder.
51-
- Put keystore signing properties in [signing.properties](https://github.com/nimblehq/android-templates/blob/develop/CoroutineTemplate/signing.properties).
51+
- Put keystore signing properties in [signing.properties](https://github.com/nimblehq/android-templates/blob/develop/template/signing.properties).

CoroutineTemplate/app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ android {
3333

3434
compileSdk = Versions.ANDROID_COMPILE_SDK_VERSION
3535
defaultConfig {
36-
applicationId = "co.nimblehq.coroutine"
36+
applicationId = "co.nimblehq.template"
3737
minSdk = Versions.ANDROID_MIN_SDK_VERSION
3838
targetSdk = Versions.ANDROID_TARGET_SDK_VERSION
3939
versionCode = Versions.ANDROID_VERSION_CODE

CoroutineTemplate/buildSrc/src/main/java/plugins/jacoco-report.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ val packagesExcluded = setOf(
4040
"**/com/bumptech/glide",
4141
"**/dagger/hilt/internal",
4242
"**/hilt_aggregated_deps",
43-
"**/co/nimblehq/coroutine/databinding/**",
44-
"**/co/nimblehq/coroutine/di/**"
43+
"**/co/nimblehq/template/databinding/**",
44+
"**/co/nimblehq/template/di/**"
4545
)
4646

4747
val fileFilter = fileGenerated + packagesExcluded

Dangerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ Dir[lint_dir].each do |file_name|
2929
android_lint.lint(inline_mode: true)
3030
end
3131

32-
# Show Danger test coverage report from Jacoco for CoroutineTemplate
33-
jacoco_dir = "CoroutineTemplate/**/build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml"
34-
markdown "## CoroutineTemplate Jacoco report:"
32+
# Show Danger test coverage report from Jacoco for Template
33+
jacoco_dir = "template/**/build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml"
34+
markdown "## Template Jacoco report:"
3535
Dir[jacoco_dir].each do |file_name|
3636
# Report coverage of modified files, warn if total project coverage is under 80%
3737
# or if any modified file's coverage is under 95%

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
---
1111

12-
Our Android template: **[CoroutineTemplate](https://github.com/nimblehq/android-templates/tree/develop/CoroutineTemplate)**
12+
Our Android template: **[Template](https://github.com/nimblehq/android-templates/tree/develop/template)**
1313

1414
## Setup
1515

@@ -23,7 +23,7 @@ Our Android template: **[CoroutineTemplate](https://github.com/nimblehq/android-
2323

2424
Example: `kscript new_project.kts package-name=co.myproject.example app-name="My Project"`
2525

26-
4. Update `android_version_code` and `android_version_name` in `CoroutineTemplate/build.gradle`
26+
4. Update `android_version_code` and `android_version_name` in `template/build.gradle`
2727

2828
## About
2929

scripts/new_project.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ object NewProject {
88
private const val KEY_PACKAGE_NAME = "package-name"
99
private const val MINUS_SEPARATOR = "-"
1010
private const val SPACE_SEPARATOR = " "
11-
private const val TEMPLATE_APP_NAME = "Coroutine Template"
12-
private const val TEMPLATE_APPLICATION_CLASS_NAME = "CoroutineTemplateApplication"
13-
private const val TEMPLATE_FOLDER_NAME = "CoroutineTemplate"
14-
private const val TEMPLATE_PACKAGE_NAME = "co.nimblehq.coroutine"
11+
private const val TEMPLATE_APP_NAME = "Template"
12+
private const val TEMPLATE_APPLICATION_CLASS_NAME = "TemplateApplication"
13+
private const val TEMPLATE_FOLDER_NAME = "template"
14+
private const val TEMPLATE_PACKAGE_NAME = "co.nimblehq.template"
1515

1616
private const val PATTERN_APP = "^([A-Z][a-zA-Z0-9\\s]*)|([a-z][a-z0-9-]*)$"
1717
private const val PATTERN_PACKAGE = "^[a-z]+(\\.[a-z][a-z0-9]*)+$"

0 commit comments

Comments
 (0)