File tree Expand file tree Collapse file tree 10 files changed +15
-17
lines changed
trace-encoder/src/main/java/com/squareup/tracing
workflow-testing/src/main/java/com/squareup/workflow1/testing Expand file tree Collapse file tree 10 files changed +15
-17
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ subprojects {
55
55
56
56
// Don't panic, all this does is allow us to use the @OptIn meta-annotation.
57
57
// to define our own experiments.
58
- freeCompilerArgs + = " -Xopt -in=kotlin.RequiresOptIn"
58
+ freeCompilerArgs + = " -opt -in=kotlin.RequiresOptIn"
59
59
}
60
60
}
61
61
Original file line number Diff line number Diff line change 1
1
[versions ]
2
2
3
- # Included for convenience to turn on when benchmarking.
4
- # androidTools = "7.3.0-alpha03"
5
- androidTools = " 7.0.0"
3
+ androidTools = " 7.1.3"
6
4
7
5
compileSdk = " 31"
8
6
minSdkVersion = " 21"
@@ -11,8 +9,6 @@ targetSdk = "30"
11
9
androidx-activity = " 1.3.0"
12
10
androidx-appcompat = " 1.3.1"
13
11
androidx-benchmark = " 1.1.0-beta04"
14
- # Included for convenience to turn on when benchmarking.
15
- # androidx-benchmark = "1.1.0-SNAPSHOT"
16
12
androidx-compose = " 1.1.0-rc01"
17
13
androidx-compose-compiler = " 1.1.0-rc02"
18
14
androidx-constraintlayout = " 2.1.2"
@@ -22,8 +18,6 @@ androidx-lifecycle = "2.4.0"
22
18
androidx-navigation = " 2.4.0-alpha09"
23
19
androidx-paging = " 3.0.1"
24
20
androidx-profileinstaller = " 1.2.0-alpha02"
25
- # Included for convenience to turn on when benchmarking.
26
- # androidx-profileinstaller = "1.2.0-SNAPSHOT"
27
21
androidx-recyclerview = " 1.2.1"
28
22
androidx-room = " 2.4.0-alpha04"
29
23
androidx-savedstate = " 1.1.0"
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =wrapper/dists
3
- distributionUrl =https\://services.gradle.org/distributions/gradle-7.4-bin.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-7.4.2 -bin.zip
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ buildscript {
8
8
9
9
deps = [
10
10
activityktx : ' androidx.activity:activity-ktx:1.3.0' ,
11
- agp : " com.android.tools.build:gradle:7.0.0 " ,
11
+ agp : " com.android.tools.build:gradle:7.1.3 " ,
12
12
appcompat : ' androidx.appcompat:appcompat:1.3.1' ,
13
13
constraintlayout : ' androidx.constraintlayout:constraintlayout:2.0.1' ,
14
14
kotlin : [
@@ -51,7 +51,7 @@ subprojects {
51
51
52
52
tasks. withType(KotlinCompile ). configureEach {
53
53
kotlinOptions {
54
- freeCompilerArgs + = ' -Xopt -in=kotlin.RequiresOptIn'
54
+ freeCompilerArgs + = ' -opt -in=kotlin.RequiresOptIn'
55
55
}
56
56
}
57
57
}
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =wrapper/dists
3
- distributionUrl =https\://services.gradle.org/distributions/gradle-7.1.1 -all.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-7.4.2 -all.zip
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import kotlinx.coroutines.CancellationException
4
4
import kotlinx.coroutines.CoroutineDispatcher
5
5
import kotlinx.coroutines.CoroutineScope
6
6
import kotlinx.coroutines.Dispatchers.IO
7
+ import kotlinx.coroutines.ObsoleteCoroutinesApi
7
8
import kotlinx.coroutines.channels.Channel.Factory.UNLIMITED
8
9
import kotlinx.coroutines.channels.ClosedSendChannelException
9
10
import kotlinx.coroutines.channels.SendChannel
@@ -27,6 +28,7 @@ import kotlin.time.TimeSource
27
28
* @param sinkProvider Returns the [BufferedSink] to use to write trace events to. Called on a
28
29
* background thread.
29
30
*/
31
+ @OptIn(ObsoleteCoroutinesApi ::class )
30
32
public class TraceEncoder (
31
33
scope : CoroutineScope ,
32
34
private val start : TimeMark = TraceEncoderTimeMark ,
@@ -37,7 +39,6 @@ public class TraceEncoder(
37
39
private val processIdCounter = AtomicInteger (0 )
38
40
private val threadIdCounter = AtomicInteger (0 )
39
41
40
- @Suppress(" EXPERIMENTAL_API_USAGE" )
41
42
private val events: SendChannel <List <ChromeTraceEvent >> =
42
43
scope.actor(ioDispatcher, capacity = UNLIMITED ) {
43
44
sinkProvider().use { sink ->
Original file line number Diff line number Diff line change 1
- @file:Suppress( " EXPERIMENTAL_API_USAGE " )
1
+ @file:OptIn( FlowPreview :: class , ExperimentalCoroutinesApi :: class )
2
2
3
3
package com.squareup.workflow1.testing
4
4
5
5
import com.squareup.workflow1.Worker
6
6
import com.squareup.workflow1.testing.WorkflowTestRuntime.Companion.DEFAULT_TIMEOUT_MS
7
7
import kotlinx.coroutines.Dispatchers.Unconfined
8
+ import kotlinx.coroutines.ExperimentalCoroutinesApi
9
+ import kotlinx.coroutines.FlowPreview
8
10
import kotlinx.coroutines.cancelChildren
9
11
import kotlinx.coroutines.channels.ReceiveChannel
10
12
import kotlinx.coroutines.flow.produceIn
Original file line number Diff line number Diff line change 1
- @file:Suppress( " EXPERIMENTAL_API_USAGE " )
1
+ @file:OptIn( ExperimentalCoroutinesApi :: class )
2
2
3
3
package com.squareup.workflow1.testing
4
4
@@ -19,6 +19,7 @@ import kotlinx.coroutines.CancellationException
19
19
import kotlinx.coroutines.CoroutineExceptionHandler
20
20
import kotlinx.coroutines.CoroutineScope
21
21
import kotlinx.coroutines.Dispatchers.Unconfined
22
+ import kotlinx.coroutines.ExperimentalCoroutinesApi
22
23
import kotlinx.coroutines.Job
23
24
import kotlinx.coroutines.NonCancellable
24
25
import kotlinx.coroutines.cancel
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ tasks.withType<KotlinCompile> {
26
26
kotlinOptions {
27
27
@Suppress(" SuspiciousCollectionReassignment" )
28
28
freeCompilerArgs + = listOf (
29
- " -Xopt -in=kotlin.RequiresOptIn"
29
+ " -opt -in=kotlin.RequiresOptIn"
30
30
)
31
31
}
32
32
}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ tasks.withType<KotlinCompile> {
26
26
kotlinOptions {
27
27
@Suppress(" SuspiciousCollectionReassignment" )
28
28
freeCompilerArgs + = listOf (
29
- " -Xopt -in=kotlin.RequiresOptIn"
29
+ " -opt -in=kotlin.RequiresOptIn"
30
30
)
31
31
}
32
32
}
You can’t perform that action at this time.
0 commit comments