diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..83be1d5a0 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,6 @@ +# https://editorconfig.org/ +# This configuration is used by ktlint when spotless invokes it + +[*.{kt,kts}] +ij_kotlin_allow_trailing_comma=true +ij_kotlin_allow_trailing_comma_on_call_site=true diff --git a/.github/workflows/AndroidCIWithGmd.yaml b/.github/workflows/AndroidCIWithGmd.yaml new file mode 100644 index 000000000..44f8141f6 --- /dev/null +++ b/.github/workflows/AndroidCIWithGmd.yaml @@ -0,0 +1,38 @@ +name: Android CI with GMD + +on: + push: + branches: + - main + pull_request: + +jobs: + + android-ci: + runs-on: macos-12 + strategy: + matrix: + device-config: [ "pixel4api30aospatd", "pixelcapi30aospatd" ] + + steps: + - uses: actions/setup-java@v3 + with: + distribution: 'zulu' + java-version: '11' + - uses: actions/checkout@v3 + + - name: Setup Android SDK + uses: android-actions/setup-android@v2 + + - name: Run instrumented tests with GMD + run: ./gradlew cleanManagedDevices --unused-only && + ./gradlew ${{ matrix.device-config }}DemoDebugAndroidTest -Dorg.gradle.workers.max=1 + -Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect" -Pandroid.experimental.testOptions.managedDevices.emulator.showKernelLogging=true + + - name: Upload test reports + if: success() || failure() + uses: actions/upload-artifact@v3 + with: + name: test-reports + path: | + '**/*/build/reports/androidTests/' diff --git a/.github/workflows/Build.yaml b/.github/workflows/Build.yaml index 978279c11..342714245 100644 --- a/.github/workflows/Build.yaml +++ b/.github/workflows/Build.yaml @@ -90,7 +90,7 @@ jobs: disable-animations: true disk-size: 6000M heap-size: 600M - script: ./gradlew connectedProdDebugAndroidTest -x :benchmark:connectedProdBenchmarkAndroidTest + script: ./gradlew connectedDemoDebugAndroidTest -x :benchmark:connectedDemoBenchmarkAndroidTest - name: Upload test reports if: always() diff --git a/.google/BUILDME b/.google/BUILDME new file mode 100644 index 000000000..5295ed188 --- /dev/null +++ b/.google/BUILDME @@ -0,0 +1,2 @@ +# This file can be used to trigger an internal build by changing the number below +3 diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index 0a9e39c9d..6ef06e25a 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -28,9 +28,6 @@