react-native-mapp-plugin 1.2.1 → 1.3.1
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/.idea/Mapp-Engage-ReactNative-Plugin.iml +9 -0
- package/.idea/caches/deviceStreaming.xml +787 -0
- package/.idea/misc.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/.vscode/settings.json +2 -1
- package/CHANGELOG.md +9 -0
- package/Helper.md +23 -0
- package/Mapp.js +26 -0
- package/RNMappPlugin.podspec +2 -2
- package/__package.json +2 -2
- package/android/.project +1 -1
- package/android/.settings/org.eclipse.buildship.core.prefs +1 -1
- package/android/build.gradle +26 -55
- package/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/android/gradle.properties +36 -8
- package/android/settings.gradle +24 -1
- package/android/src/main/AndroidManifest.xml +5 -6
- package/android/src/main/java/com/reactlibrary/MessageService.java +16 -10
- package/android/src/main/java/com/reactlibrary/RNMappPluginModule.java +91 -12
- package/android/src/main/java/com/reactlibrary/RNMappPluginPackage.java +36 -19
- package/build/generated/ios/MappEngagePluginSpec/MappEngagePluginSpec-generated.mm +16 -0
- package/build/generated/ios/MappEngagePluginSpec/MappEngagePluginSpec.h +38 -0
- package/build/generated/ios/MappEngagePluginSpecJSI-generated.cpp +17 -0
- package/build/generated/ios/MappEngagePluginSpecJSI.h +19 -0
- package/build/generated/ios/RCTAppDependencyProvider.h +25 -0
- package/build/generated/ios/RCTAppDependencyProvider.mm +35 -0
- package/build/generated/ios/RCTModuleProviders.h +16 -0
- package/build/generated/ios/RCTModuleProviders.mm +51 -0
- package/build/generated/ios/RCTModulesConformingToProtocolsProvider.h +18 -0
- package/build/generated/ios/RCTModulesConformingToProtocolsProvider.mm +54 -0
- package/build/generated/ios/RCTThirdPartyComponentsProvider.h +16 -0
- package/build/generated/ios/RCTThirdPartyComponentsProvider.mm +30 -0
- package/build/generated/ios/ReactAppDependencyProvider.podspec +34 -0
- package/clean.sh +34 -0
- package/ios/Frameworks/AppoxeeLocationServices.xcframework/Info.plist +48 -0
- package/ios/Frameworks/AppoxeeLocationServices.xcframework/ios-arm64/libAppoxeeLocationServices.a +0 -0
- package/ios/Frameworks/AppoxeeLocationServices.xcframework/ios-arm64_x86_64-simulator/Headers/AppoxeeLocationManager.h +122 -0
- package/ios/Frameworks/AppoxeeLocationServices.xcframework/ios-arm64_x86_64-simulator/Headers/AppoxeeLocationServices.h +11 -0
- package/ios/Frameworks/AppoxeeLocationServices.xcframework/ios-arm64_x86_64-simulator/libAppoxeeLocationServices.a +0 -0
- package/ios/Frameworks/AppoxeeSDK.xcframework/Info.plist +48 -0
- package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/APXClientDevice.h +1 -0
- package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/APXPushNotificationActionButtonAction.h +3 -2
- package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/Appoxee.h +39 -2
- package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64/libAppoxeeSDK.a +0 -0
- package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/APXClientDevice.h +27 -0
- package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/APXInterfaceService.h +49 -0
- package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/APXPushNotification.h +92 -0
- package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/APXPushNotificationAction.h +20 -0
- package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/APXPushNotificationActionButton.h +19 -0
- package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/APXPushNotificationActionButtonAction.h +36 -0
- package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/APXRichMessage.h +58 -0
- package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/Appoxee.h +877 -0
- package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/AppoxeeManager.h +386 -0
- package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/AppoxeeSDK.h +12 -0
- package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/libAppoxeeSDK.a +0 -0
- package/ios/RNMappPluginModule.m +33 -0
- package/package.json +13 -6
- package/react-native.config.js +7 -0
- package/specs/MappEngagePluginSpec.js +8 -0
- package/ios/Frameworks/AppoxeeLocationServices.framework/Versions/A/AppoxeeLocationServices +0 -0
- package/ios/Frameworks/AppoxeeSDK.framework/Versions/A/AppoxeeSDK +0 -0
- /package/ios/Frameworks/{AppoxeeLocationServices.framework/Versions/A → AppoxeeLocationServices.xcframework/ios-arm64}/Headers/AppoxeeLocationManager.h +0 -0
- /package/ios/Frameworks/{AppoxeeLocationServices.framework/Versions/A → AppoxeeLocationServices.xcframework/ios-arm64}/Headers/AppoxeeLocationServices.h +0 -0
- /package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/APXInterfaceService.h +0 -0
- /package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/APXPushNotification.h +0 -0
- /package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/APXPushNotificationAction.h +0 -0
- /package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/APXPushNotificationActionButton.h +0 -0
- /package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/APXRichMessage.h +0 -0
- /package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/AppoxeeManager.h +0 -0
- /package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/AppoxeeSDK.h +0 -0
|
@@ -1,35 +1,52 @@
|
|
|
1
|
-
|
|
2
1
|
package com.reactlibrary;
|
|
3
2
|
|
|
4
|
-
import
|
|
5
|
-
import java.util.Collections;
|
|
6
|
-
import java.util.List;
|
|
3
|
+
import androidx.annotation.NonNull;
|
|
7
4
|
|
|
8
5
|
import com.facebook.react.ReactPackage;
|
|
9
6
|
import com.facebook.react.bridge.NativeModule;
|
|
10
7
|
import com.facebook.react.bridge.ReactApplicationContext;
|
|
11
|
-
import com.facebook.react.
|
|
8
|
+
import com.facebook.react.module.model.ReactModuleInfo;
|
|
9
|
+
import com.facebook.react.module.model.ReactModuleInfoProvider;
|
|
12
10
|
import com.facebook.react.uimanager.ViewManager;
|
|
13
11
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
import java.util.Collections;
|
|
13
|
+
import java.util.HashMap;
|
|
14
|
+
import java.util.List;
|
|
15
|
+
import java.util.Map;
|
|
16
|
+
|
|
18
17
|
public class RNMappPluginPackage implements ReactPackage {
|
|
18
|
+
|
|
19
|
+
@NonNull
|
|
19
20
|
@Override
|
|
20
|
-
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
|
|
21
|
-
|
|
22
|
-
modules.add(new RNMappPluginModule(reactContext));
|
|
23
|
-
return modules;
|
|
21
|
+
public List<NativeModule> createNativeModules(@NonNull ReactApplicationContext reactContext) {
|
|
22
|
+
return Collections.singletonList(new RNMappPluginModule(reactContext));
|
|
24
23
|
}
|
|
25
24
|
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
@NonNull
|
|
26
|
+
@Override
|
|
27
|
+
public List<ViewManager> createViewManagers(@NonNull ReactApplicationContext reactContext) {
|
|
28
28
|
return Collections.emptyList();
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
public ReactModuleInfoProvider getReactModuleInfoProvider() {
|
|
32
|
+
return () -> {
|
|
33
|
+
Map<String, ReactModuleInfo> moduleInfos = new HashMap<>();
|
|
34
|
+
|
|
35
|
+
moduleInfos.put(
|
|
36
|
+
RNMappPluginModule.NAME,
|
|
37
|
+
new ReactModuleInfo(
|
|
38
|
+
RNMappPluginModule.NAME,
|
|
39
|
+
RNMappPluginModule.NAME,
|
|
40
|
+
false, // canOverrideExistingModule
|
|
41
|
+
false, // needsEagerInit
|
|
42
|
+
true, // hasConstants
|
|
43
|
+
false, // isCxxModule
|
|
44
|
+
true // isTurboModule -> THIS IS IMPORTANT
|
|
45
|
+
)
|
|
46
|
+
);
|
|
47
|
+
|
|
48
|
+
return moduleInfos;
|
|
49
|
+
};
|
|
34
50
|
}
|
|
35
|
-
}
|
|
51
|
+
}
|
|
52
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
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 "MappEngagePluginSpec.h"
|
|
15
|
+
|
|
16
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
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 MappEngagePluginSpec symbols
|
|
19
|
+
#ifndef MappEngagePluginSpec_H
|
|
20
|
+
#define MappEngagePluginSpec_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
|
+
|
|
37
|
+
NS_ASSUME_NONNULL_END
|
|
38
|
+
#endif // MappEngagePluginSpec_H
|
|
@@ -0,0 +1,17 @@
|
|
|
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 "MappEngagePluginSpecJSI.h"
|
|
11
|
+
|
|
12
|
+
namespace facebook::react {
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
} // namespace facebook::react
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
|
|
19
|
+
} // namespace facebook::react
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
#if __has_include(<React-RCTAppDelegate/RCTDependencyProvider.h>)
|
|
12
|
+
#import <React-RCTAppDelegate/RCTDependencyProvider.h>
|
|
13
|
+
#elif __has_include(<React_RCTAppDelegate/RCTDependencyProvider.h>)
|
|
14
|
+
#import <React_RCTAppDelegate/RCTDependencyProvider.h>
|
|
15
|
+
#else
|
|
16
|
+
#import "RCTDependencyProvider.h"
|
|
17
|
+
#endif
|
|
18
|
+
|
|
19
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
20
|
+
|
|
21
|
+
@interface RCTAppDependencyProvider : NSObject <RCTDependencyProvider>
|
|
22
|
+
|
|
23
|
+
@end
|
|
24
|
+
|
|
25
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
#import "RCTAppDependencyProvider.h"
|
|
9
|
+
#import <ReactCodegen/RCTModulesConformingToProtocolsProvider.h>
|
|
10
|
+
#import <ReactCodegen/RCTThirdPartyComponentsProvider.h>
|
|
11
|
+
#import <ReactCodegen/RCTModuleProviders.h>
|
|
12
|
+
|
|
13
|
+
@implementation RCTAppDependencyProvider
|
|
14
|
+
|
|
15
|
+
- (nonnull NSArray<NSString *> *)URLRequestHandlerClassNames {
|
|
16
|
+
return RCTModulesConformingToProtocolsProvider.URLRequestHandlerClassNames;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
- (nonnull NSArray<NSString *> *)imageDataDecoderClassNames {
|
|
20
|
+
return RCTModulesConformingToProtocolsProvider.imageDataDecoderClassNames;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
- (nonnull NSArray<NSString *> *)imageURLLoaderClassNames {
|
|
24
|
+
return RCTModulesConformingToProtocolsProvider.imageURLLoaderClassNames;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
- (nonnull NSDictionary<NSString *,Class<RCTComponentViewProtocol>> *)thirdPartyFabricComponents {
|
|
28
|
+
return RCTThirdPartyComponentsProvider.thirdPartyFabricComponents;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
- (nonnull NSDictionary<NSString *, id<RCTModuleProvider>> *)moduleProviders {
|
|
32
|
+
return RCTModuleProviders.moduleProviders;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
@protocol RCTModuleProvider;
|
|
11
|
+
|
|
12
|
+
@interface RCTModuleProviders: NSObject
|
|
13
|
+
|
|
14
|
+
+ (NSDictionary<NSString *, id<RCTModuleProvider>> *)moduleProviders;
|
|
15
|
+
|
|
16
|
+
@end
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
#import "RCTModuleProviders.h"
|
|
11
|
+
#import <ReactCommon/RCTTurboModule.h>
|
|
12
|
+
#import <React/RCTLog.h>
|
|
13
|
+
|
|
14
|
+
@implementation RCTModuleProviders
|
|
15
|
+
|
|
16
|
+
+ (NSDictionary<NSString *, id<RCTModuleProvider>> *)moduleProviders
|
|
17
|
+
{
|
|
18
|
+
static NSDictionary<NSString *, id<RCTModuleProvider>> *providers = nil;
|
|
19
|
+
static dispatch_once_t onceToken;
|
|
20
|
+
|
|
21
|
+
dispatch_once(&onceToken, ^{
|
|
22
|
+
NSDictionary<NSString *, NSString *> * moduleMapping = @{
|
|
23
|
+
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
NSMutableDictionary *dict = [[NSMutableDictionary alloc] initWithCapacity:moduleMapping.count];
|
|
27
|
+
|
|
28
|
+
for (NSString *key in moduleMapping) {
|
|
29
|
+
NSString * moduleProviderName = moduleMapping[key];
|
|
30
|
+
Class klass = NSClassFromString(moduleProviderName);
|
|
31
|
+
if (!klass) {
|
|
32
|
+
RCTLogError(@"Module provider %@ cannot be found in the runtime", moduleProviderName);
|
|
33
|
+
continue;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
id instance = [klass new];
|
|
37
|
+
if (![instance respondsToSelector:@selector(getTurboModule:)]) {
|
|
38
|
+
RCTLogError(@"Module provider %@ does not conform to RCTModuleProvider", moduleProviderName);
|
|
39
|
+
continue;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
[dict setObject:instance forKey:key];
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
providers = dict;
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
return providers;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
@interface RCTModulesConformingToProtocolsProvider: NSObject
|
|
11
|
+
|
|
12
|
+
+(NSArray<NSString *> *)imageURLLoaderClassNames;
|
|
13
|
+
|
|
14
|
+
+(NSArray<NSString *> *)imageDataDecoderClassNames;
|
|
15
|
+
|
|
16
|
+
+(NSArray<NSString *> *)URLRequestHandlerClassNames;
|
|
17
|
+
|
|
18
|
+
@end
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
#import "RCTModulesConformingToProtocolsProvider.h"
|
|
9
|
+
|
|
10
|
+
@implementation RCTModulesConformingToProtocolsProvider
|
|
11
|
+
|
|
12
|
+
+(NSArray<NSString *> *)imageURLLoaderClassNames
|
|
13
|
+
{
|
|
14
|
+
static NSArray<NSString *> *classNames = nil;
|
|
15
|
+
static dispatch_once_t onceToken;
|
|
16
|
+
|
|
17
|
+
dispatch_once(&onceToken, ^{
|
|
18
|
+
classNames = @[
|
|
19
|
+
|
|
20
|
+
];
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
return classNames;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
+(NSArray<NSString *> *)imageDataDecoderClassNames
|
|
27
|
+
{
|
|
28
|
+
static NSArray<NSString *> *classNames = nil;
|
|
29
|
+
static dispatch_once_t onceToken;
|
|
30
|
+
|
|
31
|
+
dispatch_once(&onceToken, ^{
|
|
32
|
+
classNames = @[
|
|
33
|
+
|
|
34
|
+
];
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
return classNames;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
+(NSArray<NSString *> *)URLRequestHandlerClassNames
|
|
41
|
+
{
|
|
42
|
+
static NSArray<NSString *> *classNames = nil;
|
|
43
|
+
static dispatch_once_t onceToken;
|
|
44
|
+
|
|
45
|
+
dispatch_once(&onceToken, ^{
|
|
46
|
+
classNames = @[
|
|
47
|
+
|
|
48
|
+
];
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
return classNames;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
@protocol RCTComponentViewProtocol;
|
|
11
|
+
|
|
12
|
+
@interface RCTThirdPartyComponentsProvider: NSObject
|
|
13
|
+
|
|
14
|
+
+ (NSDictionary<NSString *, Class<RCTComponentViewProtocol>> *)thirdPartyFabricComponents;
|
|
15
|
+
|
|
16
|
+
@end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
#import "RCTThirdPartyComponentsProvider.h"
|
|
12
|
+
#import <React/RCTComponentViewProtocol.h>
|
|
13
|
+
|
|
14
|
+
@implementation RCTThirdPartyComponentsProvider
|
|
15
|
+
|
|
16
|
+
+ (NSDictionary<NSString *, Class<RCTComponentViewProtocol>> *)thirdPartyFabricComponents
|
|
17
|
+
{
|
|
18
|
+
static NSDictionary<NSString *, Class<RCTComponentViewProtocol>> *thirdPartyComponents = nil;
|
|
19
|
+
static dispatch_once_t nativeComponentsToken;
|
|
20
|
+
|
|
21
|
+
dispatch_once(&nativeComponentsToken, ^{
|
|
22
|
+
thirdPartyComponents = @{
|
|
23
|
+
|
|
24
|
+
};
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
return thirdPartyComponents;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@end
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
version = "0.79.3"
|
|
7
|
+
source = { :git => 'https://github.com/facebook/react-native.git' }
|
|
8
|
+
if version == '1000.0.0'
|
|
9
|
+
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
|
10
|
+
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
|
11
|
+
else
|
|
12
|
+
source[:tag] = "v#{version}"
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
Pod::Spec.new do |s|
|
|
16
|
+
s.name = "ReactAppDependencyProvider"
|
|
17
|
+
s.version = version
|
|
18
|
+
s.summary = "The third party dependency provider for the app"
|
|
19
|
+
s.homepage = "https://reactnative.dev/"
|
|
20
|
+
s.documentation_url = "https://reactnative.dev/"
|
|
21
|
+
s.license = "MIT"
|
|
22
|
+
s.author = "Meta Platforms, Inc. and its affiliates"
|
|
23
|
+
s.platforms = min_supported_versions
|
|
24
|
+
s.source = source
|
|
25
|
+
s.source_files = "**/RCTAppDependencyProvider.{h,mm}"
|
|
26
|
+
|
|
27
|
+
# This guard prevent to install the dependencies when we run `pod install` in the old architecture.
|
|
28
|
+
s.pod_target_xcconfig = {
|
|
29
|
+
"CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
|
|
30
|
+
"DEFINES_MODULE" => "YES"
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
s.dependency "ReactCodegen"
|
|
34
|
+
end
|
package/clean.sh
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
echo "Cleaning React Native project caches..."
|
|
4
|
+
|
|
5
|
+
rm -rf \
|
|
6
|
+
node_modules \
|
|
7
|
+
yarn.lock \
|
|
8
|
+
package-lock.json \
|
|
9
|
+
android/.gradle \
|
|
10
|
+
android/build \
|
|
11
|
+
android/app/build \
|
|
12
|
+
android/.idea \
|
|
13
|
+
android/local.properties \
|
|
14
|
+
ios/Pods \
|
|
15
|
+
ios/build \
|
|
16
|
+
ios/DerivedData \
|
|
17
|
+
ios/.xcworkspace \
|
|
18
|
+
example/node_modules \
|
|
19
|
+
example/yarn.lock \
|
|
20
|
+
example/package-lock.json \
|
|
21
|
+
example/android/.gradle \
|
|
22
|
+
example/android/build \
|
|
23
|
+
example/android/app/build \
|
|
24
|
+
example/android/.idea \
|
|
25
|
+
example/android/local.properties \
|
|
26
|
+
example/ios/Pods \
|
|
27
|
+
example/ios/build \
|
|
28
|
+
example/ios/DerivedData \
|
|
29
|
+
example/ios/.xcworkspace
|
|
30
|
+
|
|
31
|
+
echo "Optionally removing global Xcode DerivedData..."
|
|
32
|
+
echo "To remove: rm -rf ~/Library/Developer/Xcode/DerivedData"
|
|
33
|
+
|
|
34
|
+
echo "✅ Cleanup complete."
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>AvailableLibraries</key>
|
|
6
|
+
<array>
|
|
7
|
+
<dict>
|
|
8
|
+
<key>BinaryPath</key>
|
|
9
|
+
<string>libAppoxeeLocationServices.a</string>
|
|
10
|
+
<key>HeadersPath</key>
|
|
11
|
+
<string>Headers</string>
|
|
12
|
+
<key>LibraryIdentifier</key>
|
|
13
|
+
<string>ios-arm64</string>
|
|
14
|
+
<key>LibraryPath</key>
|
|
15
|
+
<string>libAppoxeeLocationServices.a</string>
|
|
16
|
+
<key>SupportedArchitectures</key>
|
|
17
|
+
<array>
|
|
18
|
+
<string>arm64</string>
|
|
19
|
+
</array>
|
|
20
|
+
<key>SupportedPlatform</key>
|
|
21
|
+
<string>ios</string>
|
|
22
|
+
</dict>
|
|
23
|
+
<dict>
|
|
24
|
+
<key>BinaryPath</key>
|
|
25
|
+
<string>libAppoxeeLocationServices.a</string>
|
|
26
|
+
<key>HeadersPath</key>
|
|
27
|
+
<string>Headers</string>
|
|
28
|
+
<key>LibraryIdentifier</key>
|
|
29
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
30
|
+
<key>LibraryPath</key>
|
|
31
|
+
<string>libAppoxeeLocationServices.a</string>
|
|
32
|
+
<key>SupportedArchitectures</key>
|
|
33
|
+
<array>
|
|
34
|
+
<string>arm64</string>
|
|
35
|
+
<string>x86_64</string>
|
|
36
|
+
</array>
|
|
37
|
+
<key>SupportedPlatform</key>
|
|
38
|
+
<string>ios</string>
|
|
39
|
+
<key>SupportedPlatformVariant</key>
|
|
40
|
+
<string>simulator</string>
|
|
41
|
+
</dict>
|
|
42
|
+
</array>
|
|
43
|
+
<key>CFBundlePackageType</key>
|
|
44
|
+
<string>XFWK</string>
|
|
45
|
+
<key>XCFrameworkFormatVersion</key>
|
|
46
|
+
<string>1.0</string>
|
|
47
|
+
</dict>
|
|
48
|
+
</plist>
|
package/ios/Frameworks/AppoxeeLocationServices.xcframework/ios-arm64/libAppoxeeLocationServices.a
ADDED
|
Binary file
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
//
|
|
2
|
+
// AppoxeeLocationManager.h
|
|
3
|
+
// AppoxeeLocationServices
|
|
4
|
+
//
|
|
5
|
+
// Created by Raz Elkayam on 10/30/14.
|
|
6
|
+
// Copyright (c) 2014 Appoxee. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
#import <CoreLocation/CoreLocation.h>
|
|
11
|
+
|
|
12
|
+
@class AppoxeeLocationManager;
|
|
13
|
+
|
|
14
|
+
@protocol AppoxeeLocationManagerDelegate <NSObject>
|
|
15
|
+
|
|
16
|
+
@optional
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
Notifies on faliure.
|
|
20
|
+
@brief Method for notifiyng when a failure happend.
|
|
21
|
+
*/
|
|
22
|
+
- (void)locationManager:(nonnull AppoxeeLocationManager *)manager didFailWithError:(nullable NSError *)error;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
Notifies when a device entered into a geographic region.
|
|
26
|
+
@brief Method for notifiyng when geographic region is entered by the device.
|
|
27
|
+
<pre><code>
|
|
28
|
+
- (void)locationManager:(AppoxeeLocationManager *)manager didEnterGeoRegion:(CLCircularRegion *)geoRegion
|
|
29
|
+
{
|
|
30
|
+
// Entered a region.
|
|
31
|
+
// Notice that the .identifier @property of the CLCircularRegion instance is the location ID as created By Teradata.
|
|
32
|
+
|
|
33
|
+
NSLog(@"Entered location id of: %@, of coordinates: %.2f | %.2f, with radius: %.2f", geoRegion.identifier, geoRegion.center.latitude, geoRegion.center.longitude, geoRegion.radius);
|
|
34
|
+
}
|
|
35
|
+
</code></pre>
|
|
36
|
+
*/
|
|
37
|
+
- (void)locationManager:(nonnull AppoxeeLocationManager *)manager didEnterGeoRegion:(nonnull CLCircularRegion *)geoRegion;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
Notifies when a device exits from a geographic region.
|
|
41
|
+
@brief Method for notifiyng when geographic region is exited by the device.
|
|
42
|
+
<pre><code>
|
|
43
|
+
- (void)locationManager:(AppoxeeLocationManager *)manager didExitGeoRegion:(CLCircularRegion *)geoRegion
|
|
44
|
+
{
|
|
45
|
+
// Exited a region.
|
|
46
|
+
// Notice that the .identifier @property of the CLCircularRegion instance is the location ID as created By Teradata.
|
|
47
|
+
|
|
48
|
+
NSLog(@"Entered location id: %@, of coordinates: %.2f | %.2f, with radius: %.2f", geoRegion.identifier, geoRegion.center.latitude, geoRegion.center.longitude, geoRegion.radius);
|
|
49
|
+
}
|
|
50
|
+
</code></pre>
|
|
51
|
+
*/
|
|
52
|
+
- (void)locationManager:(nonnull AppoxeeLocationManager *)manager didExitGeoRegion:(nonnull CLCircularRegion *)geoRegion;
|
|
53
|
+
|
|
54
|
+
@end
|
|
55
|
+
|
|
56
|
+
/*!
|
|
57
|
+
* Appoxee Location manager is the main interface API for developers who implements Appoxee Location Services.
|
|
58
|
+
*/
|
|
59
|
+
@interface AppoxeeLocationManager : NSObject
|
|
60
|
+
|
|
61
|
+
/*!
|
|
62
|
+
* between 1 - 5, where 1 prints all logs and 5 prints critical logs.
|
|
63
|
+
*/
|
|
64
|
+
@property (nonatomic) NSInteger logLevel;
|
|
65
|
+
@property (nonatomic) NSArray<CLLocation*>* _Nullable regions;
|
|
66
|
+
|
|
67
|
+
/*!
|
|
68
|
+
* The delegate for recieving AppoxeeLocationManagerDelegate events.
|
|
69
|
+
*/
|
|
70
|
+
@property (nonatomic, weak, nullable) id <AppoxeeLocationManagerDelegate> delegate;
|
|
71
|
+
|
|
72
|
+
/*!
|
|
73
|
+
* The last known location of the user.
|
|
74
|
+
*/
|
|
75
|
+
@property (nonatomic, strong, nullable) CLLocation *lastLocation;
|
|
76
|
+
@property (nonatomic, nonnull, readonly) NSString *locationServicesVersion;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
AppoxeeLocationManager instance
|
|
80
|
+
@brief Method for getting a singleton instance of AppoxeeLocationManager
|
|
81
|
+
<pre><code>
|
|
82
|
+
AppoxeeLocationManager *locationManager = [AppoxeeLocationManager shared];
|
|
83
|
+
</code></pre>
|
|
84
|
+
@return AppoxeeLocationManager an Instance Type of AppoxeeLocationManager.
|
|
85
|
+
*/
|
|
86
|
+
+ (nullable instancetype)shared;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
Start monitoring for geo fences. Method will set a UIApplicationBackgroundFetchIntervalMinimum if application supports background fetch.
|
|
90
|
+
@brief Method for starting monitoring for geo fences. Method will set a UIApplicationBackgroundFetchIntervalMinimum if application supports background fetch.
|
|
91
|
+
@attention Authorization status must be kCLAuthorizationStatusAuthorizedAlways or kCLAuthorizationStatusAuthorized, else method will not execute.
|
|
92
|
+
<pre><code>
|
|
93
|
+
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
|
94
|
+
{
|
|
95
|
+
[[Appoxee shared] engageWithLaunchOptions:launchOptions andDelegate:self andSDKID:@"sdk.id" andAppSecret:@"app.secret"];
|
|
96
|
+
// Set an observer, and enable location monitoring when AppoxeeSDK is ready. This can also be achived when listening to @"APX_Ready" notification with NSNotificationCenter
|
|
97
|
+
[[Appoxee shared] addObserver:self forKeyPath:@"isReady" options:(NSKeyValueObservingOptionNew | NSKeyValueObservingOptionOld) context:NULL];
|
|
98
|
+
|
|
99
|
+
return YES;
|
|
100
|
+
}
|
|
101
|
+
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context
|
|
102
|
+
{
|
|
103
|
+
if ([keyPath isEqualToString:@"isReady"]) {
|
|
104
|
+
|
|
105
|
+
[[Appoxee shared] removeObserver:self forKeyPath:@"isReady"];
|
|
106
|
+
[[AppoxeeLocationManager shared] enableLocationMonitoring];
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
</code></pre>
|
|
110
|
+
*/
|
|
111
|
+
- (void)enableLocationMonitoring;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
Stop monitoring for geo fences. Method will set a UIApplicationBackgroundFetchIntervalNever if application supports background fetch.
|
|
115
|
+
@brief Method for stoping monitoring for geo fences. Method will set a UIApplicationBackgroundFetchIntervalNever if application supports background fetch.
|
|
116
|
+
<pre><code>
|
|
117
|
+
[[AppoxeeLocationManager shared] disableLocationMonitoring];
|
|
118
|
+
</code></pre>
|
|
119
|
+
*/
|
|
120
|
+
- (void)disableLocationMonitoring;
|
|
121
|
+
|
|
122
|
+
@end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//
|
|
2
|
+
// AppoxeeLocationServices.h
|
|
3
|
+
// AppoxeeLocationServices
|
|
4
|
+
//
|
|
5
|
+
// Created by Raz Elkayam on 11/25/14.
|
|
6
|
+
// Copyright (c) 2014 Appoxee. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
#import <UIKit/UIKit.h>
|
|
11
|
+
#import <AppoxeeLocationServices/AppoxeeLocationManager.h>
|