You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resolve build failures so repository will build with ./gradlew clean build (#584)
* 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
0 commit comments