Skip to content

Commit 2f6b351

Browse files
committed
Setup GitHub configuration
- Fix Actions - Use issues templates - Fix spotless and remove unused stuff Change-Id: Ia838734d60e09efd040d2780a7387d09a79a673f
1 parent dbcac6e commit 2f6b351

25 files changed

+510
-446
lines changed

.editorconfig

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# https://editorconfig.org/
2+
# This configuration is used by ktlint when spotless invokes it
3+
4+
[*.{kt,kts}]
5+
ij_kotlin_allow_trailing_comma=true
6+
ij_kotlin_allow_trailing_comma_on_call_site=true

.github/ISSUE_TEMPLATE/bug_report.md

-34
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.yml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Bug Report
2+
description: Create a report of specific sample to help us improve
3+
title: "[Bug]: "
4+
labels: ["bug"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill out this bug report!
10+
- type: checkboxes
11+
attributes:
12+
label: Is there an existing issue for this?
13+
description: Please search to see if an issue already exists for the bug you encountered.
14+
options:
15+
- label: I have searched the existing issues
16+
required: true
17+
- type: dropdown
18+
id: area
19+
attributes:
20+
label: In which area is the issue?
21+
multiple: true
22+
required: true
23+
options:
24+
- General
25+
- Accessibility
26+
- Camera
27+
- Connectivity
28+
- Location
29+
- Permissions
30+
- Privacy
31+
- User Interface
32+
- type: textarea
33+
id: sample-path
34+
attributes:
35+
label: In a specific sample?
36+
description: Please add the sample entry point file name of the affected sample
37+
placeholder: e.g SinglePermission.kt
38+
- type: textarea
39+
id: what-happened
40+
attributes:
41+
label: What happened?
42+
description: Also tell us, what did you expect to happen? and provide screen captures if possible
43+
placeholder: Tell us what you see!
44+
validations:
45+
required: true
46+
- type: textarea
47+
id: logs
48+
attributes:
49+
label: Relevant logcat output
50+
description: Please copy and paste any relevant logcat output. This will be automatically formatted into code, so no need for backticks.
51+
render: shell
52+
- type: checkboxes
53+
id: terms
54+
attributes:
55+
label: Code of Conduct
56+
description: By submitting this issue, you agree to follow our [Code of Conduct](CODE_OF_CONDUCT.md)
57+
options:
58+
- label: I agree to follow this project's Code of Conduct
59+
required: true

.github/ISSUE_TEMPLATE/config.yml

-1
This file was deleted.
+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Feature request
2+
description: File a feature request
3+
title: "[FR]: "
4+
labels: ["enhancement"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill out this report!
10+
- type: checkboxes
11+
attributes:
12+
label: Is there an existing FR for this?
13+
description: Please search to see if a similar FR already exists
14+
options:
15+
- label: I have searched the existing issues
16+
required: true
17+
- type: dropdown
18+
id: area
19+
attributes:
20+
label: For which area is this FR?
21+
multiple: true
22+
required: true
23+
options:
24+
- General
25+
- Accessibility
26+
- Camera
27+
- Connectivity
28+
- Location
29+
- Permissions
30+
- Privacy
31+
- User Interface
32+
- type: textarea
33+
id: sample-path
34+
attributes:
35+
label: Is it for a specific sample?
36+
description: Please add the sample entry point file name of the affected sample
37+
placeholder: e.g SinglePermission.kt
38+
- type: textarea
39+
id: what-happened
40+
attributes:
41+
label: Describe the feature request
42+
description: Be clear about the problem and possible solutions
43+
placeholder: I want to...
44+
validations:
45+
required: true
46+
- type: checkboxes
47+
id: terms
48+
attributes:
49+
label: Code of Conduct
50+
description: By submitting this issue, you agree to follow our [Code of Conduct](CODE_OF_CONDUCT.md)
51+
options:
52+
- label: I agree to follow this project's Code of Conduct
53+
required: true

.github/ISSUE_TEMPLATE/info_report.md

-14
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Pull request
3+
about: Create a pull request
4+
---
5+
Thank you for opening a Pull Request!
6+
Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
7+
- [ ] Make sure to open a GitHub issue as a bug/feature request before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
8+
- [ ] Ensure the tests and linter pass (`./gradlew --init-script gradle/init.gradle.kts spotlessApply` to automatically apply formatting)
9+
10+
Is this your first Pull Request?
11+
- [ ] Run `./tools/setup.sh`
12+
- [ ] Import the code formatting style as explained in [the setup script](/tools/setup.sh#L40).
13+
14+
Fixes #<issue_number_goes_here> 🦕

.github/auto-merge.yml

-7
This file was deleted.

.github/ci-gradle.properties

+8-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# you may not use this file except in compliance with the License.
66
# You may obtain a copy of the License at
77
#
8-
# https://www.apache.org/licenses/LICENSE-2.0
8+
# https://www.apache.org/licenses/LICENSE-2.0
99
#
1010
# Unless required by applicable law or agreed to in writing, software
1111
# distributed under the License is distributed on an "AS IS" BASIS,
@@ -14,11 +14,15 @@
1414
# limitations under the License.
1515
#
1616

17-
# Turn Gradle daemon off due to https://github.com/Kotlin/dokka/issues/1405
1817
org.gradle.daemon=false
19-
2018
org.gradle.parallel=true
21-
org.gradle.jvmargs=-Xmx4608m -XX:MaxMetaspaceSize=1536m -XX:+HeapDumpOnOutOfMemoryError
2219
org.gradle.workers.max=2
2320

21+
kotlin.incremental=false
2422
kotlin.compiler.execution.strategy=in-process
23+
24+
# Controls KotlinOptions.allWarningsAsErrors.
25+
# This value used in CI and is currently set to false.
26+
# If you want to treat warnings as errors locally, set this property to true
27+
# in your ~/.gradle/gradle.properties file.
28+
warningsAsErrors=false

.github/pull_request_template.md

-5
This file was deleted.

.github/workflows/automerger.yml

-24
This file was deleted.

0 commit comments

Comments
 (0)