@shenai/react-native-sdk 3.1.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/LICENSE.md +5 -0
- package/android/build.gradle +81 -0
- package/android/gradle.properties +5 -0
- package/android/src/main/AndroidManifest.xml +3 -0
- package/android/src/main/AndroidManifestNew.xml +2 -0
- package/android/src/main/java/com/shenaisdk/ShenaiSdkModule.java +1325 -0
- package/android/src/main/java/com/shenaisdk/ShenaiSdkPackage.java +24 -0
- package/android/src/main/java/com/shenaisdk/ShenaiSdkViewManager.java +37 -0
- package/ios/ShenaiSdkNativeModule.m +1121 -0
- package/ios/ShenaiSdkViewManager.m +37 -0
- package/lib/module/hooks.js +83 -0
- package/lib/module/index.js +667 -0
- package/lib/typescript/src/hooks.d.ts +37 -0
- package/lib/typescript/src/index.d.ts +466 -0
- package/package.json +57 -0
- package/react-native-shenai-sdk.podspec +37 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
Shen.AI SDK is proprietary software.
|
|
2
|
+
|
|
3
|
+
The contents of this package are provided under a commercial Shen.AI agreement.
|
|
4
|
+
Redistribution, reverse engineering, or use outside the scope of that agreement is
|
|
5
|
+
not permitted unless Shen.AI has granted explicit written permission.
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
buildscript {
|
|
2
|
+
repositories {
|
|
3
|
+
google()
|
|
4
|
+
mavenCentral()
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
dependencies {
|
|
8
|
+
classpath "com.android.tools.build:gradle:8.12.1"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
rootProject.allprojects {
|
|
13
|
+
repositories {
|
|
14
|
+
google()
|
|
15
|
+
mavenCentral()
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
def isNewArchitectureEnabled() {
|
|
20
|
+
return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
apply plugin: "com.android.library"
|
|
24
|
+
|
|
25
|
+
if (isNewArchitectureEnabled()) {
|
|
26
|
+
apply plugin: "com.facebook.react"
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def getExtOrIntegerDefault(name) {
|
|
30
|
+
return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["ShenaiSdk_" + name]).toInteger()
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
def supportsNamespace() {
|
|
34
|
+
def parsed = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')
|
|
35
|
+
def major = parsed[0].toInteger()
|
|
36
|
+
def minor = parsed[1].toInteger()
|
|
37
|
+
return (major == 7 && minor >= 3) || major >= 8
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
android {
|
|
41
|
+
if (supportsNamespace()) {
|
|
42
|
+
namespace "ai.mxlabs.shenai_sdk_react_native"
|
|
43
|
+
sourceSets {
|
|
44
|
+
main {
|
|
45
|
+
manifest.srcFile "src/main/AndroidManifestNew.xml"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")
|
|
51
|
+
|
|
52
|
+
defaultConfig {
|
|
53
|
+
minSdkVersion getExtOrIntegerDefault("minSdkVersion")
|
|
54
|
+
targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
buildTypes {
|
|
58
|
+
release {
|
|
59
|
+
minifyEnabled false
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
lintOptions {
|
|
64
|
+
disable "GradleCompatible"
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
compileOptions {
|
|
68
|
+
sourceCompatibility JavaVersion.VERSION_1_8
|
|
69
|
+
targetCompatibility JavaVersion.VERSION_1_8
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
repositories {
|
|
74
|
+
google()
|
|
75
|
+
mavenCentral()
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
dependencies {
|
|
79
|
+
api "ai.shen:shenai-sdk:3.1.1"
|
|
80
|
+
implementation "com.facebook.react:react-native:+"
|
|
81
|
+
}
|