react-native-tpstreams 0.1.5 → 0.1.7

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 CHANGED
@@ -1,20 +1,20 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Bharath
4
- Permission is hereby granted, free of charge, to any person obtaining a copy
5
- of this software and associated documentation files (the "Software"), to deal
6
- in the Software without restriction, including without limitation the rights
7
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- copies of the Software, and to permit persons to whom the Software is
9
- furnished to do so, subject to the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be included in all
12
- copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Bharath
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
package/README.md CHANGED
@@ -1,49 +1,49 @@
1
- # react-native-tpstreams
2
-
3
- Video Component for TPStreams
4
-
5
- ## Installation
6
-
7
- ```sh
8
- npm install react-native-tpstreams
9
- ```
10
-
11
- ## Usage
12
-
13
-
14
- ```js
15
- import React, { useState } from 'react';
16
- import { NativeModules } from 'react-native';
17
- import TpStreamsPlayerView from 'react-native-tpstreams';
18
-
19
- const { Tpstreams } = NativeModules;
20
-
21
- // Initialize the player with your organization UUID
22
- Tpstreams.initializeTPSPlayer("ORGANIZATION_ID");
23
-
24
- const App = () => {
25
- const [playerProps, setPlayerProps] = useState({
26
- videoId: 'ASSET_ID',
27
- accessToken: 'ACCESS_TOKEN',
28
- style: { width: '100%', height: 300 },
29
- });
30
-
31
- return <TpStreamsPlayerView {...playerProps} />;
32
- };
33
-
34
- export default App;
35
-
36
- ```
37
-
38
-
39
- ## Contributing
40
-
41
- See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
42
-
43
- ## License
44
-
45
- MIT
46
-
47
- ---
48
-
49
- Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
1
+ # react-native-tpstreams
2
+
3
+ Video Component for TPStreams
4
+
5
+ ## Installation
6
+
7
+ ```sh
8
+ npm install react-native-tpstreams
9
+ ```
10
+
11
+ ## Usage
12
+
13
+
14
+ ```js
15
+ import React, { useState } from 'react';
16
+ import { NativeModules } from 'react-native';
17
+ import TpStreamsPlayerView from 'react-native-tpstreams';
18
+
19
+ const { Tpstreams } = NativeModules;
20
+
21
+ // Initialize the player with your organization UUID
22
+ Tpstreams.initializeTPSPlayer("ORGANIZATION_ID");
23
+
24
+ const App = () => {
25
+ const [playerProps, setPlayerProps] = useState({
26
+ videoId: 'ASSET_ID',
27
+ accessToken: 'ACCESS_TOKEN',
28
+ style: { width: '100%', height: 300 },
29
+ });
30
+
31
+ return <TpStreamsPlayerView {...playerProps} />;
32
+ };
33
+
34
+ export default App;
35
+
36
+ ```
37
+
38
+
39
+ ## Contributing
40
+
41
+ See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
42
+
43
+ ## License
44
+
45
+ MIT
46
+
47
+ ---
48
+
49
+ Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
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
@@ -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.4"
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
@@ -0,0 +1,4 @@
1
+ aarFormatVersion=1.0
2
+ aarMetadataVersion=1.0
3
+ minCompileSdk=1
4
+ minAndroidGradlePluginVersion=1.0.0
@@ -1,3 +1,4 @@
1
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
- package="com.tpstreams">
3
- </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>