Commit a87b076
authored
Resolve build failures so repository will build with
* Fix: Get ``./gradlew build`` to succeed
This disables several checks to make the build succeed.
We should try to enable the checks and fix the underlying issues.
- Adds missing BLUETOOTH_CONNECT and BLUETOOTH_SCAN permissions
to AndroidManifest.xml for BluetoothLe sample.
- Adds ACCESS_COARSE_LOCATION and ACCESS_FINE_LOCATION to
AndroidManifest.xml and uses tools:ignore to suppress the
CoarseFineLocation warning.
- Adds `@SuppressWarnings("MissingPermission")` annotations to
setUpBLE methods in MainActivity.java and MainActivity.kt, and
scanLeDevice method in DeviceScanActivity.kt to suppress
lint warnings.
- Increases Xmx value to 4g in gradle.properties.
- Disables lint checks during release builds in gradle.properties.
- Sets an icon to the Credential Provider in
identity/credentialmanager/src/main/AndroidManifest.xml.
* Revert gradle.properties to 6042848
* Use @RequiresPermission instead of @SuppressWarnings
- @SuppressWarnings("MissingPermission")
+ @RequiresPermission(Manifest.permission.BLUETOOTH_CONNECT)
* Simplify permissions ACCESS_FINE_LOCATION and ACCESS_COARSE_LOCATION
* Revert compose/snippets/build.gradle.kts
* Update build.yml and xr/build.gradle.kts
- Add `./gradlew build` to build all modules used by the root project
- Add --stacktrace to gradlew commands in build.yml
- Update Kotlin jvmToolchain in xr/build.gradle.kts to 17
* Revert Kotlin jvmToolchain to 11 in xr/build.gradle.kts
* Remove duplicate build.yml steps
The following are redundant because they will run during `./gradlew build --stacktrace`
- name: Build Compose
run: ./gradlew :compose:snippets:build --stacktrace
- name: Build recompose snippets
run: ./gradlew :compose:recomposehighlighter:build --stacktrace
- name: Build kotlin snippets
run: ./gradlew :kotlin:build --stacktrace
- name: Build Wear snippets
run: ./gradlew :wear:build --stacktrace
- name: Build misc snippets
run: ./gradlew :misc:build --stacktrace
- name: Build XR snippets
run: ./gradlew :xr:build --stacktrace
* Refactor build.yml to build all modules first./gradlew clean build (#584)1 parent f643874 commit a87b076
File tree
7 files changed
+19
-21
lines changed- .github/workflows
- bluetoothle/src/main
- java/com/sample/android/bluetoothle
- java
- kotlin
- identity/credentialmanager/src/main
- xr
7 files changed
+19
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 40 | + | |
| 41 | + | |
52 | 42 | | |
53 | | - | |
| 43 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| 25 | + | |
26 | 26 | | |
27 | | - | |
28 | 27 | | |
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| 24 | + | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
0 commit comments