@24i/smartapps-bigscreen-rnv-build-engine 0.17.7 → 0.17.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/dist/src/sdks/sdk-androidtv/sdkAndroidtv.js +3 -3
- package/dist/templates/platforms/androidtv/project/amazoniap/build.gradle +6 -5
- package/dist/templates/platforms/androidtv/project/app/build.gradle +13 -11
- package/dist/templates/platforms/androidtv/project/app/src/main/AndroidManifest.xml +1 -2
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/bridge/BridgeFromJavaScript.kt +4 -4
- package/dist/templates/platforms/androidtv/project/build.gradle +4 -5
- package/dist/templates/platforms/androidtv/project/common/build.gradle +6 -5
- package/dist/templates/platforms/androidtv/project/googleiap/build.gradle +6 -5
- package/dist/templates/platforms/androidtv/project/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/package.json +1 -1
- package/dist/templates/platforms/androidtv/project/amazoniap/src/main/AndroidManifest.xml +0 -4
- package/dist/templates/platforms/androidtv/project/common/src/main/AndroidManifest.xml +0 -4
- package/dist/templates/platforms/androidtv/project/googleiap/src/main/AndroidManifest.xml +0 -6
|
@@ -68,9 +68,9 @@ const buildAndroidTVProject = async (c) => {
|
|
|
68
68
|
const cmd1 = `cd ${projectDir} && ${gradlew} --stacktrace ${taskAssembleName}`;
|
|
69
69
|
const cmd2 = `cd ${projectDir} && ${gradlew} --stacktrace ${taskBundleName}`;
|
|
70
70
|
console.log(`Running command: ${cmd1}`);
|
|
71
|
-
(0, child_process_1.execSync)(cmd1);
|
|
71
|
+
(0, child_process_1.execSync)(cmd1, { stdio: 'inherit' });
|
|
72
72
|
console.log(`Running command: ${cmd2}`);
|
|
73
|
-
(0, child_process_1.execSync)(cmd2);
|
|
73
|
+
(0, child_process_1.execSync)(cmd2, { stdio: 'inherit' });
|
|
74
74
|
fs.rmSync(tmpOutputDir, { recursive: true, force: true });
|
|
75
75
|
fs.mkdirSync(tmpOutputDir);
|
|
76
76
|
if (!fs.existsSync(outputDir)) {
|
|
@@ -254,7 +254,7 @@ const handleAndroidTVSdk = async (c) => {
|
|
|
254
254
|
const installPath = `${os.homedir()}/Android`;
|
|
255
255
|
const rnvSdkKey = 'ANDROID_SDK';
|
|
256
256
|
const sdkName = 'android';
|
|
257
|
-
const sdksToInstall = '"build-tools;
|
|
257
|
+
const sdksToInstall = '"build-tools;33.0.2" "emulator" "patcher;v4" "platform-tools" "platforms;android-33"';
|
|
258
258
|
rnv_1.Logger.logInfo(`Check ${sdkName} SDK at ${ANDROID_SDK}`);
|
|
259
259
|
const isInstalledSDK = ANDROID_SDK ? fs.existsSync(ANDROID_SDK) : false;
|
|
260
260
|
if (!isInstalledSDK) {
|
|
@@ -2,7 +2,8 @@ apply plugin: 'com.android.library'
|
|
|
2
2
|
apply plugin: 'kotlin-android'
|
|
3
3
|
|
|
4
4
|
android {
|
|
5
|
-
|
|
5
|
+
namespace = "com.twentyfouri.androidtv.amazoniap"
|
|
6
|
+
compileSdk = 33
|
|
6
7
|
|
|
7
8
|
compileOptions {
|
|
8
9
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
@@ -10,8 +11,8 @@ android {
|
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
defaultConfig {
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
minSdk = 21
|
|
15
|
+
targetSdk = 33
|
|
15
16
|
|
|
16
17
|
versionCode 1
|
|
17
18
|
versionName "1.0"
|
|
@@ -31,7 +32,7 @@ android {
|
|
|
31
32
|
dependencies {
|
|
32
33
|
api fileTree(dir: "libs", include: ["*.jar"])
|
|
33
34
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
34
|
-
implementation 'androidx.core:core-ktx:1.
|
|
35
|
-
implementation 'androidx.appcompat:appcompat:1.
|
|
35
|
+
implementation 'androidx.core:core-ktx:1.9.0'
|
|
36
|
+
implementation 'androidx.appcompat:appcompat:1.6.1'
|
|
36
37
|
implementation project(':common')
|
|
37
38
|
}
|
|
@@ -6,7 +6,8 @@ def theoLicense = '{{THEO_LICENSE}}'
|
|
|
6
6
|
def useTheoPlayer = theoLicense != ''
|
|
7
7
|
|
|
8
8
|
android {
|
|
9
|
-
|
|
9
|
+
namespace = 'com.twentyfouri.tvbridge'
|
|
10
|
+
compileSdk = {{COMPILE_SDK_VERSION}}
|
|
10
11
|
|
|
11
12
|
compileOptions {
|
|
12
13
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
@@ -23,8 +24,8 @@ android {
|
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
defaultConfig {
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
minSdk = {{MIN_SDK_VERSION}}
|
|
28
|
+
targetSdk = {{TARGET_SDK_VERSION}}
|
|
28
29
|
|
|
29
30
|
applicationId 'com.twentyfouri.tvbridge'
|
|
30
31
|
versionCode 1
|
|
@@ -82,25 +83,26 @@ dependencies {
|
|
|
82
83
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
|
83
84
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
|
84
85
|
api "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
|
85
|
-
api "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.
|
|
86
|
+
api "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4"
|
|
86
87
|
|
|
87
88
|
compileOnly "javax.annotation:jsr250-api:1.0"
|
|
88
|
-
implementation
|
|
89
|
+
implementation 'androidx.core:core-ktx:1.9.0'
|
|
90
|
+
implementation "androidx.appcompat:appcompat:1.6.1"
|
|
89
91
|
implementation "androidx.lifecycle:lifecycle-extensions:2.2.0"
|
|
90
92
|
|
|
91
|
-
implementation "com.google.dagger:dagger:2.
|
|
92
|
-
kapt "com.google.dagger:dagger-compiler:2.
|
|
93
|
+
implementation "com.google.dagger:dagger:2.48.1"
|
|
94
|
+
kapt "com.google.dagger:dagger-compiler:2.48.1"
|
|
93
95
|
|
|
94
96
|
implementation "com.squareup.retrofit2:retrofit:2.9.0"
|
|
95
97
|
implementation "com.squareup.retrofit2:converter-gson:2.5.0"
|
|
96
98
|
implementation "com.squareup.okhttp3:logging-interceptor:4.9.2"
|
|
97
99
|
implementation "com.squareup.okhttp3:okhttp:4.9.2"
|
|
98
100
|
if (useTheoPlayer) {
|
|
99
|
-
compileOnly "com.twentyfouri.player:exoplayer:0.
|
|
100
|
-
implementation "com.twentyfouri.player:theoplayer:0.
|
|
101
|
+
compileOnly "com.twentyfouri.player:exoplayer:0.7.0-alpha.3"
|
|
102
|
+
implementation "com.twentyfouri.player:theoplayer:0.7.0-alpha.3"
|
|
101
103
|
} else {
|
|
102
|
-
implementation "com.twentyfouri.player:exoplayer:0.
|
|
103
|
-
compileOnly "com.twentyfouri.player:theoplayer:0.
|
|
104
|
+
implementation "com.twentyfouri.player:exoplayer:0.7.0-alpha.3"
|
|
105
|
+
compileOnly "com.twentyfouri.player:theoplayer:0.7.0-alpha.3"
|
|
104
106
|
}
|
|
105
107
|
|
|
106
108
|
implementation project(':common')
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="utf-8"?>
|
|
2
2
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
-
xmlns:tools="http://schemas.android.com/tools"
|
|
4
|
-
package="com.twentyfouri.tvbridge" >
|
|
3
|
+
xmlns:tools="http://schemas.android.com/tools">
|
|
5
4
|
|
|
6
5
|
<!-- Allow the app to run on non-touch devices. -->
|
|
7
6
|
<uses-feature android:name="android.hardware.touchscreen" android:required="false" />
|
|
@@ -261,16 +261,16 @@ class BridgeFromJavaScript(
|
|
|
261
261
|
*/
|
|
262
262
|
@JavascriptInterface
|
|
263
263
|
fun bridgeJavaScriptToAndroid_getCurrentAudioTrack(): String? = runBlocking("bridgeJavaScriptToAndroid_getCurrentAudioTrack") {
|
|
264
|
-
viewModel.audioTrack?.let { toJson(it) }
|
|
265
|
-
}
|
|
264
|
+
viewModel.audioTrack?.let { toJson(it) }
|
|
265
|
+
} ?: DISABLED_AUDIO_TRACK
|
|
266
266
|
|
|
267
267
|
/*
|
|
268
268
|
Returns current AUDIO track to the player
|
|
269
269
|
*/
|
|
270
270
|
@JavascriptInterface
|
|
271
271
|
fun bridgeJavaScriptToAndroid_getCurrentSubtitleTrack(): String? = runBlocking("bridgeJavaScriptToAndroid_getCurrentSubtitleTrack") {
|
|
272
|
-
viewModel.subtitleTrack?.let { toJson(it) }
|
|
273
|
-
}
|
|
272
|
+
viewModel.subtitleTrack?.let { toJson(it) }
|
|
273
|
+
} ?: DISABLED_SUBTITLE_TRACK
|
|
274
274
|
|
|
275
275
|
/*
|
|
276
276
|
Set the cookies to localstorage
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
buildscript {
|
|
2
|
-
ext.kotlin_version = '1.
|
|
2
|
+
ext.kotlin_version = '1.8.22'
|
|
3
3
|
|
|
4
4
|
repositories {
|
|
5
5
|
google()
|
|
@@ -10,11 +10,10 @@ buildscript {
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
dependencies {
|
|
13
|
-
classpath 'com.android.tools.build:gradle:4.2
|
|
13
|
+
classpath 'com.android.tools.build:gradle:7.4.2'
|
|
14
14
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
15
|
-
classpath 'com.
|
|
16
|
-
classpath 'com.google.
|
|
17
|
-
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.5.2'
|
|
15
|
+
classpath 'com.google.gms:google-services:4.4.0'
|
|
16
|
+
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.9'
|
|
18
17
|
|
|
19
18
|
// NOTE: Do not place your application dependencies here; they belong
|
|
20
19
|
// in the individual module build.gradle files
|
|
@@ -2,7 +2,8 @@ apply plugin: 'com.android.library'
|
|
|
2
2
|
apply plugin: 'kotlin-android'
|
|
3
3
|
|
|
4
4
|
android {
|
|
5
|
-
|
|
5
|
+
namespace = "com.twentyfouri.tvbridge.common"
|
|
6
|
+
compileSdk = 33
|
|
6
7
|
|
|
7
8
|
compileOptions {
|
|
8
9
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
@@ -10,8 +11,8 @@ android {
|
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
defaultConfig {
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
minSdk = 21
|
|
15
|
+
targetSdk = 33
|
|
15
16
|
|
|
16
17
|
versionCode 1
|
|
17
18
|
versionName "1.0"
|
|
@@ -31,6 +32,6 @@ android {
|
|
|
31
32
|
dependencies {
|
|
32
33
|
implementation fileTree(dir: "libs", include: ["*.jar"])
|
|
33
34
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
34
|
-
implementation 'androidx.core:core-ktx:1.
|
|
35
|
-
implementation 'androidx.appcompat:appcompat:1.
|
|
35
|
+
implementation 'androidx.core:core-ktx:1.9.0'
|
|
36
|
+
implementation 'androidx.appcompat:appcompat:1.6.1'
|
|
36
37
|
}
|
|
@@ -2,7 +2,8 @@ apply plugin: 'com.android.library'
|
|
|
2
2
|
apply plugin: 'kotlin-android'
|
|
3
3
|
|
|
4
4
|
android {
|
|
5
|
-
|
|
5
|
+
namespace = "com.twentyfouri.tvbridge.googleiap"
|
|
6
|
+
compileSdk = 33
|
|
6
7
|
|
|
7
8
|
compileOptions {
|
|
8
9
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
@@ -10,8 +11,8 @@ android {
|
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
defaultConfig {
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
minSdk = 21
|
|
15
|
+
targetSdk = 33
|
|
15
16
|
|
|
16
17
|
versionCode 1
|
|
17
18
|
versionName "1.0"
|
|
@@ -31,8 +32,8 @@ android {
|
|
|
31
32
|
dependencies {
|
|
32
33
|
implementation fileTree(dir: "libs", include: ["*.jar"])
|
|
33
34
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
34
|
-
implementation 'androidx.core:core-ktx:1.
|
|
35
|
-
implementation 'androidx.appcompat:appcompat:1.
|
|
35
|
+
implementation 'androidx.core:core-ktx:1.9.0'
|
|
36
|
+
implementation 'androidx.appcompat:appcompat:1.6.1'
|
|
36
37
|
implementation project(':common')
|
|
37
38
|
implementation 'com.android.billingclient:billing:3.0.1'
|
|
38
39
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#Thu Jun 02 10:20:44 CEST 2022
|
|
2
2
|
distributionBase=GRADLE_USER_HOME
|
|
3
|
-
distributionUrl=https\://services.gradle.org/distributions/gradle-
|
|
3
|
+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
|
|
4
4
|
distributionPath=wrapper/dists
|
|
5
5
|
zipStorePath=wrapper/dists
|
|
6
6
|
zipStoreBase=GRADLE_USER_HOME
|
package/package.json
CHANGED