react-native-rate-app 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/generated/java/com/rateapp/NativeRateAppSpec.java +46 -0
- package/android/generated/jni/CMakeLists.txt +36 -0
- package/android/generated/jni/RateAppSpec-generated.cpp +44 -0
- package/android/generated/jni/RateAppSpec.h +31 -0
- package/android/generated/jni/react/renderer/components/RateAppSpec/RateAppSpecJSI-generated.cpp +39 -0
- package/android/generated/jni/react/renderer/components/RateAppSpec/RateAppSpecJSI.h +89 -0
- package/ios/RateApp.h +1 -2
- package/ios/RateApp.mm +16 -0
- package/ios/generated/RateAppSpec/RateAppSpec-generated.mm +53 -0
- package/ios/generated/RateAppSpec/RateAppSpec.h +68 -0
- package/ios/generated/RateAppSpecJSI-generated.cpp +39 -0
- package/ios/generated/RateAppSpecJSI.h +89 -0
- package/lib/commonjs/codegenSpec/NativeRateApp.js.map +1 -0
- package/lib/commonjs/index.js +1 -1
- package/lib/module/codegenSpec/NativeRateApp.js.map +1 -0
- package/lib/module/index.js +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/codegenSpec/NativeRateApp.d.ts.map +1 -0
- package/package.json +5 -4
- package/src/index.tsx +1 -1
- package/lib/commonjs/NativeRateApp.js.map +0 -1
- package/lib/module/NativeRateApp.js.map +0 -1
- package/lib/typescript/NativeRateApp.d.ts.map +0 -1
- /package/lib/commonjs/{NativeRateApp.js → codegenSpec/NativeRateApp.js} +0 -0
- /package/lib/module/{NativeRateApp.js → codegenSpec/NativeRateApp.js} +0 -0
- /package/lib/typescript/{NativeRateApp.d.ts → codegenSpec/NativeRateApp.d.ts} +0 -0
- /package/src/{NativeRateApp.ts → codegenSpec/NativeRateApp.ts} +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
+
*
|
|
5
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
+
* once the code is regenerated.
|
|
7
|
+
*
|
|
8
|
+
* @generated by codegen project: GenerateModuleJavaSpec.js
|
|
9
|
+
*
|
|
10
|
+
* @nolint
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
package com.rateapp;
|
|
14
|
+
|
|
15
|
+
import com.facebook.proguard.annotations.DoNotStrip;
|
|
16
|
+
import com.facebook.react.bridge.Promise;
|
|
17
|
+
import com.facebook.react.bridge.ReactApplicationContext;
|
|
18
|
+
import com.facebook.react.bridge.ReactContextBaseJavaModule;
|
|
19
|
+
import com.facebook.react.bridge.ReactMethod;
|
|
20
|
+
import com.facebook.react.turbomodule.core.interfaces.TurboModule;
|
|
21
|
+
import javax.annotation.Nonnull;
|
|
22
|
+
|
|
23
|
+
public abstract class NativeRateAppSpec extends ReactContextBaseJavaModule implements TurboModule {
|
|
24
|
+
public static final String NAME = "RateApp";
|
|
25
|
+
|
|
26
|
+
public NativeRateAppSpec(ReactApplicationContext reactContext) {
|
|
27
|
+
super(reactContext);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@Override
|
|
31
|
+
public @Nonnull String getName() {
|
|
32
|
+
return NAME;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@ReactMethod
|
|
36
|
+
@DoNotStrip
|
|
37
|
+
public abstract void requestReview(Promise promise);
|
|
38
|
+
|
|
39
|
+
@ReactMethod
|
|
40
|
+
@DoNotStrip
|
|
41
|
+
public abstract void requestReviewAppGallery(Promise promise);
|
|
42
|
+
|
|
43
|
+
@ReactMethod
|
|
44
|
+
@DoNotStrip
|
|
45
|
+
public abstract void requestReviewGalaxyStore(String androidPackageName, Promise promise);
|
|
46
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
#
|
|
3
|
+
# This source code is licensed under the MIT license found in the
|
|
4
|
+
# LICENSE file in the root directory of this source tree.
|
|
5
|
+
|
|
6
|
+
cmake_minimum_required(VERSION 3.13)
|
|
7
|
+
set(CMAKE_VERBOSE_MAKEFILE on)
|
|
8
|
+
|
|
9
|
+
file(GLOB react_codegen_SRCS CONFIGURE_DEPENDS *.cpp react/renderer/components/RateAppSpec/*.cpp)
|
|
10
|
+
|
|
11
|
+
add_library(
|
|
12
|
+
react_codegen_RateAppSpec
|
|
13
|
+
OBJECT
|
|
14
|
+
${react_codegen_SRCS}
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
target_include_directories(react_codegen_RateAppSpec PUBLIC . react/renderer/components/RateAppSpec)
|
|
18
|
+
|
|
19
|
+
target_link_libraries(
|
|
20
|
+
react_codegen_RateAppSpec
|
|
21
|
+
fbjni
|
|
22
|
+
jsi
|
|
23
|
+
# We need to link different libraries based on whether we are building rncore or not, that's necessary
|
|
24
|
+
# because we want to break a circular dependency between react_codegen_rncore and reactnative
|
|
25
|
+
reactnative
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
target_compile_options(
|
|
29
|
+
react_codegen_RateAppSpec
|
|
30
|
+
PRIVATE
|
|
31
|
+
-DLOG_TAG=\"ReactNative\"
|
|
32
|
+
-fexceptions
|
|
33
|
+
-frtti
|
|
34
|
+
-std=c++20
|
|
35
|
+
-Wall
|
|
36
|
+
)
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
+
*
|
|
5
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
+
* once the code is regenerated.
|
|
7
|
+
*
|
|
8
|
+
* @generated by codegen project: GenerateModuleJniCpp.js
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
#include "RateAppSpec.h"
|
|
12
|
+
|
|
13
|
+
namespace facebook::react {
|
|
14
|
+
|
|
15
|
+
static facebook::jsi::Value __hostFunction_NativeRateAppSpecJSI_requestReview(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
16
|
+
static jmethodID cachedMethodId = nullptr;
|
|
17
|
+
return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "requestReview", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
static facebook::jsi::Value __hostFunction_NativeRateAppSpecJSI_requestReviewAppGallery(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
21
|
+
static jmethodID cachedMethodId = nullptr;
|
|
22
|
+
return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "requestReviewAppGallery", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
static facebook::jsi::Value __hostFunction_NativeRateAppSpecJSI_requestReviewGalaxyStore(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
26
|
+
static jmethodID cachedMethodId = nullptr;
|
|
27
|
+
return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "requestReviewGalaxyStore", "(Ljava/lang/String;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
NativeRateAppSpecJSI::NativeRateAppSpecJSI(const JavaTurboModule::InitParams ¶ms)
|
|
31
|
+
: JavaTurboModule(params) {
|
|
32
|
+
methodMap_["requestReview"] = MethodMetadata {0, __hostFunction_NativeRateAppSpecJSI_requestReview};
|
|
33
|
+
methodMap_["requestReviewAppGallery"] = MethodMetadata {0, __hostFunction_NativeRateAppSpecJSI_requestReviewAppGallery};
|
|
34
|
+
methodMap_["requestReviewGalaxyStore"] = MethodMetadata {1, __hostFunction_NativeRateAppSpecJSI_requestReviewGalaxyStore};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
std::shared_ptr<TurboModule> RateAppSpec_ModuleProvider(const std::string &moduleName, const JavaTurboModule::InitParams ¶ms) {
|
|
38
|
+
if (moduleName == "RateApp") {
|
|
39
|
+
return std::make_shared<NativeRateAppSpecJSI>(params);
|
|
40
|
+
}
|
|
41
|
+
return nullptr;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
} // namespace facebook::react
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
+
*
|
|
5
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
+
* once the code is regenerated.
|
|
7
|
+
*
|
|
8
|
+
* @generated by codegen project: GenerateModuleJniH.js
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
#pragma once
|
|
12
|
+
|
|
13
|
+
#include <ReactCommon/JavaTurboModule.h>
|
|
14
|
+
#include <ReactCommon/TurboModule.h>
|
|
15
|
+
#include <jsi/jsi.h>
|
|
16
|
+
|
|
17
|
+
namespace facebook::react {
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* JNI C++ class for module 'NativeRateApp'
|
|
21
|
+
*/
|
|
22
|
+
class JSI_EXPORT NativeRateAppSpecJSI : public JavaTurboModule {
|
|
23
|
+
public:
|
|
24
|
+
NativeRateAppSpecJSI(const JavaTurboModule::InitParams ¶ms);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
JSI_EXPORT
|
|
29
|
+
std::shared_ptr<TurboModule> RateAppSpec_ModuleProvider(const std::string &moduleName, const JavaTurboModule::InitParams ¶ms);
|
|
30
|
+
|
|
31
|
+
} // namespace facebook::react
|
package/android/generated/jni/react/renderer/components/RateAppSpec/RateAppSpecJSI-generated.cpp
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
3
|
+
*
|
|
4
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
5
|
+
* once the code is regenerated.
|
|
6
|
+
*
|
|
7
|
+
* @generated by codegen project: GenerateModuleCpp.js
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
#include "RateAppSpecJSI.h"
|
|
11
|
+
|
|
12
|
+
namespace facebook::react {
|
|
13
|
+
|
|
14
|
+
static jsi::Value __hostFunction_NativeRateAppCxxSpecJSI_requestReview(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
15
|
+
return static_cast<NativeRateAppCxxSpecJSI *>(&turboModule)->requestReview(
|
|
16
|
+
rt
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
static jsi::Value __hostFunction_NativeRateAppCxxSpecJSI_requestReviewAppGallery(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
20
|
+
return static_cast<NativeRateAppCxxSpecJSI *>(&turboModule)->requestReviewAppGallery(
|
|
21
|
+
rt
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
static jsi::Value __hostFunction_NativeRateAppCxxSpecJSI_requestReviewGalaxyStore(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
25
|
+
return static_cast<NativeRateAppCxxSpecJSI *>(&turboModule)->requestReviewGalaxyStore(
|
|
26
|
+
rt,
|
|
27
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
NativeRateAppCxxSpecJSI::NativeRateAppCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
|
|
32
|
+
: TurboModule("RateApp", jsInvoker) {
|
|
33
|
+
methodMap_["requestReview"] = MethodMetadata {0, __hostFunction_NativeRateAppCxxSpecJSI_requestReview};
|
|
34
|
+
methodMap_["requestReviewAppGallery"] = MethodMetadata {0, __hostFunction_NativeRateAppCxxSpecJSI_requestReviewAppGallery};
|
|
35
|
+
methodMap_["requestReviewGalaxyStore"] = MethodMetadata {1, __hostFunction_NativeRateAppCxxSpecJSI_requestReviewGalaxyStore};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
} // namespace facebook::react
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
3
|
+
*
|
|
4
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
5
|
+
* once the code is regenerated.
|
|
6
|
+
*
|
|
7
|
+
* @generated by codegen project: GenerateModuleH.js
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
#pragma once
|
|
11
|
+
|
|
12
|
+
#include <ReactCommon/TurboModule.h>
|
|
13
|
+
#include <react/bridging/Bridging.h>
|
|
14
|
+
|
|
15
|
+
namespace facebook::react {
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class JSI_EXPORT NativeRateAppCxxSpecJSI : public TurboModule {
|
|
19
|
+
protected:
|
|
20
|
+
NativeRateAppCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
|
|
21
|
+
|
|
22
|
+
public:
|
|
23
|
+
virtual jsi::Value requestReview(jsi::Runtime &rt) = 0;
|
|
24
|
+
virtual jsi::Value requestReviewAppGallery(jsi::Runtime &rt) = 0;
|
|
25
|
+
virtual jsi::Value requestReviewGalaxyStore(jsi::Runtime &rt, jsi::String androidPackageName) = 0;
|
|
26
|
+
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
template <typename T>
|
|
30
|
+
class JSI_EXPORT NativeRateAppCxxSpec : public TurboModule {
|
|
31
|
+
public:
|
|
32
|
+
jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override {
|
|
33
|
+
return delegate_.create(rt, propName);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime& runtime) override {
|
|
37
|
+
return delegate_.getPropertyNames(runtime);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
static constexpr std::string_view kModuleName = "RateApp";
|
|
41
|
+
|
|
42
|
+
protected:
|
|
43
|
+
NativeRateAppCxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
|
|
44
|
+
: TurboModule(std::string{NativeRateAppCxxSpec::kModuleName}, jsInvoker),
|
|
45
|
+
delegate_(reinterpret_cast<T*>(this), jsInvoker) {}
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
private:
|
|
49
|
+
class Delegate : public NativeRateAppCxxSpecJSI {
|
|
50
|
+
public:
|
|
51
|
+
Delegate(T *instance, std::shared_ptr<CallInvoker> jsInvoker) :
|
|
52
|
+
NativeRateAppCxxSpecJSI(std::move(jsInvoker)), instance_(instance) {
|
|
53
|
+
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
jsi::Value requestReview(jsi::Runtime &rt) override {
|
|
57
|
+
static_assert(
|
|
58
|
+
bridging::getParameterCount(&T::requestReview) == 1,
|
|
59
|
+
"Expected requestReview(...) to have 1 parameters");
|
|
60
|
+
|
|
61
|
+
return bridging::callFromJs<jsi::Value>(
|
|
62
|
+
rt, &T::requestReview, jsInvoker_, instance_);
|
|
63
|
+
}
|
|
64
|
+
jsi::Value requestReviewAppGallery(jsi::Runtime &rt) override {
|
|
65
|
+
static_assert(
|
|
66
|
+
bridging::getParameterCount(&T::requestReviewAppGallery) == 1,
|
|
67
|
+
"Expected requestReviewAppGallery(...) to have 1 parameters");
|
|
68
|
+
|
|
69
|
+
return bridging::callFromJs<jsi::Value>(
|
|
70
|
+
rt, &T::requestReviewAppGallery, jsInvoker_, instance_);
|
|
71
|
+
}
|
|
72
|
+
jsi::Value requestReviewGalaxyStore(jsi::Runtime &rt, jsi::String androidPackageName) override {
|
|
73
|
+
static_assert(
|
|
74
|
+
bridging::getParameterCount(&T::requestReviewGalaxyStore) == 2,
|
|
75
|
+
"Expected requestReviewGalaxyStore(...) to have 2 parameters");
|
|
76
|
+
|
|
77
|
+
return bridging::callFromJs<jsi::Value>(
|
|
78
|
+
rt, &T::requestReviewGalaxyStore, jsInvoker_, instance_, std::move(androidPackageName));
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
private:
|
|
82
|
+
friend class NativeRateAppCxxSpec;
|
|
83
|
+
T *instance_;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
Delegate delegate_;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
} // namespace facebook::react
|
package/ios/RateApp.h
CHANGED
package/ios/RateApp.mm
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
#import <StoreKit/StoreKit.h>
|
|
3
3
|
|
|
4
4
|
static NSString *const kNoActiveSceneError = @"no_active_scene";
|
|
5
|
+
static NSString *const kUnsupportedPlatformError = @"unsupported_platform";
|
|
5
6
|
|
|
6
7
|
@implementation RateApp
|
|
7
8
|
RCT_EXPORT_MODULE()
|
|
@@ -18,6 +19,21 @@ RCT_EXPORT_METHOD(requestReview:(RCTPromiseResolveBlock)resolve
|
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
21
|
|
|
22
|
+
RCT_EXPORT_METHOD(requestReviewAppGallery:(RCTPromiseResolveBlock)resolve
|
|
23
|
+
reject:(RCTPromiseRejectBlock)reject)
|
|
24
|
+
{
|
|
25
|
+
// Since this is iOS, we should reject with an appropriate message
|
|
26
|
+
reject(kUnsupportedPlatformError, @"App Gallery reviews are not supported on iOS", nil);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
RCT_EXPORT_METHOD(requestReviewGalaxyStore:(NSString *)packageName
|
|
30
|
+
resolve:(RCTPromiseResolveBlock)resolve
|
|
31
|
+
reject:(RCTPromiseRejectBlock)reject)
|
|
32
|
+
{
|
|
33
|
+
// Since this is iOS, we should reject with an appropriate message
|
|
34
|
+
reject(kUnsupportedPlatformError, @"Galaxy Store reviews are not supported on iOS", nil);
|
|
35
|
+
}
|
|
36
|
+
|
|
21
37
|
- (UIWindowScene *) findActiveScene {
|
|
22
38
|
for (UIWindowScene *scene in UIApplication.sharedApplication.connectedScenes) {
|
|
23
39
|
if (scene.activationState == UISceneActivationStateForegroundActive) {
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
3
|
+
*
|
|
4
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
5
|
+
* once the code is regenerated.
|
|
6
|
+
*
|
|
7
|
+
* @generated by codegen project: GenerateModuleObjCpp
|
|
8
|
+
*
|
|
9
|
+
* We create an umbrella header (and corresponding implementation) here since
|
|
10
|
+
* Cxx compilation in BUCK has a limitation: source-code producing genrule()s
|
|
11
|
+
* must have a single output. More files => more genrule()s => slower builds.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
#import "RateAppSpec.h"
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@implementation NativeRateAppSpecBase
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
- (void)setEventEmitterCallback:(EventEmitterCallbackWrapper *)eventEmitterCallbackWrapper
|
|
21
|
+
{
|
|
22
|
+
_eventEmitterCallback = std::move(eventEmitterCallbackWrapper->_eventEmitterCallback);
|
|
23
|
+
}
|
|
24
|
+
@end
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
namespace facebook::react {
|
|
28
|
+
|
|
29
|
+
static facebook::jsi::Value __hostFunction_NativeRateAppSpecJSI_requestReview(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
30
|
+
return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "requestReview", @selector(requestReview:reject:), args, count);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
static facebook::jsi::Value __hostFunction_NativeRateAppSpecJSI_requestReviewAppGallery(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
34
|
+
return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "requestReviewAppGallery", @selector(requestReviewAppGallery:reject:), args, count);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
static facebook::jsi::Value __hostFunction_NativeRateAppSpecJSI_requestReviewGalaxyStore(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
38
|
+
return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "requestReviewGalaxyStore", @selector(requestReviewGalaxyStore:resolve:reject:), args, count);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
NativeRateAppSpecJSI::NativeRateAppSpecJSI(const ObjCTurboModule::InitParams ¶ms)
|
|
42
|
+
: ObjCTurboModule(params) {
|
|
43
|
+
|
|
44
|
+
methodMap_["requestReview"] = MethodMetadata {0, __hostFunction_NativeRateAppSpecJSI_requestReview};
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
methodMap_["requestReviewAppGallery"] = MethodMetadata {0, __hostFunction_NativeRateAppSpecJSI_requestReviewAppGallery};
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
methodMap_["requestReviewGalaxyStore"] = MethodMetadata {1, __hostFunction_NativeRateAppSpecJSI_requestReviewGalaxyStore};
|
|
51
|
+
|
|
52
|
+
}
|
|
53
|
+
} // namespace facebook::react
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
3
|
+
*
|
|
4
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
5
|
+
* once the code is regenerated.
|
|
6
|
+
*
|
|
7
|
+
* @generated by codegen project: GenerateModuleObjCpp
|
|
8
|
+
*
|
|
9
|
+
* We create an umbrella header (and corresponding implementation) here since
|
|
10
|
+
* Cxx compilation in BUCK has a limitation: source-code producing genrule()s
|
|
11
|
+
* must have a single output. More files => more genrule()s => slower builds.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
#ifndef __cplusplus
|
|
15
|
+
#error This file must be compiled as Obj-C++. If you are importing it, you must change your file extension to .mm.
|
|
16
|
+
#endif
|
|
17
|
+
|
|
18
|
+
// Avoid multiple includes of RateAppSpec symbols
|
|
19
|
+
#ifndef RateAppSpec_H
|
|
20
|
+
#define RateAppSpec_H
|
|
21
|
+
|
|
22
|
+
#import <Foundation/Foundation.h>
|
|
23
|
+
#import <RCTRequired/RCTRequired.h>
|
|
24
|
+
#import <RCTTypeSafety/RCTConvertHelpers.h>
|
|
25
|
+
#import <RCTTypeSafety/RCTTypedModuleConstants.h>
|
|
26
|
+
#import <React/RCTBridgeModule.h>
|
|
27
|
+
#import <React/RCTCxxConvert.h>
|
|
28
|
+
#import <React/RCTManagedPointer.h>
|
|
29
|
+
#import <ReactCommon/RCTTurboModule.h>
|
|
30
|
+
#import <optional>
|
|
31
|
+
#import <vector>
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
35
|
+
|
|
36
|
+
@protocol NativeRateAppSpec <RCTBridgeModule, RCTTurboModule>
|
|
37
|
+
|
|
38
|
+
- (void)requestReview:(RCTPromiseResolveBlock)resolve
|
|
39
|
+
reject:(RCTPromiseRejectBlock)reject;
|
|
40
|
+
- (void)requestReviewAppGallery:(RCTPromiseResolveBlock)resolve
|
|
41
|
+
reject:(RCTPromiseRejectBlock)reject;
|
|
42
|
+
- (void)requestReviewGalaxyStore:(NSString *)androidPackageName
|
|
43
|
+
resolve:(RCTPromiseResolveBlock)resolve
|
|
44
|
+
reject:(RCTPromiseRejectBlock)reject;
|
|
45
|
+
|
|
46
|
+
@end
|
|
47
|
+
|
|
48
|
+
@interface NativeRateAppSpecBase : NSObject {
|
|
49
|
+
@protected
|
|
50
|
+
facebook::react::EventEmitterCallback _eventEmitterCallback;
|
|
51
|
+
}
|
|
52
|
+
- (void)setEventEmitterCallback:(EventEmitterCallbackWrapper *)eventEmitterCallbackWrapper;
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
@end
|
|
56
|
+
|
|
57
|
+
namespace facebook::react {
|
|
58
|
+
/**
|
|
59
|
+
* ObjC++ class for module 'NativeRateApp'
|
|
60
|
+
*/
|
|
61
|
+
class JSI_EXPORT NativeRateAppSpecJSI : public ObjCTurboModule {
|
|
62
|
+
public:
|
|
63
|
+
NativeRateAppSpecJSI(const ObjCTurboModule::InitParams ¶ms);
|
|
64
|
+
};
|
|
65
|
+
} // namespace facebook::react
|
|
66
|
+
|
|
67
|
+
NS_ASSUME_NONNULL_END
|
|
68
|
+
#endif // RateAppSpec_H
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
3
|
+
*
|
|
4
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
5
|
+
* once the code is regenerated.
|
|
6
|
+
*
|
|
7
|
+
* @generated by codegen project: GenerateModuleCpp.js
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
#include "RateAppSpecJSI.h"
|
|
11
|
+
|
|
12
|
+
namespace facebook::react {
|
|
13
|
+
|
|
14
|
+
static jsi::Value __hostFunction_NativeRateAppCxxSpecJSI_requestReview(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
15
|
+
return static_cast<NativeRateAppCxxSpecJSI *>(&turboModule)->requestReview(
|
|
16
|
+
rt
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
static jsi::Value __hostFunction_NativeRateAppCxxSpecJSI_requestReviewAppGallery(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
20
|
+
return static_cast<NativeRateAppCxxSpecJSI *>(&turboModule)->requestReviewAppGallery(
|
|
21
|
+
rt
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
static jsi::Value __hostFunction_NativeRateAppCxxSpecJSI_requestReviewGalaxyStore(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
25
|
+
return static_cast<NativeRateAppCxxSpecJSI *>(&turboModule)->requestReviewGalaxyStore(
|
|
26
|
+
rt,
|
|
27
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
NativeRateAppCxxSpecJSI::NativeRateAppCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
|
|
32
|
+
: TurboModule("RateApp", jsInvoker) {
|
|
33
|
+
methodMap_["requestReview"] = MethodMetadata {0, __hostFunction_NativeRateAppCxxSpecJSI_requestReview};
|
|
34
|
+
methodMap_["requestReviewAppGallery"] = MethodMetadata {0, __hostFunction_NativeRateAppCxxSpecJSI_requestReviewAppGallery};
|
|
35
|
+
methodMap_["requestReviewGalaxyStore"] = MethodMetadata {1, __hostFunction_NativeRateAppCxxSpecJSI_requestReviewGalaxyStore};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
} // namespace facebook::react
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
3
|
+
*
|
|
4
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
5
|
+
* once the code is regenerated.
|
|
6
|
+
*
|
|
7
|
+
* @generated by codegen project: GenerateModuleH.js
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
#pragma once
|
|
11
|
+
|
|
12
|
+
#include <ReactCommon/TurboModule.h>
|
|
13
|
+
#include <react/bridging/Bridging.h>
|
|
14
|
+
|
|
15
|
+
namespace facebook::react {
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class JSI_EXPORT NativeRateAppCxxSpecJSI : public TurboModule {
|
|
19
|
+
protected:
|
|
20
|
+
NativeRateAppCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
|
|
21
|
+
|
|
22
|
+
public:
|
|
23
|
+
virtual jsi::Value requestReview(jsi::Runtime &rt) = 0;
|
|
24
|
+
virtual jsi::Value requestReviewAppGallery(jsi::Runtime &rt) = 0;
|
|
25
|
+
virtual jsi::Value requestReviewGalaxyStore(jsi::Runtime &rt, jsi::String androidPackageName) = 0;
|
|
26
|
+
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
template <typename T>
|
|
30
|
+
class JSI_EXPORT NativeRateAppCxxSpec : public TurboModule {
|
|
31
|
+
public:
|
|
32
|
+
jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override {
|
|
33
|
+
return delegate_.create(rt, propName);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime& runtime) override {
|
|
37
|
+
return delegate_.getPropertyNames(runtime);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
static constexpr std::string_view kModuleName = "RateApp";
|
|
41
|
+
|
|
42
|
+
protected:
|
|
43
|
+
NativeRateAppCxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
|
|
44
|
+
: TurboModule(std::string{NativeRateAppCxxSpec::kModuleName}, jsInvoker),
|
|
45
|
+
delegate_(reinterpret_cast<T*>(this), jsInvoker) {}
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
private:
|
|
49
|
+
class Delegate : public NativeRateAppCxxSpecJSI {
|
|
50
|
+
public:
|
|
51
|
+
Delegate(T *instance, std::shared_ptr<CallInvoker> jsInvoker) :
|
|
52
|
+
NativeRateAppCxxSpecJSI(std::move(jsInvoker)), instance_(instance) {
|
|
53
|
+
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
jsi::Value requestReview(jsi::Runtime &rt) override {
|
|
57
|
+
static_assert(
|
|
58
|
+
bridging::getParameterCount(&T::requestReview) == 1,
|
|
59
|
+
"Expected requestReview(...) to have 1 parameters");
|
|
60
|
+
|
|
61
|
+
return bridging::callFromJs<jsi::Value>(
|
|
62
|
+
rt, &T::requestReview, jsInvoker_, instance_);
|
|
63
|
+
}
|
|
64
|
+
jsi::Value requestReviewAppGallery(jsi::Runtime &rt) override {
|
|
65
|
+
static_assert(
|
|
66
|
+
bridging::getParameterCount(&T::requestReviewAppGallery) == 1,
|
|
67
|
+
"Expected requestReviewAppGallery(...) to have 1 parameters");
|
|
68
|
+
|
|
69
|
+
return bridging::callFromJs<jsi::Value>(
|
|
70
|
+
rt, &T::requestReviewAppGallery, jsInvoker_, instance_);
|
|
71
|
+
}
|
|
72
|
+
jsi::Value requestReviewGalaxyStore(jsi::Runtime &rt, jsi::String androidPackageName) override {
|
|
73
|
+
static_assert(
|
|
74
|
+
bridging::getParameterCount(&T::requestReviewGalaxyStore) == 2,
|
|
75
|
+
"Expected requestReviewGalaxyStore(...) to have 2 parameters");
|
|
76
|
+
|
|
77
|
+
return bridging::callFromJs<jsi::Value>(
|
|
78
|
+
rt, &T::requestReviewGalaxyStore, jsInvoker_, instance_, std::move(androidPackageName));
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
private:
|
|
82
|
+
friend class NativeRateAppCxxSpec;
|
|
83
|
+
T *instance_;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
Delegate delegate_;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
} // namespace facebook::react
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../src","sources":["codegenSpec/NativeRateApp.ts"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AAAmD,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAQpCC,gCAAmB,CAACC,YAAY,CAAO,SAAS,CAAC","ignoreList":[]}
|
package/lib/commonjs/index.js
CHANGED
|
@@ -10,7 +10,7 @@ var _exportNames = {
|
|
|
10
10
|
};
|
|
11
11
|
exports.requestReview = exports.openStoreForReview = exports.getAndroidMarketUrl = exports.default = void 0;
|
|
12
12
|
var _reactNative = require("react-native");
|
|
13
|
-
var _NativeRateApp = _interopRequireDefault(require("./NativeRateApp"));
|
|
13
|
+
var _NativeRateApp = _interopRequireDefault(require("./codegenSpec/NativeRateApp"));
|
|
14
14
|
var _constants = require("./constants");
|
|
15
15
|
Object.keys(_constants).forEach(function (key) {
|
|
16
16
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../src","sources":["codegenSpec/NativeRateApp.ts"],"mappings":";;AACA,SAASA,mBAAmB,QAAQ,cAAc;AAQlD,eAAeA,mBAAmB,CAACC,YAAY,CAAO,SAAS,CAAC","ignoreList":[]}
|
package/lib/module/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { Linking, Platform } from "react-native";
|
|
4
|
-
import RateApp from "./NativeRateApp";
|
|
4
|
+
import RateApp from "./codegenSpec/NativeRateApp";
|
|
5
5
|
import { ANDROID_MARKET_URLS, IOS_REVIEW_URL } from "./constants";
|
|
6
6
|
import { AndroidMarket } from "./types";
|
|
7
7
|
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Linking","Platform","RateApp","ANDROID_MARKET_URLS","IOS_REVIEW_URL","AndroidMarket","RateAppError","Error","constructor","message","name","RNRateApp","requestReview","androidMarket","GOOGLE","androidPackageName","OS","SAMSUNG","requestReviewGalaxyStore","HUAWEI","requestReviewAppGallery","error","openStoreForReview","iOSAppId","isIOS","ismacOS","isAndroid","url","getAndroidMarketUrl","canOpenURL","openURL","urlTemplate","replace"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SAASA,OAAO,EAAEC,QAAQ,QAAQ,cAAc;AAChD,OAAOC,OAAO,MAAM,
|
|
1
|
+
{"version":3,"names":["Linking","Platform","RateApp","ANDROID_MARKET_URLS","IOS_REVIEW_URL","AndroidMarket","RateAppError","Error","constructor","message","name","RNRateApp","requestReview","androidMarket","GOOGLE","androidPackageName","OS","SAMSUNG","requestReviewGalaxyStore","HUAWEI","requestReviewAppGallery","error","openStoreForReview","iOSAppId","isIOS","ismacOS","isAndroid","url","getAndroidMarketUrl","canOpenURL","openURL","urlTemplate","replace"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeRateApp.d.ts","sourceRoot":"","sources":["../../../src/codegenSpec/NativeRateApp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,aAAa,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAClC,uBAAuB,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAC5C,wBAAwB,CAAC,kBAAkB,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACxE;;AAED,wBAAiE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-rate-app",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "React Native module for In App Rating on Android and iOS",
|
|
5
5
|
"source": "src/index.tsx",
|
|
6
6
|
"main": "lib/commonjs/index.js",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"workspaces": [
|
|
100
100
|
"example"
|
|
101
101
|
],
|
|
102
|
-
"packageManager": "yarn@4.
|
|
102
|
+
"packageManager": "yarn@4.7.0",
|
|
103
103
|
"jest": {
|
|
104
104
|
"preset": "react-native",
|
|
105
105
|
"modulePathIgnorePatterns": [
|
|
@@ -126,15 +126,16 @@
|
|
|
126
126
|
"source": "src",
|
|
127
127
|
"output": "lib",
|
|
128
128
|
"targets": [
|
|
129
|
+
"codegen",
|
|
129
130
|
"commonjs",
|
|
130
131
|
"module",
|
|
131
132
|
"typescript"
|
|
132
133
|
]
|
|
133
134
|
},
|
|
134
135
|
"codegenConfig": {
|
|
135
|
-
"name": "
|
|
136
|
+
"name": "RateAppSpec",
|
|
136
137
|
"type": "modules",
|
|
137
|
-
"jsSrcsDir": "src",
|
|
138
|
+
"jsSrcsDir": "./src/codegenSpec",
|
|
138
139
|
"outputDir": {
|
|
139
140
|
"ios": "ios/generated",
|
|
140
141
|
"android": "android/generated"
|
package/src/index.tsx
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../src","sources":["NativeRateApp.ts"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AAAmD,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAQpCC,gCAAmB,CAACC,YAAY,CAAO,SAAS,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../src","sources":["NativeRateApp.ts"],"mappings":";;AACA,SAASA,mBAAmB,QAAQ,cAAc;AAQlD,eAAeA,mBAAmB,CAACC,YAAY,CAAO,SAAS,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NativeRateApp.d.ts","sourceRoot":"","sources":["../../src/NativeRateApp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,aAAa,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAClC,uBAAuB,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAC5C,wBAAwB,CAAC,kBAAkB,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACxE;;AAED,wBAAiE"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|