@daily-co/react-native-daily-js 0.26.0 → 0.27.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,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@daily-co/react-native-daily-js",
|
|
3
|
-
"
|
|
4
|
-
"version": "0.26.0",
|
|
3
|
+
"version": "0.27.0",
|
|
5
4
|
"description": "React Native library for making video calls using Daily",
|
|
6
5
|
"main": "dist/index.js",
|
|
7
6
|
"types": "dist/index.d.ts",
|
|
@@ -27,7 +26,7 @@
|
|
|
27
26
|
"baseUrl": "https://github.com/daily-co/react-native-daily-js"
|
|
28
27
|
},
|
|
29
28
|
"dependencies": {
|
|
30
|
-
"@daily-co/daily-js": "^0.
|
|
29
|
+
"@daily-co/daily-js": "^0.29.0",
|
|
31
30
|
"@types/react-native-background-timer": "^2.0.0",
|
|
32
31
|
"react-native-url-polyfill": "^1.1.2"
|
|
33
32
|
},
|
|
@@ -595,11 +595,23 @@ export interface DailyStreamingPortraitLayoutConfig {
|
|
|
595
595
|
max_cam_streams?: number;
|
|
596
596
|
}
|
|
597
597
|
|
|
598
|
+
export interface DailyStreamingCustomLayoutConfig {
|
|
599
|
+
preset: 'custom';
|
|
600
|
+
composition_id: string;
|
|
601
|
+
composition_params?: {
|
|
602
|
+
[key: string]: boolean | number | string;
|
|
603
|
+
};
|
|
604
|
+
session_assets?: {
|
|
605
|
+
[key: string]: string;
|
|
606
|
+
};
|
|
607
|
+
}
|
|
608
|
+
|
|
598
609
|
export type DailyStreamingLayoutConfig =
|
|
599
610
|
| DailyStreamingDefaultLayoutConfig
|
|
600
611
|
| DailyStreamingSingleParticipantLayoutConfig
|
|
601
612
|
| DailyStreamingActiveParticipantLayoutConfig
|
|
602
|
-
| DailyStreamingPortraitLayoutConfig
|
|
613
|
+
| DailyStreamingPortraitLayoutConfig
|
|
614
|
+
| DailyStreamingCustomLayoutConfig;
|
|
603
615
|
|
|
604
616
|
export type DailyRemoteMediaPlayerSettingPlay = 'play';
|
|
605
617
|
export type DailyRemoteMediaPlayerSettingPause = 'pause';
|