@amplytools/react-native-amply-sdk 0.2.3 → 0.2.5
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/build.gradle +89 -0
- package/android/src/main/java/tools/amply/sdk/reactnative/AmplyModule.kt +29 -0
- package/android/src/main/java/tools/amply/sdk/reactnative/core/AmplyClient.kt +6 -0
- package/android/src/main/java/tools/amply/sdk/reactnative/core/DefaultAmplyClient.kt +74 -2
- package/android/src/newarch/java/tools/amply/sdk/reactnative/NativeAmplyModuleSpec.java +18 -1
- package/android/src/newarch/jni/AmplyReactNative-generated.cpp +24 -0
- package/dist/src/__tests__/index.test.js +37 -0
- package/dist/src/index.d.ts +35 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +44 -0
- package/dist/src/nativeSpecs/NativeAmplyModule.d.ts +20 -0
- package/dist/src/nativeSpecs/NativeAmplyModule.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/docs/ARCHITECTURE.md +77 -16
- package/ios/AmplyReactNative.podspec +1 -1
- package/ios/Sources/AmplyReactNative/AmplyModule.mm +93 -0
- package/ios/Sources/AmplyReactNative/AmplyReactNative/AmplyReactNative/AmplyReactNative-generated.mm +160 -0
- package/ios/Sources/AmplyReactNative/AmplyReactNative/AmplyReactNative/AmplyReactNative.h +173 -0
- package/ios/Sources/AmplyReactNative/AmplyReactNative/AmplyReactNative-generated.mm +36 -8
- package/ios/Sources/AmplyReactNative/AmplyReactNative/AmplyReactNative.h +6 -0
- package/package.json +1 -1
- package/src/__tests__/index.test.ts +51 -0
- package/src/index.ts +53 -0
- package/src/nativeSpecs/NativeAmplyModule.ts +20 -0
|
@@ -106,6 +106,26 @@ export interface Spec extends TurboModule {
|
|
|
106
106
|
* @returns The current log level as a string
|
|
107
107
|
*/
|
|
108
108
|
getLogLevel(): string;
|
|
109
|
+
/**
|
|
110
|
+
* Set one or more custom properties. Values can be string, number, or boolean.
|
|
111
|
+
* @param properties Key-value map of properties to set
|
|
112
|
+
*/
|
|
113
|
+
setCustomProperties(properties: JsonMap): void;
|
|
114
|
+
/**
|
|
115
|
+
* Get a custom property value by key.
|
|
116
|
+
* @param key The property key
|
|
117
|
+
* @returns A map containing the value, or an empty map if not found
|
|
118
|
+
*/
|
|
119
|
+
getCustomProperty(key: string): Promise<JsonMap>;
|
|
120
|
+
/**
|
|
121
|
+
* Remove a custom property by key.
|
|
122
|
+
* @param key The property key to remove
|
|
123
|
+
*/
|
|
124
|
+
removeCustomProperty(key: string): void;
|
|
125
|
+
/**
|
|
126
|
+
* Remove all custom properties.
|
|
127
|
+
*/
|
|
128
|
+
clearCustomProperties(): void;
|
|
109
129
|
readonly onSystemEvent: EventEmitter<SystemEventPayload>;
|
|
110
130
|
readonly onDeepLink: EventEmitter<DeepLinkEvent>;
|
|
111
131
|
addListener(eventName: string): void;
|