juggleim-rnsdk 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/android/build/.transforms/42b8ab7e96b9440b0e91d2ecba5f579c/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/.transforms/a3b636e0768beb7635f48b7f77613c33/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/FileUtils.dex +0 -0
- package/android/build/.transforms/a3b636e0768beb7635f48b7f77613c33/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$1.dex +0 -0
- package/android/build/.transforms/a3b636e0768beb7635f48b7f77613c33/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$12.dex +0 -0
- package/android/build/.transforms/a3b636e0768beb7635f48b7f77613c33/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$13.dex +0 -0
- package/android/build/.transforms/a3b636e0768beb7635f48b7f77613c33/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$14.dex +0 -0
- package/android/build/.transforms/a3b636e0768beb7635f48b7f77613c33/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$15.dex +0 -0
- package/android/build/.transforms/a3b636e0768beb7635f48b7f77613c33/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$16.dex +0 -0
- package/android/build/.transforms/a3b636e0768beb7635f48b7f77613c33/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$17.dex +0 -0
- package/android/build/.transforms/a3b636e0768beb7635f48b7f77613c33/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$18.dex +0 -0
- package/android/build/.transforms/a3b636e0768beb7635f48b7f77613c33/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$19.dex +0 -0
- package/android/build/.transforms/a3b636e0768beb7635f48b7f77613c33/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$2.dex +0 -0
- package/android/build/.transforms/a3b636e0768beb7635f48b7f77613c33/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$20.dex +0 -0
- package/android/build/.transforms/a3b636e0768beb7635f48b7f77613c33/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$21.dex +0 -0
- package/android/build/.transforms/a3b636e0768beb7635f48b7f77613c33/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$22.dex +0 -0
- package/android/build/.transforms/a3b636e0768beb7635f48b7f77613c33/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$23.dex +0 -0
- package/android/build/.transforms/a3b636e0768beb7635f48b7f77613c33/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$24.dex +0 -0
- package/android/build/.transforms/a3b636e0768beb7635f48b7f77613c33/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$25.dex +0 -0
- package/android/build/.transforms/a3b636e0768beb7635f48b7f77613c33/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$26.dex +0 -0
- package/android/build/.transforms/a3b636e0768beb7635f48b7f77613c33/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$27.dex +0 -0
- package/android/build/.transforms/a3b636e0768beb7635f48b7f77613c33/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$28.dex +0 -0
- package/android/build/.transforms/a3b636e0768beb7635f48b7f77613c33/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$29.dex +0 -0
- package/android/build/.transforms/a3b636e0768beb7635f48b7f77613c33/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$3.dex +0 -0
- package/android/build/.transforms/a3b636e0768beb7635f48b7f77613c33/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$30.dex +0 -0
- package/android/build/.transforms/a3b636e0768beb7635f48b7f77613c33/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$4.dex +0 -0
- package/android/build/.transforms/a3b636e0768beb7635f48b7f77613c33/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$5.dex +0 -0
- package/android/build/.transforms/a3b636e0768beb7635f48b7f77613c33/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager.dex +0 -0
- package/android/build/.transforms/a3b636e0768beb7635f48b7f77613c33/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
- package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/juggleim/FileUtils.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/juggleim/JuggleIMManager$1.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/juggleim/JuggleIMManager$12.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/juggleim/JuggleIMManager$13.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/juggleim/JuggleIMManager$14.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/juggleim/JuggleIMManager$15.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/juggleim/JuggleIMManager$16.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/juggleim/JuggleIMManager$17.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/juggleim/JuggleIMManager$18.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/juggleim/JuggleIMManager$19.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/juggleim/JuggleIMManager$2.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/juggleim/JuggleIMManager$20.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/juggleim/JuggleIMManager$21.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/juggleim/JuggleIMManager$22.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/juggleim/JuggleIMManager$23.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/juggleim/JuggleIMManager$24.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/juggleim/JuggleIMManager$25.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/juggleim/JuggleIMManager$26.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/juggleim/JuggleIMManager$27.class +0 -0
- package/android/build/{tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/JuggleIMManager$25.class.uniqueId4 → intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/juggleim/JuggleIMManager$28.class} +0 -0
- package/android/build/{tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/JuggleIMManager$26.class.uniqueId14 → intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/juggleim/JuggleIMManager$29.class} +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/juggleim/JuggleIMManager$3.class +0 -0
- package/android/build/{tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/JuggleIMManager$27.class.uniqueId26 → intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/juggleim/JuggleIMManager$30.class} +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/juggleim/JuggleIMManager$4.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/juggleim/JuggleIMManager$5.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/juggleim/JuggleIMManager.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/juggleim/FileUtils.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/juggleim/JuggleIMManager$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/juggleim/JuggleIMManager$12.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/juggleim/JuggleIMManager$13.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/juggleim/JuggleIMManager$14.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/juggleim/JuggleIMManager$15.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/juggleim/JuggleIMManager$16.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/juggleim/JuggleIMManager$17.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/juggleim/JuggleIMManager$18.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/juggleim/JuggleIMManager$19.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/juggleim/JuggleIMManager$2.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/juggleim/JuggleIMManager$20.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/juggleim/JuggleIMManager$21.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/juggleim/JuggleIMManager$22.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/juggleim/JuggleIMManager$23.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/juggleim/JuggleIMManager$24.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/juggleim/JuggleIMManager$25.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/juggleim/JuggleIMManager$26.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/juggleim/JuggleIMManager$27.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/juggleim/JuggleIMManager$28.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/juggleim/JuggleIMManager$29.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/juggleim/JuggleIMManager$3.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/juggleim/JuggleIMManager$30.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/juggleim/JuggleIMManager$4.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/juggleim/JuggleIMManager$5.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/juggleim/JuggleIMManager.class +0 -0
- package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/{JuggleIMManager$1.class.uniqueId28 → JuggleIMManager$1.class.uniqueId31} +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/{JuggleIMManager$12.class.uniqueId25 → JuggleIMManager$12.class.uniqueId28} +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/{JuggleIMManager$13.class.uniqueId8 → JuggleIMManager$13.class.uniqueId9} +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/{JuggleIMManager$14.class.uniqueId18 → JuggleIMManager$14.class.uniqueId20} +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/{JuggleIMManager$15.class.uniqueId7 → JuggleIMManager$15.class.uniqueId8} +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/{JuggleIMManager$16.class.uniqueId12 → JuggleIMManager$16.class.uniqueId14} +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/{JuggleIMManager$17.class.uniqueId27 → JuggleIMManager$17.class.uniqueId30} +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/{JuggleIMManager$18.class.uniqueId9 → JuggleIMManager$18.class.uniqueId11} +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/{JuggleIMManager$19.class.uniqueId23 → JuggleIMManager$19.class.uniqueId26} +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/{JuggleIMManager$2.class.uniqueId3 → JuggleIMManager$2.class.uniqueId4} +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/{JuggleIMManager$20.class.uniqueId6 → JuggleIMManager$20.class.uniqueId7} +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/JuggleIMManager$21.class.uniqueId17 +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/JuggleIMManager$22.class.uniqueId24 +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/JuggleIMManager$23.class.uniqueId13 +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/{JuggleIMManager$21.class.uniqueId15 → JuggleIMManager$24.class.uniqueId19} +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/{JuggleIMManager$22.class.uniqueId21 → JuggleIMManager$25.class.uniqueId5} +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/{JuggleIMManager$23.class.uniqueId11 → JuggleIMManager$26.class.uniqueId16} +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/{JuggleIMManager$24.class.uniqueId17 → JuggleIMManager$27.class.uniqueId29} +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/JuggleIMManager$28.class.uniqueId10 +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/JuggleIMManager$29.class.uniqueId23 +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/{JuggleIMManager$3.class.uniqueId20 → JuggleIMManager$3.class.uniqueId22} +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/JuggleIMManager$30.class.uniqueId1 +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/{JuggleIMManager$4.class.uniqueId24 → JuggleIMManager$4.class.uniqueId27} +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/{JuggleIMManager$5.class.uniqueId10 → JuggleIMManager$5.class.uniqueId12} +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/JuggleIMManager.class.uniqueId2 +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/juggleim/FileUtils.java +4 -1
- package/android/src/main/java/com/juggleim/JuggleIMManager.java +173 -4
- package/ios/JuggleIMManager.m +150 -4
- package/juggleim-rnsdk.podspec +1 -1
- package/package.json +1 -1
- package/src/index.d.ts +33 -0
- package/src/index.js +219 -15
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/JuggleIMManager.class.uniqueId1 +0 -0
- /package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/{JuggleIMManager$11.class.uniqueId16 → JuggleIMManager$11.class.uniqueId18} +0 -0
- /package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/{JuggleIMManager$6.class.uniqueId13 → JuggleIMManager$6.class.uniqueId15} +0 -0
- /package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/{JuggleIMManager$7.class.uniqueId5 → JuggleIMManager$7.class.uniqueId6} +0 -0
- /package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/{JuggleIMManager$8.class.uniqueId19 → JuggleIMManager$8.class.uniqueId21} +0 -0
- /package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/{JuggleIMManager$9.class.uniqueId22 → JuggleIMManager$9.class.uniqueId25} +0 -0
- /package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/{JuggleIMPackage.class.uniqueId2 → JuggleIMPackage.class.uniqueId3} +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/android/build.gradle
CHANGED
|
@@ -44,7 +44,7 @@ repositories {
|
|
|
44
44
|
|
|
45
45
|
dependencies {
|
|
46
46
|
implementation 'com.facebook.react:react-native:0.71.1'
|
|
47
|
-
implementation 'com.juggle.im:juggle:1.8.
|
|
47
|
+
implementation 'com.juggle.im:juggle:1.8.35'
|
|
48
48
|
implementation 'com.juggle.call.zego:juggle:1.8.25'
|
|
49
49
|
implementation 'im.zego:express-video:3.17.3'
|
|
50
50
|
}
|
|
@@ -18,9 +18,12 @@ import java.util.Locale;
|
|
|
18
18
|
|
|
19
19
|
public class FileUtils {
|
|
20
20
|
public static String convertContentUriToFile(Context context, String contentUri) {
|
|
21
|
+
if (contentUri.startsWith("file://")) {
|
|
22
|
+
return contentUri.substring(7);
|
|
23
|
+
}
|
|
21
24
|
if (!contentUri.startsWith("content://")) {
|
|
22
25
|
return contentUri;
|
|
23
|
-
}
|
|
26
|
+
}
|
|
24
27
|
InputStream inputStream = null;
|
|
25
28
|
OutputStream outputStream = null;
|
|
26
29
|
File tempFile = null;
|
|
@@ -25,6 +25,7 @@ import com.juggle.im.model.Conversation;
|
|
|
25
25
|
import com.juggle.im.model.ConversationInfo;
|
|
26
26
|
import com.juggle.im.model.MessageMentionInfo;
|
|
27
27
|
import com.juggle.im.model.MessageReaction;
|
|
28
|
+
import com.juggle.im.model.MediaMessageContent;
|
|
28
29
|
import com.juggle.im.model.MessageReactionItem;
|
|
29
30
|
import com.juggle.im.model.UserInfo;
|
|
30
31
|
import com.juggle.im.model.GroupMessageReadInfo;
|
|
@@ -498,7 +499,6 @@ public class JuggleIMManager extends ReactContextBaseJavaModule {
|
|
|
498
499
|
private WritableMap convertMessageContentToMap(MessageContent content) {
|
|
499
500
|
byte[] bytes = content.encode();
|
|
500
501
|
String str = new String(bytes, StandardCharsets.UTF_8);
|
|
501
|
-
Log.d("JuggleIM", "convertMessageContentToMap: " + str);
|
|
502
502
|
WritableMap map = RNTypeConverter.stringToWritableMap(str);
|
|
503
503
|
if (content instanceof ImageMessage) {
|
|
504
504
|
ImageMessage img = (ImageMessage) content;
|
|
@@ -1077,9 +1077,17 @@ public class JuggleIMManager extends ReactContextBaseJavaModule {
|
|
|
1077
1077
|
* 将 ReadableMap 转换为 Conversation 对象
|
|
1078
1078
|
*/
|
|
1079
1079
|
private Conversation convertMapToConversation(ReadableMap map) {
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1080
|
+
if (map.hasKey("conversationType") && map.hasKey("conversationId")) {
|
|
1081
|
+
Conversation.ConversationType type = Conversation.ConversationType.values()[map.getInt("conversationType")];
|
|
1082
|
+
Conversation conversation = new Conversation(type, map.getString("conversationId"));
|
|
1083
|
+
return conversation;
|
|
1084
|
+
} else if (map.hasKey("conversation")) {
|
|
1085
|
+
ReadableMap conversationMap = map.getMap("conversation");
|
|
1086
|
+
Conversation.ConversationType type = Conversation.ConversationType.values()[conversationMap.getInt("conversationType")];
|
|
1087
|
+
Conversation conversation = new Conversation(type, conversationMap.getString("conversationId"));
|
|
1088
|
+
return conversation;
|
|
1089
|
+
}
|
|
1090
|
+
return null;
|
|
1083
1091
|
}
|
|
1084
1092
|
|
|
1085
1093
|
/**
|
|
@@ -1613,6 +1621,166 @@ public class JuggleIMManager extends ReactContextBaseJavaModule {
|
|
|
1613
1621
|
}
|
|
1614
1622
|
}
|
|
1615
1623
|
|
|
1624
|
+
/**
|
|
1625
|
+
* 发送媒体消息
|
|
1626
|
+
*/
|
|
1627
|
+
@ReactMethod
|
|
1628
|
+
public void sendMediaMessage(ReadableMap messageMap, String messageId, Promise promise) {
|
|
1629
|
+
try {
|
|
1630
|
+
Conversation conversation = convertMapToConversation(messageMap);
|
|
1631
|
+
ReadableMap contentMap = messageMap.getMap("content");
|
|
1632
|
+
MessageContent content = convertMapToMessageContent(contentMap);
|
|
1633
|
+
|
|
1634
|
+
if (!(content instanceof MediaMessageContent)) {
|
|
1635
|
+
promise.reject("SEND_MEDIA_MESSAGE_ERROR", "Content is not a media message");
|
|
1636
|
+
return;
|
|
1637
|
+
}
|
|
1638
|
+
|
|
1639
|
+
MessageOptions options = new MessageOptions();
|
|
1640
|
+
PushData pushData = convertMapToPushData(messageMap);
|
|
1641
|
+
if (pushData != null) {
|
|
1642
|
+
options.setPushData(pushData);
|
|
1643
|
+
}
|
|
1644
|
+
ReadableMap mentionInfoMap = messageMap.getMap("mentionInfo");
|
|
1645
|
+
if (mentionInfoMap != null) {
|
|
1646
|
+
MessageMentionInfo mentionInfo = convertMapToMentionInfo(mentionInfoMap);
|
|
1647
|
+
options.setMentionInfo(mentionInfo);
|
|
1648
|
+
}
|
|
1649
|
+
if (messageMap.hasKey("referredMessageId")) {
|
|
1650
|
+
options.setReferredMessageId(messageMap.getString("referredMessageId"));
|
|
1651
|
+
}
|
|
1652
|
+
|
|
1653
|
+
Message message = JIM.getInstance().getMessageManager().sendMediaMessage(
|
|
1654
|
+
(MediaMessageContent) content,
|
|
1655
|
+
conversation,
|
|
1656
|
+
options,
|
|
1657
|
+
new IMessageManager.ISendMediaMessageCallback() {
|
|
1658
|
+
@Override
|
|
1659
|
+
public void onProgress(int progress, Message message) {
|
|
1660
|
+
WritableMap params = new WritableNativeMap();
|
|
1661
|
+
params.putString("messageId", messageId);
|
|
1662
|
+
params.putInt("progress", progress);
|
|
1663
|
+
params.putMap("message", convertMessageToMap(message));
|
|
1664
|
+
sendEvent("onMediaMessageProgress", params);
|
|
1665
|
+
}
|
|
1666
|
+
|
|
1667
|
+
@Override
|
|
1668
|
+
public void onSuccess(Message message) {
|
|
1669
|
+
WritableMap params = new WritableNativeMap();
|
|
1670
|
+
params.putString("messageId", messageId);
|
|
1671
|
+
params.putMap("message", convertMessageToMap(message));
|
|
1672
|
+
sendEvent("onMediaMessageSent", params);
|
|
1673
|
+
}
|
|
1674
|
+
|
|
1675
|
+
@Override
|
|
1676
|
+
public void onError(Message message, int errorCode) {
|
|
1677
|
+
WritableMap params = new WritableNativeMap();
|
|
1678
|
+
params.putString("messageId", messageId);
|
|
1679
|
+
params.putMap("message", convertMessageToMap(message));
|
|
1680
|
+
params.putInt("errorCode", errorCode);
|
|
1681
|
+
sendEvent("onMediaMessageSentError", params);
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1684
|
+
@Override
|
|
1685
|
+
public void onCancel(Message message) {
|
|
1686
|
+
WritableMap params = new WritableNativeMap();
|
|
1687
|
+
params.putString("messageId", messageId);
|
|
1688
|
+
params.putMap("message", convertMessageToMap(message));
|
|
1689
|
+
sendEvent("onMediaMessageCancelled", params);
|
|
1690
|
+
}
|
|
1691
|
+
});
|
|
1692
|
+
|
|
1693
|
+
WritableMap result = convertMessageToMap(message);
|
|
1694
|
+
result.putString("messageId", messageId);
|
|
1695
|
+
promise.resolve(result);
|
|
1696
|
+
} catch (Exception e) {
|
|
1697
|
+
promise.reject("SEND_MEDIA_MESSAGE_ERROR", e.getMessage());
|
|
1698
|
+
}
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
/**
|
|
1702
|
+
* 重发消息
|
|
1703
|
+
*/
|
|
1704
|
+
@ReactMethod
|
|
1705
|
+
public void resendMessage(ReadableMap messageMap, String messageId, Promise promise) {
|
|
1706
|
+
try {
|
|
1707
|
+
Message message = convertMapToMessage(messageMap);
|
|
1708
|
+
Message sendMsg = JIM.getInstance().getMessageManager().resendMessage(message, new IMessageManager.ISendMessageCallback() {
|
|
1709
|
+
@Override
|
|
1710
|
+
public void onSuccess(Message message) {
|
|
1711
|
+
WritableMap params = new WritableNativeMap();
|
|
1712
|
+
params.putString("messageId", messageId);
|
|
1713
|
+
params.putMap("message", convertMessageToMap(message));
|
|
1714
|
+
sendEvent("onMessageSent", params);
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
@Override
|
|
1718
|
+
public void onError(Message message, int errorCode) {
|
|
1719
|
+
WritableMap params = new WritableNativeMap();
|
|
1720
|
+
params.putString("messageId", messageId);
|
|
1721
|
+
params.putMap("message", convertMessageToMap(message));
|
|
1722
|
+
params.putInt("errorCode", errorCode);
|
|
1723
|
+
sendEvent("onMessageSentError", params);
|
|
1724
|
+
}
|
|
1725
|
+
});
|
|
1726
|
+
WritableMap result = convertMessageToMap(sendMsg);
|
|
1727
|
+
result.putString("messageId", messageId);
|
|
1728
|
+
promise.resolve(result);
|
|
1729
|
+
} catch (Exception e) {
|
|
1730
|
+
promise.reject("RESEND_MESSAGE_ERROR", e.getMessage());
|
|
1731
|
+
}
|
|
1732
|
+
}
|
|
1733
|
+
|
|
1734
|
+
/**
|
|
1735
|
+
* 重发媒体消息
|
|
1736
|
+
*/
|
|
1737
|
+
@ReactMethod
|
|
1738
|
+
public void resendMediaMessage(ReadableMap messageMap, String messageId, Promise promise) {
|
|
1739
|
+
try {
|
|
1740
|
+
Message message = convertMapToMessage(messageMap);
|
|
1741
|
+
Message sendMsg = JIM.getInstance().getMessageManager().resendMediaMessage(message, new IMessageManager.ISendMediaMessageCallback() {
|
|
1742
|
+
@Override
|
|
1743
|
+
public void onProgress(int progress, Message message) {
|
|
1744
|
+
WritableMap params = new WritableNativeMap();
|
|
1745
|
+
params.putString("messageId", messageId);
|
|
1746
|
+
params.putInt("progress", progress);
|
|
1747
|
+
params.putMap("message", convertMessageToMap(message));
|
|
1748
|
+
sendEvent("onMediaMessageProgress", params);
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1751
|
+
@Override
|
|
1752
|
+
public void onSuccess(Message message) {
|
|
1753
|
+
WritableMap params = new WritableNativeMap();
|
|
1754
|
+
params.putString("messageId", messageId);
|
|
1755
|
+
params.putMap("message", convertMessageToMap(message));
|
|
1756
|
+
sendEvent("onMediaMessageSent", params);
|
|
1757
|
+
}
|
|
1758
|
+
|
|
1759
|
+
@Override
|
|
1760
|
+
public void onError(Message message, int errorCode) {
|
|
1761
|
+
WritableMap params = new WritableNativeMap();
|
|
1762
|
+
params.putString("messageId", messageId);
|
|
1763
|
+
params.putMap("message", convertMessageToMap(message));
|
|
1764
|
+
params.putInt("errorCode", errorCode);
|
|
1765
|
+
sendEvent("onMediaMessageSentError", params);
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1768
|
+
@Override
|
|
1769
|
+
public void onCancel(Message message) {
|
|
1770
|
+
WritableMap params = new WritableNativeMap();
|
|
1771
|
+
params.putString("messageId", messageId);
|
|
1772
|
+
params.putMap("message", convertMessageToMap(message));
|
|
1773
|
+
sendEvent("onMediaMessageCancelled", params);
|
|
1774
|
+
}
|
|
1775
|
+
});
|
|
1776
|
+
WritableMap result = convertMessageToMap(sendMsg);
|
|
1777
|
+
result.putString("messageId", messageId);
|
|
1778
|
+
promise.resolve(result);
|
|
1779
|
+
} catch (Exception e) {
|
|
1780
|
+
promise.reject("RESEND_MEDIA_MESSAGE_ERROR", e.getMessage());
|
|
1781
|
+
}
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1616
1784
|
private Message convertMapToMessage(ReadableMap messageMap) {
|
|
1617
1785
|
Message message = new Message();
|
|
1618
1786
|
Conversation conversation = convertMapToConversation(messageMap);
|
|
@@ -1637,6 +1805,7 @@ public class JuggleIMManager extends ReactContextBaseJavaModule {
|
|
|
1637
1805
|
ReadableMap contentMap = messageMap.getMap("content");
|
|
1638
1806
|
MessageContent content = convertMapToMessageContent(contentMap);
|
|
1639
1807
|
message.setContent(content);
|
|
1808
|
+
message.setContentType(content.getContentType());
|
|
1640
1809
|
}
|
|
1641
1810
|
|
|
1642
1811
|
// 设置消息方向
|