diff --git a/progress-coroutines/src/commonMain/kotlin/CoroutineProgressReporter.kt b/progress-coroutines/src/commonMain/kotlin/CoroutineProgressReporter.kt index 6f8acf4..4fc57fb 100644 --- a/progress-coroutines/src/commonMain/kotlin/CoroutineProgressReporter.kt +++ b/progress-coroutines/src/commonMain/kotlin/CoroutineProgressReporter.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2023-2025, OpenSavvy and contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package opensavvy.progress.coroutines import kotlinx.coroutines.currentCoroutineContext diff --git a/progress-coroutines/src/commonMain/kotlin/ProgressFlow.kt b/progress-coroutines/src/commonMain/kotlin/ProgressFlow.kt index 9e47eb0..e13acdd 100644 --- a/progress-coroutines/src/commonMain/kotlin/ProgressFlow.kt +++ b/progress-coroutines/src/commonMain/kotlin/ProgressFlow.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2024-2025, OpenSavvy and contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package opensavvy.progress.coroutines import kotlinx.coroutines.channels.ProducerScope diff --git a/progress-coroutines/src/commonMain/kotlin/ProgressReportTransformer.kt b/progress-coroutines/src/commonMain/kotlin/ProgressReportTransformer.kt index b8da4ee..a7de2ed 100644 --- a/progress-coroutines/src/commonMain/kotlin/ProgressReportTransformer.kt +++ b/progress-coroutines/src/commonMain/kotlin/ProgressReportTransformer.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2023-2025, OpenSavvy and contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package opensavvy.progress.coroutines import kotlinx.coroutines.currentCoroutineContext diff --git a/progress-coroutines/src/commonMain/kotlin/StateFlowProgressReporter.kt b/progress-coroutines/src/commonMain/kotlin/StateFlowProgressReporter.kt index f33bc18..5e67326 100644 --- a/progress-coroutines/src/commonMain/kotlin/StateFlowProgressReporter.kt +++ b/progress-coroutines/src/commonMain/kotlin/StateFlowProgressReporter.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2023-2025, OpenSavvy and contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package opensavvy.progress.coroutines import kotlinx.coroutines.flow.MutableStateFlow diff --git a/progress-coroutines/src/commonTest/kotlin/CoroutineProgressReporterTest.kt b/progress-coroutines/src/commonTest/kotlin/CoroutineProgressReporterTest.kt index 7c30cfc..77d1cd9 100644 --- a/progress-coroutines/src/commonTest/kotlin/CoroutineProgressReporterTest.kt +++ b/progress-coroutines/src/commonTest/kotlin/CoroutineProgressReporterTest.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2023-2025, OpenSavvy and contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package opensavvy.progress.coroutines import kotlinx.coroutines.withContext diff --git a/progress-coroutines/src/commonTest/kotlin/ProgressReportTransformerTest.kt b/progress-coroutines/src/commonTest/kotlin/ProgressReportTransformerTest.kt index ab8930b..13a3c3f 100644 --- a/progress-coroutines/src/commonTest/kotlin/ProgressReportTransformerTest.kt +++ b/progress-coroutines/src/commonTest/kotlin/ProgressReportTransformerTest.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2023-2025, OpenSavvy and contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package opensavvy.progress.coroutines import kotlinx.coroutines.withContext diff --git a/progress-coroutines/src/commonTest/kotlin/ProgressiveFlow.kt b/progress-coroutines/src/commonTest/kotlin/ProgressiveFlow.kt index 6959206..e77ab3d 100644 --- a/progress-coroutines/src/commonTest/kotlin/ProgressiveFlow.kt +++ b/progress-coroutines/src/commonTest/kotlin/ProgressiveFlow.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2024-2025, OpenSavvy and contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package opensavvy.progress.coroutines import io.kotest.matchers.shouldBe diff --git a/progress-coroutines/src/commonTest/kotlin/StateFlowProgressReporterTest.kt b/progress-coroutines/src/commonTest/kotlin/StateFlowProgressReporterTest.kt index 85d4384..f799fde 100644 --- a/progress-coroutines/src/commonTest/kotlin/StateFlowProgressReporterTest.kt +++ b/progress-coroutines/src/commonTest/kotlin/StateFlowProgressReporterTest.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2023-2025, OpenSavvy and contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package opensavvy.progress.coroutines import kotlinx.coroutines.flow.toList