@daily-co/react-native-daily-js 0.25.0 → 0.28.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.
package/android/build.gradle
CHANGED
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
// android/build.gradle
|
|
2
|
-
|
|
3
|
-
// based on:
|
|
4
|
-
//
|
|
5
|
-
// * https://github.com/facebook/react-native/blob/0.60-stable/template/android/build.gradle
|
|
6
|
-
// original location:
|
|
7
|
-
// - https://github.com/facebook/react-native/blob/0.58-stable/local-cli/templates/HelloWorld/android/build.gradle
|
|
8
|
-
//
|
|
9
|
-
// * https://github.com/facebook/react-native/blob/0.60-stable/template/android/app/build.gradle
|
|
10
|
-
// original location:
|
|
11
|
-
// - https://github.com/facebook/react-native/blob/0.58-stable/local-cli/templates/HelloWorld/android/app/build.gradle
|
|
12
|
-
|
|
13
1
|
def DEFAULT_COMPILE_SDK_VERSION = 31
|
|
14
2
|
def DEFAULT_BUILD_TOOLS_VERSION = '31.0.0'
|
|
15
3
|
def DEFAULT_MIN_SDK_VERSION = 24
|
|
@@ -32,13 +20,11 @@ buildscript {
|
|
|
32
20
|
mavenCentral()
|
|
33
21
|
}
|
|
34
22
|
dependencies {
|
|
35
|
-
classpath 'com.android.tools.build:gradle:3.4.
|
|
23
|
+
classpath 'com.android.tools.build:gradle:3.4.3'
|
|
36
24
|
}
|
|
37
25
|
}
|
|
38
26
|
}
|
|
39
27
|
|
|
40
|
-
apply plugin: 'com.android.library'
|
|
41
|
-
|
|
42
28
|
android {
|
|
43
29
|
compileSdkVersion safeExtGet('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION)
|
|
44
30
|
buildToolsVersion safeExtGet('buildToolsVersion', DEFAULT_BUILD_TOOLS_VERSION)
|
|
@@ -76,88 +62,3 @@ dependencies {
|
|
|
76
62
|
//noinspection GradleDynamicVersion
|
|
77
63
|
implementation 'com.facebook.react:react-native:+' // From node_modules
|
|
78
64
|
}
|
|
79
|
-
|
|
80
|
-
def configureReactNativePom(def pom) {
|
|
81
|
-
def packageJson = new groovy.json.JsonSlurper().parseText(file('../package.json').text)
|
|
82
|
-
|
|
83
|
-
pom.project {
|
|
84
|
-
name packageJson.title
|
|
85
|
-
artifactId packageJson.name
|
|
86
|
-
version = packageJson.version
|
|
87
|
-
group = "com.reactlibrary"
|
|
88
|
-
description packageJson.description
|
|
89
|
-
url packageJson.repository.baseUrl
|
|
90
|
-
|
|
91
|
-
licenses {
|
|
92
|
-
license {
|
|
93
|
-
name packageJson.license
|
|
94
|
-
url packageJson.repository.baseUrl + '/blob/main/' + packageJson.licenseFilename
|
|
95
|
-
distribution 'repo'
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
developers {
|
|
100
|
-
developer {
|
|
101
|
-
id packageJson.author.username
|
|
102
|
-
name packageJson.author.name
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
afterEvaluate { project ->
|
|
109
|
-
// some Gradle build hooks ref:
|
|
110
|
-
// https://www.oreilly.com/library/view/gradle-beyond-the/9781449373801/ch03.html
|
|
111
|
-
task androidJavadoc(type: Javadoc) {
|
|
112
|
-
source = android.sourceSets.main.java.srcDirs
|
|
113
|
-
classpath += files(android.bootClasspath)
|
|
114
|
-
project.getConfigurations().getByName('implementation').setCanBeResolved(true)
|
|
115
|
-
classpath += files(project.getConfigurations().getByName('implementation').asList())
|
|
116
|
-
include '**/*.java'
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
task androidJavadocJar(type: Jar, dependsOn: androidJavadoc) {
|
|
120
|
-
archiveClassifier.set("javadoc")
|
|
121
|
-
from androidJavadoc.destinationDir
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
task androidSourcesJar(type: Jar) {
|
|
125
|
-
archiveClassifier.set("sources")
|
|
126
|
-
from android.sourceSets.main.java.srcDirs
|
|
127
|
-
include '**/*.java'
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
android.libraryVariants.all { variant ->
|
|
131
|
-
def name = variant.name.capitalize()
|
|
132
|
-
def javaCompileTask = variant.javaCompileProvider.get()
|
|
133
|
-
|
|
134
|
-
task "jar${name}"(type: Jar, dependsOn: javaCompileTask) {
|
|
135
|
-
from javaCompileTask.destinationDir
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
artifacts {
|
|
140
|
-
archives androidSourcesJar
|
|
141
|
-
archives androidJavadocJar
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
// Disable Maven deploy for now (only support Gradle builds).
|
|
145
|
-
//
|
|
146
|
-
// When this is enabled, configureReactNativePom and/or package.json will
|
|
147
|
-
// have to be updated so they align to configure a valid POM (not sure what
|
|
148
|
-
// fields are required or how to test this yet).
|
|
149
|
-
//
|
|
150
|
-
// Current misalignment:
|
|
151
|
-
// - license
|
|
152
|
-
// - author.username
|
|
153
|
-
// - the fact of requiring a sole author (we'll want multiple contributors)
|
|
154
|
-
//
|
|
155
|
-
// task installArchives(type: Upload) {
|
|
156
|
-
// configuration = configurations.archives
|
|
157
|
-
// repositories.mavenDeployer {
|
|
158
|
-
// // Deploy to react-native-event-bridge/maven, ready to publish to npm
|
|
159
|
-
// repository url: "file://${projectDir}/../android/maven"
|
|
160
|
-
// configureReactNativePom pom
|
|
161
|
-
// }
|
|
162
|
-
// }
|
|
163
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@daily-co/react-native-daily-js",
|
|
3
|
-
"
|
|
3
|
+
"//": "^ COMMENT OUT 'private: true' BEFORE RUNNING NPM PUBLISH",
|
|
4
|
+
"version": "0.28.0",
|
|
4
5
|
"description": "React Native library for making video calls using Daily",
|
|
5
6
|
"main": "dist/index.js",
|
|
6
7
|
"types": "dist/index.d.ts",
|
|
@@ -26,11 +27,11 @@
|
|
|
26
27
|
"baseUrl": "https://github.com/daily-co/react-native-daily-js"
|
|
27
28
|
},
|
|
28
29
|
"dependencies": {
|
|
29
|
-
"@daily-co/daily-js": "^0.
|
|
30
|
+
"@daily-co/daily-js": "^0.30.0",
|
|
30
31
|
"@types/react-native-background-timer": "^2.0.0",
|
|
31
32
|
"react-native-url-polyfill": "^1.1.2"
|
|
32
33
|
},
|
|
33
|
-
"
|
|
34
|
+
"///": "WHEN ONE OF THESE CHANGE, PLEASE UPDATE README.md INSTALL SNIPPET ACCORDINGLY",
|
|
34
35
|
"peerDependencies": {
|
|
35
36
|
"@daily-co/react-native-webrtc": "1.94.1-daily.4",
|
|
36
37
|
"@react-native-async-storage/async-storage": "^1.15.7",
|
|
@@ -117,6 +117,8 @@ export interface DailyCallOptions {
|
|
|
117
117
|
videoSource?: string | MediaStreamTrack;
|
|
118
118
|
audioSource?: string | MediaStreamTrack;
|
|
119
119
|
receiveSettings?: DailyReceiveSettings;
|
|
120
|
+
userName?: string;
|
|
121
|
+
userData?: unknown;
|
|
120
122
|
}
|
|
121
123
|
|
|
122
124
|
export interface DailyLoadOptions extends DailyCallOptions {
|
|
@@ -132,6 +134,8 @@ export interface CamSimulcastEncoding {
|
|
|
132
134
|
export interface DailyAdvancedConfig {
|
|
133
135
|
camSimulcastEncodings?: CamSimulcastEncoding[];
|
|
134
136
|
experimentalGetUserMediaConstraintsModify?: (constraints: any) => void;
|
|
137
|
+
micAudioMode?: 'music' | 'speech';
|
|
138
|
+
userMediaAudioConstraints?: boolean | MediaTrackConstraints;
|
|
135
139
|
userMediaVideoConstraints?: boolean | MediaTrackConstraints;
|
|
136
140
|
preferH264ForCam?: boolean;
|
|
137
141
|
h264Profile?: string;
|
|
@@ -195,8 +199,9 @@ export interface DailyParticipant {
|
|
|
195
199
|
// user/session info
|
|
196
200
|
user_id: string;
|
|
197
201
|
user_name: string;
|
|
202
|
+
userData?: unknown;
|
|
198
203
|
session_id: string;
|
|
199
|
-
joined_at
|
|
204
|
+
joined_at?: Date;
|
|
200
205
|
will_eject_at: Date;
|
|
201
206
|
local: boolean;
|
|
202
207
|
owner: boolean;
|
|
@@ -282,11 +287,13 @@ export interface DailyRoomInfo {
|
|
|
282
287
|
exp?: number;
|
|
283
288
|
max_participants?: number;
|
|
284
289
|
enable_screenshare?: boolean;
|
|
290
|
+
enable_audience_reactions?: boolean;
|
|
285
291
|
enable_chat?: boolean;
|
|
286
292
|
enable_knocking?: boolean;
|
|
287
293
|
enable_network_ui?: boolean;
|
|
288
294
|
enable_people_ui?: boolean;
|
|
289
295
|
enable_pip_ui?: boolean;
|
|
296
|
+
enable_hand_raising?: boolean;
|
|
290
297
|
enable_prejoin_ui?: boolean;
|
|
291
298
|
enable_video_processing_ui?: boolean;
|
|
292
299
|
start_video_off?: boolean;
|
|
@@ -314,9 +321,11 @@ export interface DailyRoomInfo {
|
|
|
314
321
|
max_api_rooms?: number;
|
|
315
322
|
webhook_meeting_end?: any;
|
|
316
323
|
max_live_streams?: number;
|
|
324
|
+
enable_audience_reactions?: boolean;
|
|
317
325
|
enable_network_ui?: boolean;
|
|
318
326
|
enable_people_ui?: boolean;
|
|
319
327
|
enable_pip_ui?: boolean;
|
|
328
|
+
enable_hand_raising?: boolean;
|
|
320
329
|
enable_prejoin_ui?: boolean;
|
|
321
330
|
enable_video_processing_ui?: boolean;
|
|
322
331
|
};
|
|
@@ -593,11 +602,23 @@ export interface DailyStreamingPortraitLayoutConfig {
|
|
|
593
602
|
max_cam_streams?: number;
|
|
594
603
|
}
|
|
595
604
|
|
|
605
|
+
export interface DailyStreamingCustomLayoutConfig {
|
|
606
|
+
preset: 'custom';
|
|
607
|
+
composition_id: string;
|
|
608
|
+
composition_params?: {
|
|
609
|
+
[key: string]: boolean | number | string;
|
|
610
|
+
};
|
|
611
|
+
session_assets?: {
|
|
612
|
+
[key: string]: string;
|
|
613
|
+
};
|
|
614
|
+
}
|
|
615
|
+
|
|
596
616
|
export type DailyStreamingLayoutConfig =
|
|
597
617
|
| DailyStreamingDefaultLayoutConfig
|
|
598
618
|
| DailyStreamingSingleParticipantLayoutConfig
|
|
599
619
|
| DailyStreamingActiveParticipantLayoutConfig
|
|
600
|
-
| DailyStreamingPortraitLayoutConfig
|
|
620
|
+
| DailyStreamingPortraitLayoutConfig
|
|
621
|
+
| DailyStreamingCustomLayoutConfig;
|
|
601
622
|
|
|
602
623
|
export type DailyRemoteMediaPlayerSettingPlay = 'play';
|
|
603
624
|
export type DailyRemoteMediaPlayerSettingPause = 'pause';
|
|
@@ -728,7 +749,7 @@ export interface DailyCall {
|
|
|
728
749
|
device: { facingMode: DailyCameraFacingMode } | null;
|
|
729
750
|
}>;
|
|
730
751
|
setAudioDevice(deviceId: string): Promise<{
|
|
731
|
-
deviceId:
|
|
752
|
+
deviceId: string;
|
|
732
753
|
}>;
|
|
733
754
|
getCameraFacingMode(): Promise<DailyCameraFacingMode | null>;
|
|
734
755
|
nativeInCallAudioMode(): DailyNativeInCallAudioMode;
|
|
@@ -765,6 +786,7 @@ export interface DailyCall {
|
|
|
765
786
|
enumerateDevices(): Promise<{ devices: MediaDeviceInfo[] }>;
|
|
766
787
|
sendAppMessage(data: any, to?: string): DailyCall;
|
|
767
788
|
setUserName(name: string): Promise<{ userName: string }>;
|
|
789
|
+
setUserData(data: unknown): Promise<{ userData: unknown }>;
|
|
768
790
|
room(options?: {
|
|
769
791
|
includeRoomConfigDefaults: boolean;
|
|
770
792
|
}): Promise<DailyPendingRoomInfo | DailyRoomInfo | null>;
|