Skip to content

Commit ce05d6b

Browse files
authored
Merge pull request #519 from nimblehq/chore/503-deprecate-xml-template
[#503] Deprecate the XML template
2 parents eb30932 + ed83e97 commit ce05d6b

File tree

438 files changed

+26
-149
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

438 files changed

+26
-149
lines changed

.github/workflows/review_pull_request.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,6 @@ jobs:
3131
restore-keys: |
3232
${{ runner.os }}-gradle-
3333
34-
# template-xml
35-
36-
- name: Run Detekt on template-xml
37-
working-directory: ./template-xml
38-
run: ./gradlew detekt
39-
40-
- name: Run Android Lint on template-xml
41-
working-directory: ./template-xml
42-
run: ./gradlew lint
43-
44-
- name: Run unit tests with Kover on template-xml
45-
working-directory: ./template-xml
46-
run: ./gradlew koverXmlReport
47-
4834
# template-compose
4935

5036
- name: Run Detekt on template-compose

.github/workflows/run_detekt_and_unit_tests.yml

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -50,50 +50,6 @@ jobs:
5050
name: CodeCoverageReportsTemplateCompose
5151
path: template-compose/app/build/reports/kover/
5252

53-
# template-xml
54-
55-
- name: Run Detekt on template-xml
56-
working-directory: ./template-xml
57-
run: ./gradlew detekt
58-
59-
- name: Archive Detekt reports on template-xml
60-
uses: actions/upload-artifact@v3
61-
with:
62-
name: DetektReportsTemplateXML
63-
path: template-xml/build/reports/detekt/
64-
65-
- name: Run unit tests with Kover on template-xml
66-
working-directory: ./template-xml
67-
run: ./gradlew koverHtmlReport
68-
69-
- name: Archive code coverage reports on template-xml
70-
uses: actions/upload-artifact@v3
71-
with:
72-
name: CodeCoverageReportsTemplateXML
73-
path: template-xml/app/build/reports/kover/
74-
75-
# sample-xml
76-
77-
- name: Run Detekt on sample-xml
78-
working-directory: ./sample-xml
79-
run: ./gradlew detekt
80-
81-
- name: Archive Detekt reports on sample-xml
82-
uses: actions/upload-artifact@v3
83-
with:
84-
name: DetektReportsTemplateXML
85-
path: sample-xml/build/reports/detekt/
86-
87-
- name: Run unit tests with Kover on sample-xml
88-
working-directory: ./sample-xml
89-
run: ./gradlew koverHtmlReport
90-
91-
- name: Archive code coverage reports on sample-xml
92-
uses: actions/upload-artifact@v3
93-
with:
94-
name: CodeCoverageReportsTemplateXML
95-
path: sample-xml/app/build/reports/kover/
96-
9753
# sample-compose
9854

9955
- name: Run Detekt on sample-compose

.github/workflows/verify_newproject_script.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ jobs:
4040
sdk install kscript $kscriptVersion
4141
echo $PATH >> $GITHUB_PATH
4242
43-
- name: Verify generating new project from template-xml
44-
working-directory: scripts
45-
run: kscript new_project.kts package-name=co.myxmlproject.example app-name="My XML Project" template=xml
46-
4743
- name: Verify generating new project from template-compose
4844
working-directory: scripts
4945
run: kscript new_project.kts package-name=co.mycomposeproject.example app-name="My Compose Project" template=compose

Dangerfile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ end
3232
# Show Danger test coverage report from Kover for templates
3333
# Report coverage of modified files, warn if total project coverage is under 80%
3434
# or if any modified file's coverage is under 95%
35-
kover_file_template_xml = "template-xml/app/build/reports/kover/report.xml"
36-
markdown "## Kover report for template-xml:"
37-
shroud.reportKover "Template - XML Unit Tests", kover_file_template_xml, 80, 95, false
38-
3935
kover_file_template_compose = "template-compose/app/build/reports/kover/report.xml"
4036
markdown "## Kover report for template-compose:"
4137
shroud.reportKover "Template - Compose Unit Tests", kover_file_template_compose, 80, 95, false

README.md

Lines changed: 5 additions & 5 deletions

codemagic.yaml

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,12 @@ definitions:
1414
name: Run detekt on template-compose
1515
working_directory: ./template-compose
1616
script: ./gradlew detekt
17-
- &detekt_on_template_xml
18-
name: Run detekt on template-xml
19-
working_directory: ./template-xml
20-
script: ./gradlew detekt
2117
- &unit_test_on_template_compose
2218
name: Run unit tests on template-compose
2319
working_directory: ./template-compose
2420
script: ./gradlew koverHtmlReport
25-
- &unit_test_on_template_xml
26-
name: Run unit tests on template-xml
27-
working_directory: ./template-xml
28-
script: ./gradlew koverHtmlReport
2921
artifacts:
3022
- &artifacts_template_compose template-compose/app/build/reports/kover/
31-
- &artifacts_template_xml template-xml/app/build/reports/kover/
3223
- &artifacts_staging_apk template-compose/app/build/outputs/apk/staging/debug/app-staging-debug.apk
3324
- &artifacts_production_apk template-compose/app/build/outputs/apk/production/debug/app-production-debug.apk
3425
workflows:
@@ -56,30 +47,6 @@ workflows:
5647
artifacts:
5748
- *artifacts_template_compose
5849

59-
unit-test-on-pr-for-template-xml:
60-
name: Unit test on PR for template-xml
61-
<<: *configure_environment
62-
triggering:
63-
events:
64-
# Run when a pull request is opened or updated
65-
- pull_request
66-
branch_patterns:
67-
# Review changes BEFORE they’re merged into any branches
68-
- pattern: '*'
69-
source: false
70-
# Will not run on develop branch as it is already covered by build-and-deploy-template-compose-staging
71-
- pattern: 'develop'
72-
include: false
73-
# Will not run on main branch as it is already covered by build-and-deploy-template-compose-production
74-
- pattern: 'main'
75-
include: false
76-
cancel_previous_builds: true
77-
scripts:
78-
- *detekt_on_template_xml
79-
- *unit_test_on_template_xml
80-
artifacts:
81-
- *artifacts_template_xml
82-
8350
build-and-deploy-template-compose-staging:
8451
name: Build and deploy template-compose staging to Firebase App Distribution
8552
<<: *configure_environment

0 commit comments

Comments
 (0)