Skip to content

Commit 66b8f1a

Browse files
veyndancopybara-github
authored andcommitted
[GH] Only reference AndroidX Annotation's @MainThread in the JVM
Test: ./gradlew test connectedCheck Bug: 270612487 This is an imported pull request from #581. Resolves #581 Github-Pr-Head-Sha: 343eeff GitOrigin-RevId: f4819b7 Change-Id: Ia6a56b6a463b9a2eddbf7ccff4507481bbaf4c54
1 parent 3db7fd3 commit 66b8f1a

4 files changed

Lines changed: 57 additions & 1 deletion

File tree

paging/paging-common/src/commonMain/kotlin/androidx/paging/PagingDataDiffer.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
package androidx.paging
1818

1919
import androidx.annotation.IntRange
20-
import androidx.annotation.MainThread
2120
import androidx.annotation.RestrictTo
2221
import androidx.paging.LoadType.APPEND
2322
import androidx.paging.LoadType.PREPEND
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright 2023 The Android Open Source Project
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package androidx.paging
18+
19+
public expect annotation class MainThread()
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright 2023 The Android Open Source Project
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package androidx.paging
18+
19+
public actual typealias MainThread = androidx.annotation.MainThread
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright 2023 The Android Open Source Project
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package androidx.paging
18+
19+
public actual annotation class MainThread()

0 commit comments

Comments
 (0)