diff --git a/cache/src/commonMain/kotlin/BatchingCacheAdapter.kt b/cache/src/commonMain/kotlin/BatchingCacheAdapter.kt index d40f3ad..65a75ef 100644 --- a/cache/src/commonMain/kotlin/BatchingCacheAdapter.kt +++ b/cache/src/commonMain/kotlin/BatchingCacheAdapter.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022-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.cache import kotlinx.coroutines.* diff --git a/cache/src/commonMain/kotlin/Cache.kt b/cache/src/commonMain/kotlin/Cache.kt index 79d6f6f..7c0615d 100644 --- a/cache/src/commonMain/kotlin/Cache.kt +++ b/cache/src/commonMain/kotlin/Cache.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022-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.cache import kotlinx.coroutines.flow.Flow diff --git a/cache/src/commonMain/kotlin/CacheAdapter.kt b/cache/src/commonMain/kotlin/CacheAdapter.kt index 5311057..3295be1 100644 --- a/cache/src/commonMain/kotlin/CacheAdapter.kt +++ b/cache/src/commonMain/kotlin/CacheAdapter.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022-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.cache import opensavvy.state.coroutines.ProgressiveFlow diff --git a/cache/src/commonMain/kotlin/ExperimentalCacheApi.kt b/cache/src/commonMain/kotlin/ExperimentalCacheApi.kt index 162d57d..176a646 100644 --- a/cache/src/commonMain/kotlin/ExperimentalCacheApi.kt +++ b/cache/src/commonMain/kotlin/ExperimentalCacheApi.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.cache @RequiresOptIn("This API has not been stabilized yet. We expect to make breaking changes to it in the future. If you have some ideas of how it could be used, please contact us so we can take it into account.") diff --git a/cache/src/commonMain/kotlin/ExpirationCache.kt b/cache/src/commonMain/kotlin/ExpirationCache.kt index 5bb951d..9156210 100644 --- a/cache/src/commonMain/kotlin/ExpirationCache.kt +++ b/cache/src/commonMain/kotlin/ExpirationCache.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022-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.cache import kotlinx.coroutines.* diff --git a/cache/src/commonMain/kotlin/MemoryCache.kt b/cache/src/commonMain/kotlin/MemoryCache.kt index 930fc88..6e1da71 100644 --- a/cache/src/commonMain/kotlin/MemoryCache.kt +++ b/cache/src/commonMain/kotlin/MemoryCache.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022-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.cache import kotlinx.coroutines.* diff --git a/cache/src/commonMain/kotlin/contextual/ContextualBatchingCacheAdapter.kt b/cache/src/commonMain/kotlin/contextual/ContextualBatchingCacheAdapter.kt index 820e0c9..10f7c71 100644 --- a/cache/src/commonMain/kotlin/contextual/ContextualBatchingCacheAdapter.kt +++ b/cache/src/commonMain/kotlin/contextual/ContextualBatchingCacheAdapter.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.cache.contextual import kotlinx.coroutines.CoroutineScope diff --git a/cache/src/commonMain/kotlin/contextual/ContextualCache.kt b/cache/src/commonMain/kotlin/contextual/ContextualCache.kt index cba12e5..00802af 100644 --- a/cache/src/commonMain/kotlin/contextual/ContextualCache.kt +++ b/cache/src/commonMain/kotlin/contextual/ContextualCache.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.cache.contextual import kotlinx.coroutines.flow.Flow diff --git a/cache/src/commonMain/kotlin/contextual/ContextualCacheAdapter.kt b/cache/src/commonMain/kotlin/contextual/ContextualCacheAdapter.kt index 731f7d7..e24147c 100644 --- a/cache/src/commonMain/kotlin/contextual/ContextualCacheAdapter.kt +++ b/cache/src/commonMain/kotlin/contextual/ContextualCacheAdapter.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.cache.contextual import opensavvy.cache.Cache diff --git a/cache/src/commonMain/kotlin/contextual/ContextualExpirationCache.kt b/cache/src/commonMain/kotlin/contextual/ContextualExpirationCache.kt index ef77f97..5cd8c5a 100644 --- a/cache/src/commonMain/kotlin/contextual/ContextualExpirationCache.kt +++ b/cache/src/commonMain/kotlin/contextual/ContextualExpirationCache.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.cache.contextual import kotlinx.coroutines.CoroutineScope diff --git a/cache/src/commonMain/kotlin/contextual/ContextualMemoryCache.kt b/cache/src/commonMain/kotlin/contextual/ContextualMemoryCache.kt index c833f64..e726811 100644 --- a/cache/src/commonMain/kotlin/contextual/ContextualMemoryCache.kt +++ b/cache/src/commonMain/kotlin/contextual/ContextualMemoryCache.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.cache.contextual import kotlinx.coroutines.Job diff --git a/cache/src/commonMain/kotlin/contextual/ContextualWrapper.kt b/cache/src/commonMain/kotlin/contextual/ContextualWrapper.kt index be1077d..07ffe8a 100644 --- a/cache/src/commonMain/kotlin/contextual/ContextualWrapper.kt +++ b/cache/src/commonMain/kotlin/contextual/ContextualWrapper.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.cache.contextual import opensavvy.cache.Cache diff --git a/cache/src/commonTest/kotlin/CacheAdapterTest.kt b/cache/src/commonTest/kotlin/CacheAdapterTest.kt index 72e70f7..f82305a 100644 --- a/cache/src/commonTest/kotlin/CacheAdapterTest.kt +++ b/cache/src/commonTest/kotlin/CacheAdapterTest.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.cache import opensavvy.cache.properties.contextPassthrough diff --git a/cache/src/commonTest/kotlin/ContextualCacheTest.kt b/cache/src/commonTest/kotlin/ContextualCacheTest.kt index c90b5f8..17d1e2e 100644 --- a/cache/src/commonTest/kotlin/ContextualCacheTest.kt +++ b/cache/src/commonTest/kotlin/ContextualCacheTest.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.cache import kotlinx.coroutines.ExperimentalCoroutinesApi diff --git a/cache/src/commonTest/kotlin/ExpirationCacheTest.kt b/cache/src/commonTest/kotlin/ExpirationCacheTest.kt index 31bf8af..7885ac3 100644 --- a/cache/src/commonTest/kotlin/ExpirationCacheTest.kt +++ b/cache/src/commonTest/kotlin/ExpirationCacheTest.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.cache import kotlinx.coroutines.ExperimentalCoroutinesApi diff --git a/cache/src/commonTest/kotlin/MemoryCacheTest.kt b/cache/src/commonTest/kotlin/MemoryCacheTest.kt index 8233e80..cfb3217 100644 --- a/cache/src/commonTest/kotlin/MemoryCacheTest.kt +++ b/cache/src/commonTest/kotlin/MemoryCacheTest.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.cache import kotlinx.coroutines.CoroutineName diff --git a/cache/src/commonTest/kotlin/properties/BatchingCacheAdapter.kt b/cache/src/commonTest/kotlin/properties/BatchingCacheAdapter.kt index 8ad615e..c745516 100644 --- a/cache/src/commonTest/kotlin/properties/BatchingCacheAdapter.kt +++ b/cache/src/commonTest/kotlin/properties/BatchingCacheAdapter.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.cache.properties import kotlinx.coroutines.ExperimentalCoroutinesApi diff --git a/cache/src/commonTest/kotlin/properties/ContextPassthrough.kt b/cache/src/commonTest/kotlin/properties/ContextPassthrough.kt index bde08ee..0458317 100644 --- a/cache/src/commonTest/kotlin/properties/ContextPassthrough.kt +++ b/cache/src/commonTest/kotlin/properties/ContextPassthrough.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.cache.properties import kotlinx.coroutines.currentCoroutineContext diff --git a/cache/src/commonTest/kotlin/properties/TestCache.kt b/cache/src/commonTest/kotlin/properties/TestCache.kt index 9538fe5..f9dd9bb 100644 --- a/cache/src/commonTest/kotlin/properties/TestCache.kt +++ b/cache/src/commonTest/kotlin/properties/TestCache.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.cache.properties import arrow.core.raise.ensure diff --git a/cache/src/commonTest/kotlin/properties/UpdateExpires.kt b/cache/src/commonTest/kotlin/properties/UpdateExpires.kt index 1a68788..b3ad0a9 100644 --- a/cache/src/commonTest/kotlin/properties/UpdateExpires.kt +++ b/cache/src/commonTest/kotlin/properties/UpdateExpires.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.cache.properties import opensavvy.prepared.suite.SuiteDsl diff --git a/cache/src/jsMain/kotlin/BrowserStorageCache.kt b/cache/src/jsMain/kotlin/BrowserStorageCache.kt index 63ae323..6e44c50 100644 --- a/cache/src/jsMain/kotlin/BrowserStorageCache.kt +++ b/cache/src/jsMain/kotlin/BrowserStorageCache.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.cache import kotlinx.browser.localStorage