@rematter/pylon-react-native 0.1.9 → 0.1.11
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 +16 -2
- package/lib/PylonChatView.js +1 -5
- package/package.json +2 -10
- package/src/PylonChatView.tsx +2 -2
package/android/build.gradle
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
buildscript {
|
|
2
|
+
ext.kotlin_version = '1.9.0'
|
|
3
|
+
repositories {
|
|
4
|
+
google()
|
|
5
|
+
mavenCentral()
|
|
6
|
+
}
|
|
7
|
+
dependencies {
|
|
8
|
+
classpath 'com.android.tools.build:gradle:8.0.2'
|
|
9
|
+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
apply plugin: 'com.android.library'
|
|
14
|
+
apply plugin: 'kotlin-android'
|
|
3
15
|
|
|
4
16
|
def getExtOrDefault(name) {
|
|
5
17
|
return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties['RNPylonChat_' + name]
|
|
@@ -54,6 +66,8 @@ repositories {
|
|
|
54
66
|
|
|
55
67
|
dependencies {
|
|
56
68
|
implementation 'com.facebook.react:react-android'
|
|
69
|
+
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
70
|
+
|
|
57
71
|
// WebView dependency (same as parent SDK)
|
|
58
72
|
implementation 'androidx.webkit:webkit:1.8.0'
|
|
59
73
|
}
|
package/lib/PylonChatView.js
CHANGED
|
@@ -32,15 +32,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
32
32
|
return result;
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
36
|
exports.PylonChatView = void 0;
|
|
40
37
|
const react_1 = __importStar(require("react"));
|
|
41
38
|
const react_native_1 = require("react-native");
|
|
42
|
-
const
|
|
43
|
-
const NativePylonChatView = (0, codegenNativeComponent_1.default)("RNPylonChatView");
|
|
39
|
+
const NativePylonChatView = (0, react_native_1.requireNativeComponent)("RNPylonChatView");
|
|
44
40
|
const COMMANDS = {
|
|
45
41
|
openChat: "openChat",
|
|
46
42
|
closeChat: "closeChat",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rematter/pylon-react-native",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"description": "Pylon Chat SDK for React Native",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -35,13 +35,5 @@
|
|
|
35
35
|
"ios",
|
|
36
36
|
"android",
|
|
37
37
|
"RNPylonChat.podspec"
|
|
38
|
-
]
|
|
39
|
-
"codegenConfig": {
|
|
40
|
-
"name": "RNPylonChatViewSpec",
|
|
41
|
-
"type": "components",
|
|
42
|
-
"jsSrcsDir": "src",
|
|
43
|
-
"android": {
|
|
44
|
-
"javaPackageName": "com.pylonchat.reactnative"
|
|
45
|
-
}
|
|
46
|
-
}
|
|
38
|
+
]
|
|
47
39
|
}
|
package/src/PylonChatView.tsx
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { useImperativeHandle, useRef } from "react";
|
|
2
2
|
import {
|
|
3
3
|
findNodeHandle,
|
|
4
|
+
requireNativeComponent,
|
|
4
5
|
UIManager,
|
|
5
6
|
ViewStyle,
|
|
6
7
|
} from "react-native";
|
|
7
|
-
import codegenNativeComponent from "react-native/Libraries/Utilities/codegenNativeComponent";
|
|
8
8
|
import type { PylonChatListener, PylonConfig, PylonUser } from "./types";
|
|
9
9
|
|
|
10
10
|
// Public API exposed to SDK users.
|
|
@@ -70,7 +70,7 @@ interface NativePylonChatViewProps {
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
const NativePylonChatView =
|
|
73
|
-
|
|
73
|
+
requireNativeComponent<NativePylonChatViewProps>("RNPylonChatView");
|
|
74
74
|
|
|
75
75
|
const COMMANDS = {
|
|
76
76
|
openChat: "openChat",
|