File tree Expand file tree Collapse file tree 12 files changed +554
-41
lines changed
stream-android-core-annotations
main/java/io/getstream/android/core
test/java/io/getstream/android/core/api/model/retry Expand file tree Collapse file tree 12 files changed +554
-41
lines changed Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved.
3+ *
4+ * Licensed under the Stream 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+ * https://github.com/GetStream/stream-core-android/blob/main/LICENSE
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+
117plugins {
218 alias(libs.plugins.stream.android.application)
319 alias(libs.plugins.kotlin.android)
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved.
3+ *
4+ * Licensed under the Stream 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+ * https://github.com/GetStream/stream-core-android/blob/main/LICENSE
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+
117import com.android.build.api.dsl.ApplicationExtension
218import com.android.build.api.dsl.LibraryExtension
319import com.vanniktech.maven.publish.MavenPublishBaseExtension
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved.
3+ *
4+ * Licensed under the Stream 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+ * https://github.com/GetStream/stream-core-android/blob/main/LICENSE
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+ */
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved.
3+ *
4+ * Licensed under the Stream 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+ * https://github.com/GetStream/stream-core-android/blob/main/LICENSE
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+
117include(" :stream-android-core-annotations" )
218
319
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved.
3+ *
4+ * Licensed under the Stream 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+ * https://github.com/GetStream/stream-core-android/blob/main/LICENSE
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+
117plugins {
218 alias(libs.plugins.jetbrains.kotlin.jvm)
319 alias(libs.plugins.stream.java.library)
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved.
3+ *
4+ * Licensed under the Stream 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+ * https://github.com/GetStream/stream-core-android/blob/main/LICENSE
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+
117plugins {
218 alias(libs.plugins.jetbrains.kotlin.jvm)
319 alias(libs.plugins.stream.java.library)
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved.
3+ *
4+ * Licensed under the Stream 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+ * https://github.com/GetStream/stream-core-android/blob/main/LICENSE
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+
117@file:OptIn(ExperimentalAbiValidation ::class )
218
319import org.jetbrains.kotlin.gradle.dsl.JvmTarget
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved.
3+ *
4+ * Licensed under the Stream 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+ * https://github.com/GetStream/stream-core-android/blob/main/LICENSE
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+
117package io.getstream.android.core.api.model.retry
218
319import io.getstream.android.core.annotations.StreamInternalApi
4- import io.getstream.android.core.api.model.retry.StreamRetryPolicy
520
621/* *
722 * Snapshot describing the state of the current retry loop iteration.
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved.
3+ *
4+ * Licensed under the Stream 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+ * https://github.com/GetStream/stream-core-android/blob/main/LICENSE
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+
117package io.getstream.android.core.api.model.retry
218
319import io.getstream.android.core.annotations.StreamInternalApi
@@ -218,4 +234,4 @@ private constructor(
218234 return this
219235 }
220236 }
221- }
237+ }
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ package io.getstream.android.core.api.processing
1818
1919import io.getstream.android.core.annotations.StreamInternalApi
2020import io.getstream.android.core.api.log.StreamLogger
21- import io.getstream.android.core.api.model.retry.StreamRetryPolicy
2221import io.getstream.android.core.api.model.retry.StreamRetryAttemptInfo
22+ import io.getstream.android.core.api.model.retry.StreamRetryPolicy
2323import io.getstream.android.core.internal.processing.StreamRetryProcessorImpl
2424
2525/* *
@@ -55,7 +55,10 @@ public interface StreamRetryProcessor {
5555 * @param block The suspending operation to execute. It should throw on failure; the processor
5656 * handles re-invocation.
5757 */
58- public suspend fun <T > retry (policy : StreamRetryPolicy , block : suspend (attempt: StreamRetryAttemptInfo ) -> T ): Result <T >
58+ public suspend fun <T > retry (
59+ policy : StreamRetryPolicy ,
60+ block : suspend (attempt: StreamRetryAttemptInfo ) -> T ,
61+ ): Result <T >
5962}
6063
6164/* *
You can’t perform that action at this time.
0 commit comments