Fake Google Play reviews in a way that Kotlin and its management-infested linter will tolerate
parent
d69b053863
commit
77791e5828
@ -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
|
||||||
|
}
|
||||||
|
}
|
@ -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();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue