@volcengine/react-native-live-push 1.0.0

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.
Files changed (54) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +2 -0
  3. package/android/build.gradle +92 -0
  4. package/android/gradle.properties +5 -0
  5. package/android/src/main/AndroidManifest.xml +16 -0
  6. package/android/src/main/AndroidManifestNew.xml +16 -0
  7. package/android/src/main/java/com/volcengine/velive/rn/push/ExternalSourceHelper.java +58 -0
  8. package/android/src/main/java/com/volcengine/velive/rn/push/NativeVariableManager.java +19 -0
  9. package/android/src/main/java/com/volcengine/velive/rn/push/ScreenCaptureHelper.java +73 -0
  10. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushModule.java +182 -0
  11. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushModuleSpec.java +16 -0
  12. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushPackage.java +27 -0
  13. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushView.java +45 -0
  14. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushViewManager.java +87 -0
  15. package/ios/VeLivePushSDK.h +24 -0
  16. package/ios/VeLivePushSDK.m +109 -0
  17. package/ios/VeLivePushView.h +24 -0
  18. package/ios/VeLivePushView.m +74 -0
  19. package/ios/VeLivePushViewManager.m +59 -0
  20. package/lib/commonjs/index.js +24238 -0
  21. package/lib/module/index.js +24186 -0
  22. package/lib/typescript/android/index.d.ts +44 -0
  23. package/lib/typescript/codegen/android/api.d.ts +1408 -0
  24. package/lib/typescript/codegen/android/callback.d.ts +265 -0
  25. package/lib/typescript/codegen/android/errorcode.d.ts +50 -0
  26. package/lib/typescript/codegen/android/index.d.ts +5 -0
  27. package/lib/typescript/codegen/android/keytype.d.ts +1069 -0
  28. package/lib/typescript/codegen/android/types.d.ts +32 -0
  29. package/lib/typescript/codegen/ios/api.d.ts +1133 -0
  30. package/lib/typescript/codegen/ios/callback.d.ts +251 -0
  31. package/lib/typescript/codegen/ios/errorcode.d.ts +104 -0
  32. package/lib/typescript/codegen/ios/index.d.ts +5 -0
  33. package/lib/typescript/codegen/ios/keytype.d.ts +934 -0
  34. package/lib/typescript/codegen/ios/types.d.ts +35 -0
  35. package/lib/typescript/codegen/pack/api.d.ts +1923 -0
  36. package/lib/typescript/codegen/pack/callback.d.ts +545 -0
  37. package/lib/typescript/codegen/pack/errorcode.d.ts +174 -0
  38. package/lib/typescript/codegen/pack/index.d.ts +5 -0
  39. package/lib/typescript/codegen/pack/keytype.d.ts +1953 -0
  40. package/lib/typescript/codegen/pack/types.d.ts +1 -0
  41. package/lib/typescript/codegen/type-shim.d.ts +6 -0
  42. package/lib/typescript/component.d.ts +8 -0
  43. package/lib/typescript/core/api.d.ts +2 -0
  44. package/lib/typescript/core/callback.d.ts +2 -0
  45. package/lib/typescript/core/env.d.ts +29 -0
  46. package/lib/typescript/core/errorcode.d.ts +2 -0
  47. package/lib/typescript/core/index.d.ts +6 -0
  48. package/lib/typescript/core/keytype.d.ts +7 -0
  49. package/lib/typescript/core/pusher.d.ts +16 -0
  50. package/lib/typescript/index.d.ts +2 -0
  51. package/lib/typescript/ios/extends.d.ts +41 -0
  52. package/lib/typescript/runtime.d.ts +1 -0
  53. package/package.json +31 -0
  54. package/react-native-velive-push.podspec +45 -0
@@ -0,0 +1,44 @@
1
+ import { NativeProxyService, NativeView } from '@vcloud-lux/hybrid-runtime';
2
+ import type { SurfaceHolder } from '../codegen/android/index';
3
+ export declare class AndroidSurfaceView extends NativeView {
4
+ getHolder(): Promise<SurfaceHolder>;
5
+ }
6
+ declare class ApplicationContext {
7
+ }
8
+ declare class ReactApplicationContext {
9
+ }
10
+ declare class ScreenIntent {
11
+ }
12
+ export declare class NativeVariables {
13
+ static getApplicationContext(): Promise<ApplicationContext>;
14
+ static getReactApplicationContext(): Promise<ReactApplicationContext>;
15
+ static getScreenIntent(): Promise<ScreenIntent>;
16
+ }
17
+ export declare class VeLivePlayerConfiguration extends NativeProxyService {
18
+ enableStatisticsCallback?: boolean;
19
+ enableLiveDNS?: boolean;
20
+ enableSei?: boolean;
21
+ enableHardwareDecode?: boolean;
22
+ networkTimeoutMs?: number;
23
+ retryIntervalTimeMs?: number;
24
+ retryMaxCount?: number;
25
+ statisticsCallbackInterval?: number;
26
+ }
27
+ export declare class Env {
28
+ static init(cfg: any): void;
29
+ static openAppLog(cfg: any): void;
30
+ static getApplicationContext(): ApplicationContext;
31
+ }
32
+ declare class ConfigBuilder {
33
+ setApplicationContext(appContext: ApplicationContext): ConfigBuilder;
34
+ setAppID(appId: string): ConfigBuilder;
35
+ setAppName(appId: string): ConfigBuilder;
36
+ setAppVersion(appVer: string): ConfigBuilder;
37
+ setAppChannel(appVer: string): ConfigBuilder;
38
+ setLicenseUri(appVer: string): ConfigBuilder;
39
+ build(): any;
40
+ }
41
+ export declare class Config {
42
+ static Builder: typeof ConfigBuilder;
43
+ }
44
+ export {};