react-native-tpstreams 0.1.8 → 0.1.9
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 +20 -20
- package/README.md +427 -150
- package/Tpstreams.podspec +42 -42
- package/android/build.gradle +122 -122
- package/android/gradle.properties +5 -5
- package/android/src/main/AndroidManifest.xml +4 -4
- package/android/src/main/AndroidManifestNew.xml +2 -2
- package/android/src/main/java/com/tpstreams/FragmentModule.kt +190 -190
- package/android/src/main/java/com/tpstreams/PlayerFragment.kt +210 -210
- package/android/src/main/java/com/tpstreams/TpStreamsPlayerView.kt +79 -79
- package/android/src/main/java/com/tpstreams/TpStreamsPlayerViewManager.kt +40 -40
- package/android/src/main/java/com/tpstreams/TpstreamsModule.kt +161 -161
- package/android/src/main/java/com/tpstreams/TpstreamsPackage.kt +16 -16
- package/android/src/main/res/layout/fragment_player.xml +28 -28
- package/android/src/main/res/xml/network_security_config.xml +7 -7
- package/ios/Tpstreams.h +6 -6
- package/ios/Tpstreams.mm +18 -18
- package/lib/commonjs/NativeTpstreams.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/types.js.map +1 -1
- package/lib/module/NativeTpstreams.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/types.js.map +1 -1
- package/package.json +203 -203
- package/android/libs/extracted-aar/META-INF/com/android/build/gradle/aar-metadata.properties +0 -4
package/Tpstreams.podspec
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
require "json"
|
|
2
|
-
|
|
3
|
-
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
4
|
-
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
|
5
|
-
|
|
6
|
-
Pod::Spec.new do |s|
|
|
7
|
-
s.name = "Tpstreams"
|
|
8
|
-
s.version = package["version"]
|
|
9
|
-
s.summary = package["description"]
|
|
10
|
-
s.homepage = package["homepage"]
|
|
11
|
-
s.license = package["license"]
|
|
12
|
-
s.authors = package["author"]
|
|
13
|
-
|
|
14
|
-
s.platforms = { :ios => min_ios_version_supported }
|
|
15
|
-
s.source = { :git => "https://github.com/testpress/react-native-player-sdk.git", :tag => "#{s.version}" }
|
|
16
|
-
|
|
17
|
-
s.source_files = "ios/**/*.{h,m,mm,cpp}"
|
|
18
|
-
s.private_header_files = "ios/generated/**/*.h"
|
|
19
|
-
|
|
20
|
-
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
|
|
21
|
-
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
|
|
22
|
-
if respond_to?(:install_modules_dependencies, true)
|
|
23
|
-
install_modules_dependencies(s)
|
|
24
|
-
else
|
|
25
|
-
s.dependency "React-Core"
|
|
26
|
-
|
|
27
|
-
# Don't install the dependencies when we run `pod install` in the old architecture.
|
|
28
|
-
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
|
|
29
|
-
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
|
|
30
|
-
s.pod_target_xcconfig = {
|
|
31
|
-
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
|
|
32
|
-
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
|
|
33
|
-
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
|
|
34
|
-
}
|
|
35
|
-
s.dependency "React-Codegen"
|
|
36
|
-
s.dependency "RCT-Folly"
|
|
37
|
-
s.dependency "RCTRequired"
|
|
38
|
-
s.dependency "RCTTypeSafety"
|
|
39
|
-
s.dependency "ReactCommon/turbomodule/core"
|
|
40
|
-
end
|
|
41
|
-
end
|
|
42
|
-
end
|
|
1
|
+
require "json"
|
|
2
|
+
|
|
3
|
+
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
4
|
+
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
|
5
|
+
|
|
6
|
+
Pod::Spec.new do |s|
|
|
7
|
+
s.name = "Tpstreams"
|
|
8
|
+
s.version = package["version"]
|
|
9
|
+
s.summary = package["description"]
|
|
10
|
+
s.homepage = package["homepage"]
|
|
11
|
+
s.license = package["license"]
|
|
12
|
+
s.authors = package["author"]
|
|
13
|
+
|
|
14
|
+
s.platforms = { :ios => min_ios_version_supported }
|
|
15
|
+
s.source = { :git => "https://github.com/testpress/react-native-player-sdk.git", :tag => "#{s.version}" }
|
|
16
|
+
|
|
17
|
+
s.source_files = "ios/**/*.{h,m,mm,cpp}"
|
|
18
|
+
s.private_header_files = "ios/generated/**/*.h"
|
|
19
|
+
|
|
20
|
+
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
|
|
21
|
+
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
|
|
22
|
+
if respond_to?(:install_modules_dependencies, true)
|
|
23
|
+
install_modules_dependencies(s)
|
|
24
|
+
else
|
|
25
|
+
s.dependency "React-Core"
|
|
26
|
+
|
|
27
|
+
# Don't install the dependencies when we run `pod install` in the old architecture.
|
|
28
|
+
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
|
|
29
|
+
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
|
|
30
|
+
s.pod_target_xcconfig = {
|
|
31
|
+
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
|
|
32
|
+
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
|
|
33
|
+
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
|
|
34
|
+
}
|
|
35
|
+
s.dependency "React-Codegen"
|
|
36
|
+
s.dependency "RCT-Folly"
|
|
37
|
+
s.dependency "RCTRequired"
|
|
38
|
+
s.dependency "RCTTypeSafety"
|
|
39
|
+
s.dependency "ReactCommon/turbomodule/core"
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
package/android/build.gradle
CHANGED
|
@@ -1,122 +1,122 @@
|
|
|
1
|
-
buildscript {
|
|
2
|
-
ext.getExtOrDefault = {name ->
|
|
3
|
-
return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties['Tpstreams_' + name]
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
repositories {
|
|
7
|
-
google()
|
|
8
|
-
mavenCentral()
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
dependencies {
|
|
12
|
-
classpath "com.android.tools.build:gradle:8.7.2"
|
|
13
|
-
// noinspection DifferentKotlinGradleVersion
|
|
14
|
-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${getExtOrDefault('kotlinVersion')}"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
rootProject.allprojects {
|
|
19
|
-
repositories {
|
|
20
|
-
mavenCentral() // Ensure this line is here
|
|
21
|
-
google()
|
|
22
|
-
maven {
|
|
23
|
-
url "https://github.com/testpress/maven/raw/main/repo"
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
def isNewArchitectureEnabled() {
|
|
30
|
-
return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
apply plugin: "com.android.library"
|
|
34
|
-
apply plugin: "kotlin-android"
|
|
35
|
-
|
|
36
|
-
if (isNewArchitectureEnabled()) {
|
|
37
|
-
apply plugin: "com.facebook.react"
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
def getExtOrIntegerDefault(name) {
|
|
41
|
-
return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["Tpstreams_" + name]).toInteger()
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
def supportsNamespace() {
|
|
45
|
-
def parsed = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')
|
|
46
|
-
def major = parsed[0].toInteger()
|
|
47
|
-
def minor = parsed[1].toInteger()
|
|
48
|
-
|
|
49
|
-
// Namespace support was added in 7.3.0
|
|
50
|
-
return (major == 7 && minor >= 3) || major >= 8
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
android {
|
|
54
|
-
if (supportsNamespace()) {
|
|
55
|
-
namespace "com.tpstreams"
|
|
56
|
-
|
|
57
|
-
sourceSets {
|
|
58
|
-
main {
|
|
59
|
-
manifest.srcFile "src/main/AndroidManifestNew.xml"
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")
|
|
65
|
-
|
|
66
|
-
defaultConfig {
|
|
67
|
-
minSdkVersion getExtOrIntegerDefault("minSdkVersion")
|
|
68
|
-
targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
|
|
69
|
-
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
buildFeatures {
|
|
73
|
-
buildConfig true
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
buildTypes {
|
|
77
|
-
release {
|
|
78
|
-
minifyEnabled false
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
lintOptions {
|
|
83
|
-
disable "GradleCompatible"
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
compileOptions {
|
|
87
|
-
sourceCompatibility JavaVersion.VERSION_1_8
|
|
88
|
-
targetCompatibility JavaVersion.VERSION_1_8
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
sourceSets {
|
|
92
|
-
main {
|
|
93
|
-
if (isNewArchitectureEnabled()) {
|
|
94
|
-
java.srcDirs += [
|
|
95
|
-
"generated/java",
|
|
96
|
-
"generated/jni"
|
|
97
|
-
]
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
repositories {
|
|
104
|
-
mavenCentral()
|
|
105
|
-
google()
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
def kotlin_version = getExtOrDefault("kotlinVersion")
|
|
109
|
-
|
|
110
|
-
dependencies {
|
|
111
|
-
implementation "com.facebook.react:react-android"
|
|
112
|
-
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
113
|
-
implementation "com.tpstreams.player:player:3.1.5"
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
if (isNewArchitectureEnabled()) {
|
|
117
|
-
react {
|
|
118
|
-
jsRootDir = file("../src/")
|
|
119
|
-
libraryName = "Tpstreams"
|
|
120
|
-
codegenJavaPackageName = "com.tpstreams"
|
|
121
|
-
}
|
|
122
|
-
}
|
|
1
|
+
buildscript {
|
|
2
|
+
ext.getExtOrDefault = {name ->
|
|
3
|
+
return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties['Tpstreams_' + name]
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
repositories {
|
|
7
|
+
google()
|
|
8
|
+
mavenCentral()
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
dependencies {
|
|
12
|
+
classpath "com.android.tools.build:gradle:8.7.2"
|
|
13
|
+
// noinspection DifferentKotlinGradleVersion
|
|
14
|
+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${getExtOrDefault('kotlinVersion')}"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
rootProject.allprojects {
|
|
19
|
+
repositories {
|
|
20
|
+
mavenCentral() // Ensure this line is here
|
|
21
|
+
google()
|
|
22
|
+
maven {
|
|
23
|
+
url "https://github.com/testpress/maven/raw/main/repo"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def isNewArchitectureEnabled() {
|
|
30
|
+
return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
apply plugin: "com.android.library"
|
|
34
|
+
apply plugin: "kotlin-android"
|
|
35
|
+
|
|
36
|
+
if (isNewArchitectureEnabled()) {
|
|
37
|
+
apply plugin: "com.facebook.react"
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
def getExtOrIntegerDefault(name) {
|
|
41
|
+
return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["Tpstreams_" + name]).toInteger()
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
def supportsNamespace() {
|
|
45
|
+
def parsed = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')
|
|
46
|
+
def major = parsed[0].toInteger()
|
|
47
|
+
def minor = parsed[1].toInteger()
|
|
48
|
+
|
|
49
|
+
// Namespace support was added in 7.3.0
|
|
50
|
+
return (major == 7 && minor >= 3) || major >= 8
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
android {
|
|
54
|
+
if (supportsNamespace()) {
|
|
55
|
+
namespace "com.tpstreams"
|
|
56
|
+
|
|
57
|
+
sourceSets {
|
|
58
|
+
main {
|
|
59
|
+
manifest.srcFile "src/main/AndroidManifestNew.xml"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")
|
|
65
|
+
|
|
66
|
+
defaultConfig {
|
|
67
|
+
minSdkVersion getExtOrIntegerDefault("minSdkVersion")
|
|
68
|
+
targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
|
|
69
|
+
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
buildFeatures {
|
|
73
|
+
buildConfig true
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
buildTypes {
|
|
77
|
+
release {
|
|
78
|
+
minifyEnabled false
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
lintOptions {
|
|
83
|
+
disable "GradleCompatible"
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
compileOptions {
|
|
87
|
+
sourceCompatibility JavaVersion.VERSION_1_8
|
|
88
|
+
targetCompatibility JavaVersion.VERSION_1_8
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
sourceSets {
|
|
92
|
+
main {
|
|
93
|
+
if (isNewArchitectureEnabled()) {
|
|
94
|
+
java.srcDirs += [
|
|
95
|
+
"generated/java",
|
|
96
|
+
"generated/jni"
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
repositories {
|
|
104
|
+
mavenCentral()
|
|
105
|
+
google()
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
def kotlin_version = getExtOrDefault("kotlinVersion")
|
|
109
|
+
|
|
110
|
+
dependencies {
|
|
111
|
+
implementation "com.facebook.react:react-android"
|
|
112
|
+
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
113
|
+
implementation "com.tpstreams.player:player:3.1.5"
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
if (isNewArchitectureEnabled()) {
|
|
117
|
+
react {
|
|
118
|
+
jsRootDir = file("../src/")
|
|
119
|
+
libraryName = "Tpstreams"
|
|
120
|
+
codegenJavaPackageName = "com.tpstreams"
|
|
121
|
+
}
|
|
122
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
Tpstreams_kotlinVersion=2.0.21
|
|
2
|
-
Tpstreams_minSdkVersion=24
|
|
3
|
-
Tpstreams_targetSdkVersion=34
|
|
4
|
-
Tpstreams_compileSdkVersion=35
|
|
5
|
-
Tpstreams_ndkVersion=27.1.12297006
|
|
1
|
+
Tpstreams_kotlinVersion=2.0.21
|
|
2
|
+
Tpstreams_minSdkVersion=24
|
|
3
|
+
Tpstreams_targetSdkVersion=34
|
|
4
|
+
Tpstreams_compileSdkVersion=35
|
|
5
|
+
Tpstreams_ndkVersion=27.1.12297006
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
2
|
-
package="com.tpstreams">
|
|
3
|
-
<application android:allowBackup="true" android:icon="@mipmap/appicon" android:roundIcon="@mipmap/appicon_round" android:supportsRtl="true" android:networkSecurityConfig="@xml/network_security_config"></application>
|
|
4
|
-
</manifest>
|
|
1
|
+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
2
|
+
package="com.tpstreams">
|
|
3
|
+
<application android:allowBackup="true" android:icon="@mipmap/appicon" android:roundIcon="@mipmap/appicon_round" android:supportsRtl="true" android:networkSecurityConfig="@xml/network_security_config"></application>
|
|
4
|
+
</manifest>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
|
2
|
-
</manifest>
|
|
1
|
+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
|
2
|
+
</manifest>
|