diff --git a/app/src/main/java/com/google/android/play/core/review/ReviewManager.kt b/app/src/main/java/com/google/android/play/core/review/ReviewManager.kt new file mode 100644 index 000000000..789802987 --- /dev/null +++ b/app/src/main/java/com/google/android/play/core/review/ReviewManager.kt @@ -0,0 +1,24 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +package com.google.android.play.core.review +class ReviewManager { + + class FakeReviewFlowTaskResult { + val isSuccessful: Boolean = false + val result: Any = false + } + class FakeReviewFlowTask { + @Suppress("UNUSED_PARAMETER", "UNUSED_EXPRESSION") + fun addOnCompleteListener(ignored: (FakeReviewFlowTaskResult) -> Unit) { + 1 + } + } + fun requestReviewFlow(): FakeReviewFlowTask { + return FakeReviewFlowTask() + } + @Suppress("UNUSED_PARAMETER", "UNUSED_EXPRESSION") + fun launchReviewFlow(ignored1: Any, ignored2: Any) { + 1 + } +} diff --git a/app/src/main/java/com/google/android/play/core/review/ReviewManagerFactory.java b/app/src/main/java/com/google/android/play/core/review/ReviewManagerFactory.java new file mode 100644 index 000000000..3506da2ff --- /dev/null +++ b/app/src/main/java/com/google/android/play/core/review/ReviewManagerFactory.java @@ -0,0 +1,17 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +package com.google.android.play.core.review; + +import android.content.Context; +import com.google.android.play.core.review.ReviewManager; + + +public class ReviewManagerFactory { + + public static ReviewManager create(Context context) { + return new ReviewManager(); + } + +}