Skip to content

Commit 9c0d65b

Browse files
authored
Merge branch 'android:main' into patch-1
2 parents a9bdf9d + 62bfba5 commit 9c0d65b

File tree

335 files changed

+5397
-1387
lines changed

Some content is hidden

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

335 files changed

+5397
-1387
lines changed

.bazelproject

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ additional_languages:
1919

2020

2121
# Please uncomment an android-SDK platform. Available SDKs are:
22-
android_sdk_platform: android-28
22+
android_sdk_platform: android-34

.bazelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@ build --javacopt=-g
33
build --host_javacopt=-g
44

55
build --experimental_google_legacy_api
6+
build --enable_platform_specific_config
7+
build:linux --sandbox_tmpfs_path=/tmp
8+
test --enable_platform_specific_config
9+
test:linux --sandbox_tmpfs_path=/tmp

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.2.0
1+
6.3.0

.github/workflows/ci.yml

Lines changed: 29 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,38 @@
11
name: Build
22
on:
33
push:
4-
branches: [ main ]
4+
branches:
5+
- main
6+
- 'axt_**_release_branch'
57

68
pull_request:
7-
branches: [ main ]
9+
branches:
10+
- main
11+
- 'axt_**_release_branch'
12+
13+
env:
14+
cache-version: v1
815

916
jobs:
1017
build:
11-
runs-on: ubuntu-latest
18+
runs-on:
19+
group: Large Runners
1220
timeout-minutes: 20
1321
steps:
1422
- name: Check out repository code
1523
uses: actions/checkout@v3
16-
- name: Install Java 11
24+
- name: Install Java 17
1725
uses: actions/setup-java@v3
1826
with:
1927
distribution: 'zulu'
20-
java-version: '11'
28+
java-version: '17'
2129
- name: 'Cache Bazel files'
2230
uses: actions/cache@v3
2331
with:
2432
path: ~/.cache/bazel
25-
key: ${{ runner.os }}-bazel-build-${{ github.sha }}
33+
key: ${{ runner.os }}-${{ env.cache-version }}-bazel-build-${{ github.sha }}
2634
restore-keys: |
27-
${{ runner.os }}-bazel-build-
35+
${{ runner.os }}-${{ env.cache-version }}-bazel-build-
2836
- name: Build maven artifacts
2937
run: bazelisk build //:axt_m2repository
3038
shell: bash
@@ -49,23 +57,24 @@ jobs:
4957
rm -rf ~/.cache/bazel/*/*/external/
5058
shell: bash
5159
test:
52-
runs-on: ubuntu-latest
60+
runs-on:
61+
group: Large Runners
5362
timeout-minutes: 20
5463
steps:
5564
- name: Check out repository code
5665
uses: actions/checkout@v3
57-
- name: Install Java 11
66+
- name: Install Java 17
5867
uses: actions/setup-java@v3
5968
with:
6069
distribution: 'zulu'
61-
java-version: '11'
70+
java-version: '17'
6271
- name: 'Cache Bazel files'
6372
uses: actions/cache@v3
6473
with:
6574
path: ~/.cache/bazel
66-
key: ${{ runner.os }}-bazel-test-${{ github.sha }}
75+
key: ${{ runner.os }}-${{ env.cache-version }}-bazel-test-${{ github.sha }}
6776
restore-keys: |
68-
${{ runner.os }}-bazel-test-
77+
${{ runner.os }}-${{ env.cache-version }}-bazel-test-
6978
- name: Run Robolectric tests
7079
run: bazelisk test --test_tag_filters=robolectric --build_tag_filters=robolectric --test_output=all ...
7180
shell: bash
@@ -87,11 +96,11 @@ jobs:
8796
steps:
8897
- name: Check out repository code
8998
uses: actions/checkout@v3
90-
- name: Install Java 11
99+
- name: Install Java 17
91100
uses: actions/setup-java@v3
92101
with:
93102
distribution: 'zulu'
94-
java-version: '11'
103+
java-version: '17'
95104
- name: Enable KVM group perms
96105
run: |
97106
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
@@ -111,10 +120,14 @@ jobs:
111120
shell: bash
112121
- name: 'Setup Android SDK'
113122
uses: android-actions/setup-android@v2
123+
- name: 'Setup gradle managed device'
124+
run: |
125+
cd ${{ github.workspace }}/gradle-tests
126+
./gradlew runner:nexusOneSetup -Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect" --no-watch-fs --info
114127
- name: 'Run gradle tests'
115128
run: |
116129
cd ${{ github.workspace }}/gradle-tests
117-
./gradlew nexusOneApi30DebugAndroidTest -Dorg.gradle.workers.max=1 -Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect" -Pandroid.experimental.testOptions.managedDevices.emulator.showKernelLogging=true --info
130+
./gradlew nexusOneDebugAndroidTest -Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect" --no-watch-fs --stacktrace
118131
shell: bash
119132
- name: 'Upload test reports'
120133
if: success() || failure()
@@ -123,3 +136,4 @@ jobs:
123136
name: test-reports
124137
path: gradle-tests/**/build/reports/androidTests/
125138

139+

CHANGELOG_TEMPLATE.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
**Bug Fixes**
2+
3+
**New Features**
4+
5+
**Breaking Changes**
6+
7+
**API Changes**
8+
9+
**Breaking API Changes**
10+
11+
**Known Issues**

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Currently only Linux is fully supported. Mac may work but is not regularly teste
3434
* Install the [Android SDK](https://developer.android.com/studio/install) and
3535
run the following command to ensure you have the necessary components:
3636
`./tools/bin/sdkmanager --install 'build-tools;33.0.2'
37-
'platforms;android-33' 'emulator' 'platform-tools'
37+
'platforms;android-34' 'emulator' 'platform-tools'
3838
* Set the `ANDROID_HOME` environment variable to point to the SDK install
3939
location. For example
4040
* On Linux: `export ANDROID_HOME=/home/$USER/Android/Sdk`
@@ -46,7 +46,7 @@ Currently only Linux is fully supported. Mac may work but is not regularly teste
4646

4747
Android Studio is recommended.
4848

49-
* Install the [Bazel Android Studio plugin](https://docs.bazel.build/versions/master/ide.html).
49+
* Install the [Bazel Android Studio plugin](https://plugins.jetbrains.com/plugin/9185-bazel-for-android-studio)
5050
* Setup Bazel Android Studio plugin:
5151
* Navigate to `Settings > Other Settings > Bazel Settings`
5252
* Update `Bazel binary location` to `/path/to/bazel/binary` (on Mac it's usually
@@ -87,7 +87,7 @@ To run the gradle integration tests:
8787
bazelisk build :axt_m2repository
8888
unzip bazel-bin/axt_m2repository.zip -d ~/.m2/
8989
cd gradle-tests
90-
./gradlew nexusOneApi30DebugAndroidTest
90+
./gradlew nexusOneDebugAndroidTest
9191
```
9292

9393
### Troubleshooting

WORKSPACE

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,6 @@ rules_proto_toolchains()
3737

3838
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
3939

40-
http_archive(
41-
name = "rules_python",
42-
sha256 = "0a8003b044294d7840ac7d9d73eef05d6ceb682d7516781a4ec62eeb34702578",
43-
strip_prefix = "rules_python-0.24.0",
44-
url = "https://github.com/bazelbuild/rules_python/releases/download/0.24.0/rules_python-0.24.0.tar.gz",
45-
)
46-
47-
load("@rules_python//python:repositories.bzl", "py_repositories")
48-
49-
py_repositories()
50-
5140
load("@rules_jvm_external//:defs.bzl", "maven_install")
5241
load("@rules_jvm_external//:specs.bzl", "maven")
5342
load(
@@ -92,7 +81,7 @@ grpc_java_repositories()
9281
maven_install(
9382
name = "maven",
9483
artifacts = [
95-
"androidx.annotation:annotation-jvm:" + ANDROIDX_ANNOTATION_VERSION,
84+
"androidx.annotation:annotation:" + ANDROIDX_ANNOTATION_VERSION,
9685
"androidx.annotation:annotation-experimental:jar:" + ANDROIDX_ANNOTATION_EXPERIMENTAL_VERSION,
9786
"androidx.appcompat:appcompat:" + ANDROIDX_COMPAT_VERSION,
9887
"androidx.concurrent:concurrent-futures:" + ANDROIDX_CONCURRENT_VERSION,
@@ -179,7 +168,6 @@ maven_install(
179168
"org.pantsbuild:jarjar:1.7.2",
180169
"org.jetbrains.kotlin:kotlin-stdlib:%s" % KOTLIN_VERSION,
181170
"org.jetbrains.kotlinx:kotlinx-coroutines-core:%s" % KOTLINX_COROUTINES_VERSION,
182-
"com.google.code.findbugs:jsr305:3.0.2",
183171
maven.artifact(
184172
artifact = "robolectric",
185173
exclusions = [
@@ -191,7 +179,7 @@ maven_install(
191179
),
192180
],
193181
group = "org.robolectric",
194-
version = "4.9",
182+
version = "4.11.1",
195183
),
196184
],
197185
fetch_sources = True,
@@ -219,7 +207,7 @@ maven_install(
219207

220208
android_sdk_repository(
221209
name = "androidsdk",
222-
api_level = 33,
210+
api_level = 34,
223211
build_tools_version = "33.0.2",
224212
)
225213

annotation/CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
### Annotation {version} {:#annotation-{version}}
2+
3+
{{date}}
4+
5+
`androidx.test:annotation:{version}}` is released.
6+
7+
**Bug Fixes**
8+
9+
**New Features**
10+
11+
**Breaking Changes**
12+
13+
**API Changes**
14+
15+
**Breaking API Changes**
16+
17+
**Known Issues**

annotation/java/androidx/test/annotation/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
package="androidx.test.annotation">
1919

2020
<uses-sdk
21-
android:minSdkVersion="14"
22-
android:targetSdkVersion="33" />
21+
android:minSdkVersion="19"
22+
android:targetSdkVersion="34" />
2323

2424
</manifest>

annotation/java/androidx/test/annotation/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ android_library(
2121
manifest = "AndroidManifest.xml",
2222
tags = ["alt_dep=//annotation"],
2323
deps = [
24+
"//opensource/androidx:annotation",
2425
"@maven//:androidx_annotation_annotation_experimental",
25-
"@maven//:androidx_annotation_annotation_jvm",
2626
],
2727
)
2828

0 commit comments

Comments
 (0)