@developer_tribe/react-native-comnyx 0.2.2 → 0.2.4
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/package.json +1 -1
- package/Comnyx.podspec +0 -41
- package/android/build.gradle +0 -100
- package/android/gradle.properties +0 -5
- package/android/src/main/AndroidManifest.xml +0 -3
- package/android/src/main/AndroidManifestNew.xml +0 -2
- package/android/src/main/java/com/comnyx/ComnyxModule.kt +0 -23
- package/android/src/main/java/com/comnyx/ComnyxPackage.kt +0 -33
- package/ios/Comnyx.h +0 -6
- package/ios/Comnyx.mm +0 -18
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@developer_tribe/react-native-comnyx",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "React Native chat component with integrated support panel, enabling real-time customer communication and efficient agent workflow management.",
|
|
5
5
|
"source": "./src/index.tsx",
|
|
6
6
|
"main": "./lib/commonjs/index.js",
|
package/Comnyx.podspec
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
require "json"
|
|
2
|
-
|
|
3
|
-
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
4
|
-
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
|
5
|
-
|
|
6
|
-
Pod::Spec.new do |s|
|
|
7
|
-
s.name = "Comnyx"
|
|
8
|
-
s.version = package["version"]
|
|
9
|
-
s.summary = package["description"]
|
|
10
|
-
s.homepage = package["homepage"]
|
|
11
|
-
s.license = package["license"]
|
|
12
|
-
s.authors = package["author"]
|
|
13
|
-
|
|
14
|
-
s.platforms = { :ios => "11.0" }
|
|
15
|
-
s.source = { :git => "https://www.npmjs.com.git", :tag => "#{s.version}" }
|
|
16
|
-
|
|
17
|
-
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
18
|
-
|
|
19
|
-
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
|
|
20
|
-
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
|
|
21
|
-
if respond_to?(:install_modules_dependencies, true)
|
|
22
|
-
install_modules_dependencies(s)
|
|
23
|
-
else
|
|
24
|
-
s.dependency "Comnyx"
|
|
25
|
-
|
|
26
|
-
# Don't install the dependencies when we run `pod install` in the old architecture.
|
|
27
|
-
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
|
|
28
|
-
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
|
|
29
|
-
s.pod_target_xcconfig = {
|
|
30
|
-
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
|
|
31
|
-
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
|
|
32
|
-
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
|
|
33
|
-
}
|
|
34
|
-
s.dependency "React-Codegen"
|
|
35
|
-
s.dependency "RCT-Folly"
|
|
36
|
-
s.dependency "RCTRequired"
|
|
37
|
-
s.dependency "RCTTypeSafety"
|
|
38
|
-
s.dependency "ReactCommon/turbomodule/core"
|
|
39
|
-
end
|
|
40
|
-
end
|
|
41
|
-
end
|
package/android/build.gradle
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
buildscript {
|
|
2
|
-
ext.getExtOrDefault = {name ->
|
|
3
|
-
return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties['Comnyx_' + name]
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
repositories {
|
|
7
|
-
google()
|
|
8
|
-
mavenCentral()
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
dependencies {
|
|
12
|
-
classpath "com.android.tools.build:gradle:8.7.2"
|
|
13
|
-
// noinspection DifferentKotlinGradleVersion
|
|
14
|
-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${getExtOrDefault('kotlinVersion')}"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
apply plugin: "com.android.library"
|
|
20
|
-
apply plugin: "kotlin-android"
|
|
21
|
-
|
|
22
|
-
apply plugin: "com.facebook.react"
|
|
23
|
-
|
|
24
|
-
def getExtOrIntegerDefault(name) {
|
|
25
|
-
return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["Comnyx_" + name]).toInteger()
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
def supportsNamespace() {
|
|
29
|
-
def parsed = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')
|
|
30
|
-
def major = parsed[0].toInteger()
|
|
31
|
-
def minor = parsed[1].toInteger()
|
|
32
|
-
|
|
33
|
-
// Namespace support was added in 7.3.0
|
|
34
|
-
return (major == 7 && minor >= 3) || major >= 8
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
android {
|
|
38
|
-
if (supportsNamespace()) {
|
|
39
|
-
namespace "com.comnyx"
|
|
40
|
-
|
|
41
|
-
sourceSets {
|
|
42
|
-
main {
|
|
43
|
-
manifest.srcFile "src/main/AndroidManifestNew.xml"
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")
|
|
49
|
-
|
|
50
|
-
defaultConfig {
|
|
51
|
-
minSdkVersion getExtOrIntegerDefault("minSdkVersion")
|
|
52
|
-
targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
buildFeatures {
|
|
56
|
-
buildConfig true
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
buildTypes {
|
|
60
|
-
release {
|
|
61
|
-
minifyEnabled false
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
lintOptions {
|
|
66
|
-
disable "GradleCompatible"
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
compileOptions {
|
|
70
|
-
sourceCompatibility JavaVersion.VERSION_1_8
|
|
71
|
-
targetCompatibility JavaVersion.VERSION_1_8
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
sourceSets {
|
|
75
|
-
main {
|
|
76
|
-
java.srcDirs += [
|
|
77
|
-
"generated/java",
|
|
78
|
-
"generated/jni"
|
|
79
|
-
]
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
repositories {
|
|
85
|
-
mavenCentral()
|
|
86
|
-
google()
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
def kotlin_version = getExtOrDefault("kotlinVersion")
|
|
90
|
-
|
|
91
|
-
dependencies {
|
|
92
|
-
implementation "com.facebook.react:react-android"
|
|
93
|
-
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
react {
|
|
97
|
-
jsRootDir = file("../src/")
|
|
98
|
-
libraryName = "Comnyx"
|
|
99
|
-
codegenJavaPackageName = "com.comnyx"
|
|
100
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
package com.comnyx
|
|
2
|
-
|
|
3
|
-
import com.facebook.react.bridge.ReactApplicationContext
|
|
4
|
-
import com.facebook.react.module.annotations.ReactModule
|
|
5
|
-
|
|
6
|
-
@ReactModule(name = ComnyxModule.NAME)
|
|
7
|
-
class ComnyxModule(reactContext: ReactApplicationContext) :
|
|
8
|
-
NativeComnyxSpec(reactContext) {
|
|
9
|
-
|
|
10
|
-
override fun getName(): String {
|
|
11
|
-
return NAME
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
// Example method
|
|
15
|
-
// See https://reactnative.dev/docs/native-modules-android
|
|
16
|
-
override fun multiply(a: Double, b: Double): Double {
|
|
17
|
-
return a * b
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
companion object {
|
|
21
|
-
const val NAME = "Comnyx"
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
package com.comnyx
|
|
2
|
-
|
|
3
|
-
import com.facebook.react.BaseReactPackage
|
|
4
|
-
import com.facebook.react.bridge.NativeModule
|
|
5
|
-
import com.facebook.react.bridge.ReactApplicationContext
|
|
6
|
-
import com.facebook.react.module.model.ReactModuleInfo
|
|
7
|
-
import com.facebook.react.module.model.ReactModuleInfoProvider
|
|
8
|
-
import java.util.HashMap
|
|
9
|
-
|
|
10
|
-
class ComnyxPackage : BaseReactPackage() {
|
|
11
|
-
override fun getModule(name: String, reactContext: ReactApplicationContext): NativeModule? {
|
|
12
|
-
return if (name == ComnyxModule.NAME) {
|
|
13
|
-
ComnyxModule(reactContext)
|
|
14
|
-
} else {
|
|
15
|
-
null
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
override fun getReactModuleInfoProvider(): ReactModuleInfoProvider {
|
|
20
|
-
return ReactModuleInfoProvider {
|
|
21
|
-
val moduleInfos: MutableMap<String, ReactModuleInfo> = HashMap()
|
|
22
|
-
moduleInfos[ComnyxModule.NAME] = ReactModuleInfo(
|
|
23
|
-
ComnyxModule.NAME,
|
|
24
|
-
ComnyxModule.NAME,
|
|
25
|
-
false, // canOverrideExistingModule
|
|
26
|
-
false, // needsEagerInit
|
|
27
|
-
false, // isCxxModule
|
|
28
|
-
true // isTurboModule
|
|
29
|
-
)
|
|
30
|
-
moduleInfos
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
package/ios/Comnyx.h
DELETED
package/ios/Comnyx.mm
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
#import "Comnyx.h"
|
|
2
|
-
|
|
3
|
-
@implementation Comnyx
|
|
4
|
-
RCT_EXPORT_MODULE()
|
|
5
|
-
|
|
6
|
-
- (NSNumber *)multiply:(double)a b:(double)b {
|
|
7
|
-
NSNumber *result = @(a * b);
|
|
8
|
-
|
|
9
|
-
return result;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
- (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:
|
|
13
|
-
(const facebook::react::ObjCTurboModule::InitParams &)params
|
|
14
|
-
{
|
|
15
|
-
return std::make_shared<facebook::react::NativeComnyxSpecJSI>(params);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
@end
|