@24i/smartapps-bigscreen-rnv-build-engine 0.17.9 → 0.17.10-alpha.2
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/package.json +5 -5
- package/dist/src/__tests__/engine.spec.js +0 -57
- package/dist/src/__tests__/resolvers/resolveBaseUrl.spec.js +0 -120
- package/dist/src/__tests__/resolvers/resolveBuildEnvName.spec.js +0 -23
- package/dist/src/__tests__/resolvers/resolveBuildEnvType.spec.js +0 -23
- package/dist/src/__tests__/resolvers/resolveBuildFileBaseName.spec.js +0 -100
- package/dist/src/__tests__/resolvers/resolveBuildFileExtension.spec.js +0 -26
- package/dist/src/__tests__/resolvers/resolveBuildFileName.spec.js +0 -109
- package/dist/src/__tests__/resolvers/resolveBuildVersion.spec.js +0 -60
- package/dist/src/__tests__/resolvers/resolveBuildVersionOffset.spec.js +0 -111
- package/dist/src/__tests__/resolvers/resolveDeployLocations.spec.js +0 -98
- package/dist/src/__tests__/resolvers/resolveGenericRnvConfig.spec.js +0 -92
- package/dist/src/__tests__/resolvers/resolveHbbtvDeployConfig.spec.js +0 -35
- package/dist/src/__tests__/resolvers/resolveHbbtvDeployUrl.spec.js +0 -53
- package/dist/src/__tests__/resolvers/resolveHbbtvRemoteBuildDirRelativePath.spec.js +0 -68
- package/dist/src/__tests__/resolvers/resolveSupportedPlatforms.spec.js +0 -22
- package/dist/src/__tests__/resolvers/resolveUsedFlavours.spec.js +0 -38
- package/dist/src/__tests__/resolvers/resolveZippedPlatformBuildsRelativeFilePath.spec.js +0 -18
- package/dist/src/__tests__/sdks/sdk-utils/registerSdkPath.spec.js +0 -60
- package/dist/src/__tests__/sdks/sdk-utils/sdk-installer/sdkInstaller.spec.js +0 -85
- package/dist/src/__tests__/sdks/sdk-utils/sdk-installer/services/clean.spec.js +0 -50
- package/dist/src/__tests__/sdks/sdk-utils/sdk-installer/services/download.spec.js +0 -103
- package/dist/src/__tests__/sdks/sdk-utils/sdk-installer/services/install.spec.js +0 -57
- package/dist/src/__tests__/sdks/sdk-utils/sdk-installer/services/unzip.spec.js +0 -51
- package/dist/src/__tests__/utils/forEachSupportedPlatformFlavour.spec.js +0 -104
- package/dist/src/__tests__/utils/generatePngSpriteMap.spec.js +0 -81
- package/dist/src/__tests__/utils/generateSvgSpriteMap.spec.js +0 -108
- package/dist/src/__tests__/utils/mergeSvgAndPngIcons.spec.js +0 -112
- package/dist/src/__tests__/utils/replaceRelevantStringsInConfig/replaceRelevantStringsInConfig.spec.js +0 -116
- package/dist/src/__tests__/utils/replaceRelevantStringsInConfig/replaceTemplateString.spec.js +0 -65
- package/dist/src/__tests__/utils/zipBuildsByPlatforms.spec.js +0 -69
- package/dist/src/constants/buildEnvironments.js +0 -9
- package/dist/src/constants/buildProductionPackages.js +0 -10
- package/dist/src/constants/buildSchemes.js +0 -19
- package/dist/src/constants/delopyLivePlatforms.js +0 -14
- package/dist/src/constants/index.js +0 -9
- package/dist/src/constants/platforms.js +0 -18
- package/dist/src/engine.js +0 -118
- package/dist/src/index.js +0 -30
- package/dist/src/resolvers/index.js +0 -42
- package/dist/src/resolvers/resolveBaseUrl.js +0 -27
- package/dist/src/resolvers/resolveBuildEnvName.js +0 -16
- package/dist/src/resolvers/resolveBuildEnvType.js +0 -23
- package/dist/src/resolvers/resolveBuildFileBaseName.js +0 -46
- package/dist/src/resolvers/resolveBuildFileExtension.js +0 -12
- package/dist/src/resolvers/resolveBuildFileName.js +0 -12
- package/dist/src/resolvers/resolveBuildVersion.js +0 -47
- package/dist/src/resolvers/resolveBuildVersionOffset.js +0 -34
- package/dist/src/resolvers/resolveDeployLocations.js +0 -76
- package/dist/src/resolvers/resolveGenericRnvConfig.js +0 -58
- package/dist/src/resolvers/resolveHbbtvDeployConfig.js +0 -13
- package/dist/src/resolvers/resolveHbbtvDeployUrl.js +0 -11
- package/dist/src/resolvers/resolveHbbtvRemoteBuildDirRelativePath.js +0 -29
- package/dist/src/resolvers/resolvePackageVersions.js +0 -57
- package/dist/src/resolvers/resolveProductionZipFileRelativePath.js +0 -35
- package/dist/src/resolvers/resolveS3BucketAppPath.js +0 -15
- package/dist/src/resolvers/resolveSupportedFlavoursForPlatform.js +0 -8
- package/dist/src/resolvers/resolveSupportedPlatforms.js +0 -5
- package/dist/src/resolvers/resolveUsedFlavours.js +0 -23
- package/dist/src/resolvers/resolveZippedPlatformBuildsRelativeFilePath.js +0 -38
- package/dist/src/resolvers/shared/constructFullUrl.js +0 -25
- package/dist/src/scripts/buildAllWithScheme.js +0 -25
- package/dist/src/scripts/buildAllWithSchemes.js +0 -88
- package/dist/src/scripts/buildProductionPackagesAll.js +0 -75
- package/dist/src/scripts/deployLiveAll.js +0 -27
- package/dist/src/scripts/deployLivePlatform.js +0 -44
- package/dist/src/scripts/generateDeployUrls/formatTableDataSpaces.js +0 -30
- package/dist/src/scripts/generateDeployUrls/generateDeployUrls.js +0 -151
- package/dist/src/scripts/generateDeployUrls/index.js +0 -4
- package/dist/src/scripts/generateDeployUrls/makeTableDataByScheme.js +0 -65
- package/dist/src/scripts/gitReleaser/afterVersionBump.js +0 -18
- package/dist/src/scripts/gitReleaser/beforeVersionBump.js +0 -12
- package/dist/src/scripts/gitReleaser/checkReleaseNotes.js +0 -16
- package/dist/src/scripts/gitReleaser/pushRelease.js +0 -31
- package/dist/src/scripts/gitReleaser/pushReleaseCandidate.js +0 -6
- package/dist/src/scripts/gitReleaser/pushReleaseNotes.js +0 -37
- package/dist/src/scripts/release/appCenter/appCenter.js +0 -17
- package/dist/src/scripts/release/appCenter/deployProductionPackagesToAppCenter.js +0 -127
- package/dist/src/scripts/release/appCenter/deployToAppCenter.js +0 -76
- package/dist/src/scripts/release/deleteSourceMaps.js +0 -11
- package/dist/src/scripts/release/githubRelease.js +0 -132
- package/dist/src/scripts/release/notifySlack/generateWebhoook.js +0 -69
- package/dist/src/scripts/release/notifySlack/makePayload.js +0 -89
- package/dist/src/scripts/release/notifySlack/notifySlack.js +0 -56
- package/dist/src/scripts/release/notifySlack/slackBlockKitBuilder.js +0 -39
- package/dist/src/scripts/release/sentryRelease.js +0 -95
- package/dist/src/scripts/release/urlsMarkdown.js +0 -66
- package/dist/src/scripts/releaseAllWithScheme.js +0 -90
- package/dist/src/scripts/releaseAllWithSchemes.js +0 -158
- package/dist/src/scripts/releaseProductionPackagesAll.js +0 -13
- package/dist/src/scripts/utils/cmdUtils.js +0 -12
- package/dist/src/scripts/utils/fsUtils.js +0 -37
- package/dist/src/scripts/utils/generateIcons.js +0 -29
- package/dist/src/scripts/utils/gitUtils.js +0 -78
- package/dist/src/scripts/utils/index.js +0 -31
- package/dist/src/scripts/utils/stringUtils.js +0 -5
- package/dist/src/sdks/index.js +0 -51
- package/dist/src/sdks/sdk-androidtv/index.js +0 -17
- package/dist/src/sdks/sdk-androidtv/sdkAndroidtv.js +0 -290
- package/dist/src/sdks/sdk-tizen/index.js +0 -17
- package/dist/src/sdks/sdk-tizen/sdkTizen.js +0 -178
- package/dist/src/sdks/sdk-utils/index.js +0 -18
- package/dist/src/sdks/sdk-utils/registerSdkPath.js +0 -14
- package/dist/src/sdks/sdk-utils/sdk-installer/index.js +0 -5
- package/dist/src/sdks/sdk-utils/sdk-installer/sdkInstaller.js +0 -37
- package/dist/src/sdks/sdk-utils/sdk-installer/services/clean.js +0 -11
- package/dist/src/sdks/sdk-utils/sdk-installer/services/download.js +0 -80
- package/dist/src/sdks/sdk-utils/sdk-installer/services/index.js +0 -11
- package/dist/src/sdks/sdk-utils/sdk-installer/services/install.js +0 -23
- package/dist/src/sdks/sdk-utils/sdk-installer/services/unzip.js +0 -13
- package/dist/src/sdks/sdk-webos/index.js +0 -17
- package/dist/src/sdks/sdk-webos/sdkWebos.js +0 -90
- package/dist/src/sdks/sdk-webpack/index.js +0 -17
- package/dist/src/sdks/sdk-webpack/sdkWebpack.js +0 -121
- package/dist/src/sdks/sdk-xbox/index.js +0 -17
- package/dist/src/sdks/sdk-xbox/sdkXbox.js +0 -221
- package/dist/src/tasks/deploy/aswS3/aws.js +0 -40
- package/dist/src/tasks/deploy/aswS3/deployS3.js +0 -74
- package/dist/src/tasks/deploy/aswS3/distToLiveS3.js +0 -75
- package/dist/src/tasks/deploy/hbbtv/deployHbbtv.js +0 -104
- package/dist/src/tasks/engineTasks.js +0 -24
- package/dist/src/tasks/task.rnv.build.js +0 -118
- package/dist/src/tasks/task.rnv.configure.js +0 -48
- package/dist/src/tasks/task.rnv.configureSoft.js +0 -30
- package/dist/src/tasks/task.rnv.deploy.js +0 -53
- package/dist/src/tasks/task.rnv.hooks.run.js +0 -74
- package/dist/src/tasks/task.rnv.package.js +0 -18
- package/dist/src/tasks/task.rnv.platform.configure.js +0 -79
- package/dist/src/tasks/task.rnv.project.configure.js +0 -120
- package/dist/src/tasks/task.rnv.start.js +0 -48
- package/dist/src/types/c.js +0 -2
- package/dist/src/types/constants.js +0 -2
- package/dist/src/types/index.js +0 -2
- package/dist/src/utils/copyEnvironmentFolder.js +0 -65
- package/dist/src/utils/copyTheoPlayerLibs.js +0 -48
- package/dist/src/utils/forEachSupportedPlatformFlavour.js +0 -46
- package/dist/src/utils/generatePngSpriteMap.js +0 -81
- package/dist/src/utils/generateSvgSpriteMap.js +0 -117
- package/dist/src/utils/getSafeSchemeString.js +0 -7
- package/dist/src/utils/mergeSvgAndPngIcons.js +0 -65
- package/dist/src/utils/replaceRelevantStringsInConfig/index.js +0 -5
- package/dist/src/utils/replaceRelevantStringsInConfig/replaceRelevantStringsInConfig.js +0 -31
- package/dist/src/utils/replaceRelevantStringsInConfig/replaceTemplateString.js +0 -40
- package/dist/src/utils/zipBuildsByPlatforms.js +0 -68
- package/dist/src/utils/zipStagingProdBuildsByPlatforms.js +0 -114
- package/dist/templates/platforms/_shared/template.js +0 -87
- package/dist/templates/platforms/_shared/utils/extendSass.js +0 -29
- package/dist/templates/platforms/_shared/utils/joinStrings.js +0 -5
- package/dist/templates/platforms/_shared/webpack.base.js +0 -248
- package/dist/templates/platforms/_shared/webpack.config.dev.js +0 -6
- package/dist/templates/platforms/_shared/webpack.config.prod.js +0 -6
- package/dist/templates/platforms/_shared/webpack.extend.js +0 -8
- package/dist/templates/platforms/_shared/webpackConfigAdapter.js +0 -99
- package/dist/templates/platforms/_shared/webpackPlatformProps.js +0 -8
- package/dist/templates/platforms/androidtv/project/README.md +0 -196
- package/dist/templates/platforms/androidtv/project/amazoniap/build.gradle +0 -38
- package/dist/templates/platforms/androidtv/project/amazoniap/consumer-rules.pro +0 -0
- package/dist/templates/platforms/androidtv/project/amazoniap/libs/in-app-purchasing-2.0.76.jar +0 -0
- package/dist/templates/platforms/androidtv/project/amazoniap/proguard-rules.pro +0 -21
- package/dist/templates/platforms/androidtv/project/amazoniap/src/main/java/com/twentyfouri/bridgetv/amazoniap/AmazonIapSevice.kt +0 -106
- package/dist/templates/platforms/androidtv/project/app/build.gradle +0 -110
- package/dist/templates/platforms/androidtv/project/app/proguard-rules.pro +0 -47
- package/dist/templates/platforms/androidtv/project/app/src/bigscreenAppstage/java/com/twentyfouri/tvbridge/Flavor.kt +0 -5
- package/dist/templates/platforms/androidtv/project/app/src/bigscreenAppstage/res/raw/configuration.json +0 -8
- package/dist/templates/platforms/androidtv/project/app/src/main/AndroidManifest.xml +0 -52
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/FlavorBase.kt +0 -12
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/bridge/BridgeFromJavaScript.kt +0 -382
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/bridge/BridgeToJavaScript.kt +0 -104
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/configuration/BridgeConfig.kt +0 -17
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/configuration/ConfigCallback.kt +0 -6
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/configuration/ConfigProvider.kt +0 -27
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/configuration/Drm.kt +0 -10
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/configuration/UserAgent.kt +0 -6
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/global/BaseApplication.kt +0 -73
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/global/di/ActivityComponent.kt +0 -13
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/global/di/ActivityModule.kt +0 -14
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/global/di/ApplicationComponent.kt +0 -26
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/global/di/ApplicationModule.kt +0 -51
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/global/di/PerActivity.kt +0 -26
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/global/utils/LocalStorage.kt +0 -30
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/global/utils/LoggingDrmCallback.kt +0 -38
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/global/utils/OverriddenHttpMediaDrmCallback.kt +0 -134
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/global/utils/PlayerFactoryConfigured.kt +0 -33
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/global/utils/PlayerFactoryExoPlayerCustomized.kt +0 -90
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/global/utils/PlayerFactoryTheoPlayerCustomized.kt +0 -14
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/global/utils/PlayerFactoryVersion.kt +0 -27
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/global/utils/SimpleActivityLifecycleCallback.kt +0 -32
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/global/utils/SourceDrmOverridden.kt +0 -91
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/sound/TouchPlayer.kt +0 -86
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/webview/client/BridgeWebView.kt +0 -82
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/webview/client/BridgeWebViewClient.kt +0 -114
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/webview/model/AnalyticsPlaybackInfo.kt +0 -10
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/webview/model/ContentModel.kt +0 -14
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/webview/model/DrmModel.kt +0 -20
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/webview/model/MediaEventType.kt +0 -25
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/webview/parser/PlaybackInfoParser.kt +0 -10
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/webview/parser/SourceParser.kt +0 -89
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/webview/parser/TrackJsonModelParser.kt +0 -58
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/webview/view/Mainview.kt +0 -17
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/webview/view/PlayerCache.kt +0 -15
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/webview/view/WebViewActivity.kt +0 -247
- package/dist/templates/platforms/androidtv/project/app/src/main/java/com/twentyfouri/tvbridge/webview/viewmodel/WebViewModel.kt +0 -557
- package/dist/templates/platforms/androidtv/project/app/src/main/res/drawable/button_background_focus.xml +0 -10
- package/dist/templates/platforms/androidtv/project/app/src/main/res/drawable/button_background_normal.xml +0 -7
- package/dist/templates/platforms/androidtv/project/app/src/main/res/drawable/button_background_pressed.xml +0 -7
- package/dist/templates/platforms/androidtv/project/app/src/main/res/drawable/button_focus.xml +0 -8
- package/dist/templates/platforms/androidtv/project/app/src/main/res/layout/activity_web_view.xml +0 -28
- package/dist/templates/platforms/androidtv/project/app/src/main/res/raw/click.ogg +0 -0
- package/dist/templates/platforms/androidtv/project/app/src/main/res/values/styles.xml +0 -12
- package/dist/templates/platforms/androidtv/project/app/src/main/res/xml/network_security_config.xml +0 -4
- package/dist/templates/platforms/androidtv/project/build.gradle +0 -47
- package/dist/templates/platforms/androidtv/project/common/build.gradle +0 -37
- package/dist/templates/platforms/androidtv/project/common/consumer-rules.pro +0 -0
- package/dist/templates/platforms/androidtv/project/common/proguard-rules.pro +0 -21
- package/dist/templates/platforms/androidtv/project/common/src/main/java/com/twentyfouri/tvbridge/common/IapService.kt +0 -114
- package/dist/templates/platforms/androidtv/project/googleiap/build.gradle +0 -39
- package/dist/templates/platforms/androidtv/project/googleiap/consumer-rules.pro +0 -0
- package/dist/templates/platforms/androidtv/project/googleiap/proguard-rules.pro +0 -21
- package/dist/templates/platforms/androidtv/project/googleiap/src/main/java/com/twentyfouri/tvbridge/googleiap/GoogleIapService.kt +0 -29
- package/dist/templates/platforms/androidtv/project/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/dist/templates/platforms/androidtv/project/gradle/wrapper/gradle-wrapper.properties +0 -6
- package/dist/templates/platforms/androidtv/project/gradle.properties +0 -4
- package/dist/templates/platforms/androidtv/project/gradlew +0 -185
- package/dist/templates/platforms/androidtv/project/gradlew.bat +0 -104
- package/dist/templates/platforms/androidtv/project/proguard-rules.pro +0 -42
- package/dist/templates/platforms/androidtv/project/settings.gradle +0 -4
- package/dist/templates/platforms/hbbtv/webpackPlatformProps.js +0 -24
- package/dist/templates/platforms/tizen/project/.project +0 -24
- package/dist/templates/platforms/tizen/project/.tproject +0 -12
- package/dist/templates/platforms/tizen/project/config.xml +0 -17
- package/dist/templates/platforms/webos/project/.project +0 -35
- package/dist/templates/platforms/webos/project/appinfo.json +0 -19
- package/dist/templates/platforms/webos/webpackPlatformProps.js +0 -8
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
apply plugin: 'com.android.library'
|
|
2
|
-
apply plugin: 'kotlin-android'
|
|
3
|
-
|
|
4
|
-
android {
|
|
5
|
-
namespace = "com.twentyfouri.tvbridge.common"
|
|
6
|
-
compileSdk = 33
|
|
7
|
-
|
|
8
|
-
compileOptions {
|
|
9
|
-
sourceCompatibility JavaVersion.VERSION_1_8
|
|
10
|
-
targetCompatibility JavaVersion.VERSION_1_8
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
defaultConfig {
|
|
14
|
-
minSdk = 21
|
|
15
|
-
targetSdk = 33
|
|
16
|
-
|
|
17
|
-
versionCode 1
|
|
18
|
-
versionName "1.0"
|
|
19
|
-
|
|
20
|
-
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
21
|
-
consumerProguardFiles "consumer-rules.pro"
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
buildTypes {
|
|
25
|
-
release {
|
|
26
|
-
minifyEnabled false
|
|
27
|
-
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
dependencies {
|
|
33
|
-
implementation fileTree(dir: "libs", include: ["*.jar"])
|
|
34
|
-
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
35
|
-
implementation 'androidx.core:core-ktx:1.9.0'
|
|
36
|
-
implementation 'androidx.appcompat:appcompat:1.6.1'
|
|
37
|
-
}
|
|
File without changes
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# Add project specific ProGuard rules here.
|
|
2
|
-
# You can control the set of applied configuration files using the
|
|
3
|
-
# proguardFiles setting in build.gradle.
|
|
4
|
-
#
|
|
5
|
-
# For more details, see
|
|
6
|
-
# http://developer.android.com/guide/developing/tools/proguard.html
|
|
7
|
-
|
|
8
|
-
# If your project uses WebView with JS, uncomment the following
|
|
9
|
-
# and specify the fully qualified class name to the JavaScript interface
|
|
10
|
-
# class:
|
|
11
|
-
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
|
12
|
-
# public *;
|
|
13
|
-
#}
|
|
14
|
-
|
|
15
|
-
# Uncomment this to preserve the line number information for
|
|
16
|
-
# debugging stack traces.
|
|
17
|
-
#-keepattributes SourceFile,LineNumberTable
|
|
18
|
-
|
|
19
|
-
# If you keep the line number information, uncomment this to
|
|
20
|
-
# hide the original source file name.
|
|
21
|
-
#-renamesourcefileattribute SourceFile
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
package com.twentyfouri.tvbridge.common
|
|
2
|
-
|
|
3
|
-
import android.app.Activity
|
|
4
|
-
import android.content.Context
|
|
5
|
-
|
|
6
|
-
interface IapServiceFactory {
|
|
7
|
-
fun detectSupport(context: Context): Boolean
|
|
8
|
-
fun build(context: Context): IapService
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@Suppress("DEPRECATION", "unused")
|
|
12
|
-
val Context.installerPackageName: String?
|
|
13
|
-
get() = when {
|
|
14
|
-
android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.R ->
|
|
15
|
-
packageManager.getInstallSourceInfo(packageName).installingPackageName
|
|
16
|
-
else ->
|
|
17
|
-
packageManager.getInstallerPackageName(packageName)
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
interface IapService {
|
|
21
|
-
fun initialize()
|
|
22
|
-
fun destroy()
|
|
23
|
-
fun checkNewPurchases()
|
|
24
|
-
fun getProducts(skus: List<String>)
|
|
25
|
-
fun purchase(activity: Activity, sku: String)
|
|
26
|
-
fun acknowledgeReceipt(receipt: String)
|
|
27
|
-
fun setCallback(callback: IapCallback?)
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
interface IapCallback {
|
|
31
|
-
fun checkNewPurchasesFinished(result: List<IapPurchase>)
|
|
32
|
-
fun checkNewPurchasesFinished(exception: Exception)
|
|
33
|
-
fun getProductsFinished(result: List<IapProduct>, missing: List<String>)
|
|
34
|
-
fun getProductsFinished(exception: Exception)
|
|
35
|
-
fun purchaseFinished(result: IapPurchase)
|
|
36
|
-
fun purchaseFinished(exception: Exception)
|
|
37
|
-
fun acknowledgeReceiptFinished(exception: Exception?)
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
open class IapProduct(
|
|
41
|
-
val title: String,
|
|
42
|
-
val description: String,
|
|
43
|
-
val price: String,
|
|
44
|
-
val icon: String,
|
|
45
|
-
val type: String,
|
|
46
|
-
val sku: String,
|
|
47
|
-
) {
|
|
48
|
-
companion object {
|
|
49
|
-
const val TYPE_CONSUMABLE = "CONSUMABLE"
|
|
50
|
-
const val TYPE_SUBSCRIPTION = "SUBSCRIPTION"
|
|
51
|
-
const val TYPE_ENTITLED = "ENTITLED"
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
open class IapPurchase(
|
|
56
|
-
val sku: String,
|
|
57
|
-
val userId: String,
|
|
58
|
-
val receipt: String
|
|
59
|
-
)
|
|
60
|
-
|
|
61
|
-
open class IapException(
|
|
62
|
-
val status: String,
|
|
63
|
-
message: String,
|
|
64
|
-
cause: Exception?
|
|
65
|
-
): Exception(message, cause) {
|
|
66
|
-
|
|
67
|
-
constructor(
|
|
68
|
-
status: String
|
|
69
|
-
) : this(status, "In-app payment failed: $status", null)
|
|
70
|
-
|
|
71
|
-
constructor(
|
|
72
|
-
status: String,
|
|
73
|
-
cause: Exception?
|
|
74
|
-
) : this(status, cause?.message ?: "In-app payment failed: $status", cause)
|
|
75
|
-
|
|
76
|
-
companion object {
|
|
77
|
-
const val STATUS_FAILED = "FAILED"
|
|
78
|
-
const val STATUS_NOT_SUPPORTED = "NOT_SUPPORTED"
|
|
79
|
-
const val STATUS_INVALID_SKU = "INVALID_SKU"
|
|
80
|
-
const val STATUS_ALREADY_PURCHASED = "ALREADY_PURCHASED"
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
open class NullIapService : IapService {
|
|
85
|
-
|
|
86
|
-
protected var callback: IapCallback? = null
|
|
87
|
-
private set
|
|
88
|
-
|
|
89
|
-
override fun initialize() {
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
override fun destroy() {
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
override fun checkNewPurchases() {
|
|
96
|
-
callback?.checkNewPurchasesFinished(UnsupportedOperationException())
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
override fun getProducts(skus: List<String>) {
|
|
100
|
-
callback?.getProductsFinished(UnsupportedOperationException())
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
override fun purchase(activity: Activity, sku: String) {
|
|
104
|
-
callback?.purchaseFinished(UnsupportedOperationException())
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
override fun acknowledgeReceipt(receipt: String) {
|
|
108
|
-
callback?.acknowledgeReceiptFinished(UnsupportedOperationException())
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
override fun setCallback(callback: IapCallback?) {
|
|
112
|
-
this.callback = callback
|
|
113
|
-
}
|
|
114
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
apply plugin: 'com.android.library'
|
|
2
|
-
apply plugin: 'kotlin-android'
|
|
3
|
-
|
|
4
|
-
android {
|
|
5
|
-
namespace = "com.twentyfouri.tvbridge.googleiap"
|
|
6
|
-
compileSdk = 33
|
|
7
|
-
|
|
8
|
-
compileOptions {
|
|
9
|
-
sourceCompatibility JavaVersion.VERSION_1_8
|
|
10
|
-
targetCompatibility JavaVersion.VERSION_1_8
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
defaultConfig {
|
|
14
|
-
minSdk = 21
|
|
15
|
-
targetSdk = 33
|
|
16
|
-
|
|
17
|
-
versionCode 1
|
|
18
|
-
versionName "1.0"
|
|
19
|
-
|
|
20
|
-
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
21
|
-
consumerProguardFiles "consumer-rules.pro"
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
buildTypes {
|
|
25
|
-
release {
|
|
26
|
-
minifyEnabled false
|
|
27
|
-
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
dependencies {
|
|
33
|
-
implementation fileTree(dir: "libs", include: ["*.jar"])
|
|
34
|
-
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
35
|
-
implementation 'androidx.core:core-ktx:1.9.0'
|
|
36
|
-
implementation 'androidx.appcompat:appcompat:1.6.1'
|
|
37
|
-
implementation project(':common')
|
|
38
|
-
implementation 'com.android.billingclient:billing:3.0.1'
|
|
39
|
-
}
|
|
File without changes
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# Add project specific ProGuard rules here.
|
|
2
|
-
# You can control the set of applied configuration files using the
|
|
3
|
-
# proguardFiles setting in build.gradle.
|
|
4
|
-
#
|
|
5
|
-
# For more details, see
|
|
6
|
-
# http://developer.android.com/guide/developing/tools/proguard.html
|
|
7
|
-
|
|
8
|
-
# If your project uses WebView with JS, uncomment the following
|
|
9
|
-
# and specify the fully qualified class name to the JavaScript interface
|
|
10
|
-
# class:
|
|
11
|
-
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
|
12
|
-
# public *;
|
|
13
|
-
#}
|
|
14
|
-
|
|
15
|
-
# Uncomment this to preserve the line number information for
|
|
16
|
-
# debugging stack traces.
|
|
17
|
-
#-keepattributes SourceFile,LineNumberTable
|
|
18
|
-
|
|
19
|
-
# If you keep the line number information, uncomment this to
|
|
20
|
-
# hide the original source file name.
|
|
21
|
-
#-renamesourcefileattribute SourceFile
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
package com.twentyfouri.tvbridge.googleiap
|
|
2
|
-
|
|
3
|
-
import android.content.Context
|
|
4
|
-
import android.os.Build
|
|
5
|
-
import com.twentyfouri.tvbridge.common.IapService
|
|
6
|
-
import com.twentyfouri.tvbridge.common.IapServiceFactory
|
|
7
|
-
import com.twentyfouri.tvbridge.common.NullIapService
|
|
8
|
-
import com.twentyfouri.tvbridge.common.installerPackageName
|
|
9
|
-
|
|
10
|
-
object GoogleIapServiceFactory : IapServiceFactory {
|
|
11
|
-
override fun detectSupport(context: Context): Boolean {
|
|
12
|
-
val installer = context.installerPackageName
|
|
13
|
-
return when {
|
|
14
|
-
installer == "com.android.vending" -> true
|
|
15
|
-
installer == "com.amazon.venezia" -> false
|
|
16
|
-
Build.MANUFACTURER == "Amazon" -> false
|
|
17
|
-
else -> true // for non-Fire devices we assume that Google Play is installed
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
override fun build(context: Context): IapService =
|
|
22
|
-
GoogleIapService(context)
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
class GoogleIapService(
|
|
26
|
-
private val context: Context
|
|
27
|
-
): NullIapService() {
|
|
28
|
-
// we'll implement this when the feature is confirmed
|
|
29
|
-
}
|
|
Binary file
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env sh
|
|
2
|
-
|
|
3
|
-
#
|
|
4
|
-
# Copyright 2015 the original author or authors.
|
|
5
|
-
#
|
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
-
# you may not use this file except in compliance with the License.
|
|
8
|
-
# You may obtain a copy of the License at
|
|
9
|
-
#
|
|
10
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
#
|
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
# See the License for the specific language governing permissions and
|
|
16
|
-
# limitations under the License.
|
|
17
|
-
#
|
|
18
|
-
|
|
19
|
-
##############################################################################
|
|
20
|
-
##
|
|
21
|
-
## Gradle start up script for UN*X
|
|
22
|
-
##
|
|
23
|
-
##############################################################################
|
|
24
|
-
|
|
25
|
-
# Attempt to set APP_HOME
|
|
26
|
-
# Resolve links: $0 may be a link
|
|
27
|
-
PRG="$0"
|
|
28
|
-
# Need this for relative symlinks.
|
|
29
|
-
while [ -h "$PRG" ] ; do
|
|
30
|
-
ls=`ls -ld "$PRG"`
|
|
31
|
-
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
32
|
-
if expr "$link" : '/.*' > /dev/null; then
|
|
33
|
-
PRG="$link"
|
|
34
|
-
else
|
|
35
|
-
PRG=`dirname "$PRG"`"/$link"
|
|
36
|
-
fi
|
|
37
|
-
done
|
|
38
|
-
SAVED="`pwd`"
|
|
39
|
-
cd "`dirname \"$PRG\"`/" >/dev/null
|
|
40
|
-
APP_HOME="`pwd -P`"
|
|
41
|
-
cd "$SAVED" >/dev/null
|
|
42
|
-
|
|
43
|
-
APP_NAME="Gradle"
|
|
44
|
-
APP_BASE_NAME=`basename "$0"`
|
|
45
|
-
|
|
46
|
-
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
|
47
|
-
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
|
48
|
-
|
|
49
|
-
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
|
50
|
-
MAX_FD="maximum"
|
|
51
|
-
|
|
52
|
-
warn () {
|
|
53
|
-
echo "$*"
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
die () {
|
|
57
|
-
echo
|
|
58
|
-
echo "$*"
|
|
59
|
-
echo
|
|
60
|
-
exit 1
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
# OS specific support (must be 'true' or 'false').
|
|
64
|
-
cygwin=false
|
|
65
|
-
msys=false
|
|
66
|
-
darwin=false
|
|
67
|
-
nonstop=false
|
|
68
|
-
case "`uname`" in
|
|
69
|
-
CYGWIN* )
|
|
70
|
-
cygwin=true
|
|
71
|
-
;;
|
|
72
|
-
Darwin* )
|
|
73
|
-
darwin=true
|
|
74
|
-
;;
|
|
75
|
-
MINGW* )
|
|
76
|
-
msys=true
|
|
77
|
-
;;
|
|
78
|
-
NONSTOP* )
|
|
79
|
-
nonstop=true
|
|
80
|
-
;;
|
|
81
|
-
esac
|
|
82
|
-
|
|
83
|
-
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
# Determine the Java command to use to start the JVM.
|
|
87
|
-
if [ -n "$JAVA_HOME" ] ; then
|
|
88
|
-
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
|
89
|
-
# IBM's JDK on AIX uses strange locations for the executables
|
|
90
|
-
JAVACMD="$JAVA_HOME/jre/sh/java"
|
|
91
|
-
else
|
|
92
|
-
JAVACMD="$JAVA_HOME/bin/java"
|
|
93
|
-
fi
|
|
94
|
-
if [ ! -x "$JAVACMD" ] ; then
|
|
95
|
-
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
|
96
|
-
|
|
97
|
-
Please set the JAVA_HOME variable in your environment to match the
|
|
98
|
-
location of your Java installation."
|
|
99
|
-
fi
|
|
100
|
-
else
|
|
101
|
-
JAVACMD="java"
|
|
102
|
-
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
|
103
|
-
|
|
104
|
-
Please set the JAVA_HOME variable in your environment to match the
|
|
105
|
-
location of your Java installation."
|
|
106
|
-
fi
|
|
107
|
-
|
|
108
|
-
# Increase the maximum file descriptors if we can.
|
|
109
|
-
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
|
|
110
|
-
MAX_FD_LIMIT=`ulimit -H -n`
|
|
111
|
-
if [ $? -eq 0 ] ; then
|
|
112
|
-
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
|
|
113
|
-
MAX_FD="$MAX_FD_LIMIT"
|
|
114
|
-
fi
|
|
115
|
-
ulimit -n $MAX_FD
|
|
116
|
-
if [ $? -ne 0 ] ; then
|
|
117
|
-
warn "Could not set maximum file descriptor limit: $MAX_FD"
|
|
118
|
-
fi
|
|
119
|
-
else
|
|
120
|
-
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
|
|
121
|
-
fi
|
|
122
|
-
fi
|
|
123
|
-
|
|
124
|
-
# For Darwin, add options to specify how the application appears in the dock
|
|
125
|
-
if $darwin; then
|
|
126
|
-
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
|
|
127
|
-
fi
|
|
128
|
-
|
|
129
|
-
# For Cygwin or MSYS, switch paths to Windows format before running java
|
|
130
|
-
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
|
|
131
|
-
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
|
|
132
|
-
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
|
|
133
|
-
|
|
134
|
-
JAVACMD=`cygpath --unix "$JAVACMD"`
|
|
135
|
-
|
|
136
|
-
# We build the pattern for arguments to be converted via cygpath
|
|
137
|
-
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
|
|
138
|
-
SEP=""
|
|
139
|
-
for dir in $ROOTDIRSRAW ; do
|
|
140
|
-
ROOTDIRS="$ROOTDIRS$SEP$dir"
|
|
141
|
-
SEP="|"
|
|
142
|
-
done
|
|
143
|
-
OURCYGPATTERN="(^($ROOTDIRS))"
|
|
144
|
-
# Add a user-defined pattern to the cygpath arguments
|
|
145
|
-
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
|
|
146
|
-
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
|
|
147
|
-
fi
|
|
148
|
-
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
|
149
|
-
i=0
|
|
150
|
-
for arg in "$@" ; do
|
|
151
|
-
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
|
|
152
|
-
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
|
|
153
|
-
|
|
154
|
-
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
|
|
155
|
-
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
|
|
156
|
-
else
|
|
157
|
-
eval `echo args$i`="\"$arg\""
|
|
158
|
-
fi
|
|
159
|
-
i=`expr $i + 1`
|
|
160
|
-
done
|
|
161
|
-
case $i in
|
|
162
|
-
0) set -- ;;
|
|
163
|
-
1) set -- "$args0" ;;
|
|
164
|
-
2) set -- "$args0" "$args1" ;;
|
|
165
|
-
3) set -- "$args0" "$args1" "$args2" ;;
|
|
166
|
-
4) set -- "$args0" "$args1" "$args2" "$args3" ;;
|
|
167
|
-
5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
|
|
168
|
-
6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
|
|
169
|
-
7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
|
|
170
|
-
8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
|
|
171
|
-
9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
|
|
172
|
-
esac
|
|
173
|
-
fi
|
|
174
|
-
|
|
175
|
-
# Escape application args
|
|
176
|
-
save () {
|
|
177
|
-
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
|
|
178
|
-
echo " "
|
|
179
|
-
}
|
|
180
|
-
APP_ARGS=`save "$@"`
|
|
181
|
-
|
|
182
|
-
# Collect all arguments for the java command, following the shell quoting and substitution rules
|
|
183
|
-
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
|
|
184
|
-
|
|
185
|
-
exec "$JAVACMD" "$@"
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
@rem
|
|
2
|
-
@rem Copyright 2015 the original author or authors.
|
|
3
|
-
@rem
|
|
4
|
-
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
@rem you may not use this file except in compliance with the License.
|
|
6
|
-
@rem You may obtain a copy of the License at
|
|
7
|
-
@rem
|
|
8
|
-
@rem https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
@rem
|
|
10
|
-
@rem Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
@rem See the License for the specific language governing permissions and
|
|
14
|
-
@rem limitations under the License.
|
|
15
|
-
@rem
|
|
16
|
-
|
|
17
|
-
@if "%DEBUG%" == "" @echo off
|
|
18
|
-
@rem ##########################################################################
|
|
19
|
-
@rem
|
|
20
|
-
@rem Gradle startup script for Windows
|
|
21
|
-
@rem
|
|
22
|
-
@rem ##########################################################################
|
|
23
|
-
|
|
24
|
-
@rem Set local scope for the variables with windows NT shell
|
|
25
|
-
if "%OS%"=="Windows_NT" setlocal
|
|
26
|
-
|
|
27
|
-
set DIRNAME=%~dp0
|
|
28
|
-
if "%DIRNAME%" == "" set DIRNAME=.
|
|
29
|
-
set APP_BASE_NAME=%~n0
|
|
30
|
-
set APP_HOME=%DIRNAME%
|
|
31
|
-
|
|
32
|
-
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
|
33
|
-
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
|
34
|
-
|
|
35
|
-
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
|
36
|
-
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
|
37
|
-
|
|
38
|
-
@rem Find java.exe
|
|
39
|
-
if defined JAVA_HOME goto findJavaFromJavaHome
|
|
40
|
-
|
|
41
|
-
set JAVA_EXE=java.exe
|
|
42
|
-
%JAVA_EXE% -version >NUL 2>&1
|
|
43
|
-
if "%ERRORLEVEL%" == "0" goto init
|
|
44
|
-
|
|
45
|
-
echo.
|
|
46
|
-
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
|
47
|
-
echo.
|
|
48
|
-
echo Please set the JAVA_HOME variable in your environment to match the
|
|
49
|
-
echo location of your Java installation.
|
|
50
|
-
|
|
51
|
-
goto fail
|
|
52
|
-
|
|
53
|
-
:findJavaFromJavaHome
|
|
54
|
-
set JAVA_HOME=%JAVA_HOME:"=%
|
|
55
|
-
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
|
56
|
-
|
|
57
|
-
if exist "%JAVA_EXE%" goto init
|
|
58
|
-
|
|
59
|
-
echo.
|
|
60
|
-
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
|
61
|
-
echo.
|
|
62
|
-
echo Please set the JAVA_HOME variable in your environment to match the
|
|
63
|
-
echo location of your Java installation.
|
|
64
|
-
|
|
65
|
-
goto fail
|
|
66
|
-
|
|
67
|
-
:init
|
|
68
|
-
@rem Get command-line arguments, handling Windows variants
|
|
69
|
-
|
|
70
|
-
if not "%OS%" == "Windows_NT" goto win9xME_args
|
|
71
|
-
|
|
72
|
-
:win9xME_args
|
|
73
|
-
@rem Slurp the command line arguments.
|
|
74
|
-
set CMD_LINE_ARGS=
|
|
75
|
-
set _SKIP=2
|
|
76
|
-
|
|
77
|
-
:win9xME_args_slurp
|
|
78
|
-
if "x%~1" == "x" goto execute
|
|
79
|
-
|
|
80
|
-
set CMD_LINE_ARGS=%*
|
|
81
|
-
|
|
82
|
-
:execute
|
|
83
|
-
@rem Setup the command line
|
|
84
|
-
|
|
85
|
-
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
@rem Execute Gradle
|
|
89
|
-
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
|
|
90
|
-
|
|
91
|
-
:end
|
|
92
|
-
@rem End local scope for the variables with windows NT shell
|
|
93
|
-
if "%ERRORLEVEL%"=="0" goto mainEnd
|
|
94
|
-
|
|
95
|
-
:fail
|
|
96
|
-
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
|
97
|
-
rem the _cmd.exe /c_ return code!
|
|
98
|
-
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
|
|
99
|
-
exit /b 1
|
|
100
|
-
|
|
101
|
-
:mainEnd
|
|
102
|
-
if "%OS%"=="Windows_NT" endlocal
|
|
103
|
-
|
|
104
|
-
:omega
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
# Add project specific ProGuard rules here.
|
|
2
|
-
# You can control the set of applied configuration files using the
|
|
3
|
-
# proguardFiles setting in build.gradle.
|
|
4
|
-
#
|
|
5
|
-
# For more details, see
|
|
6
|
-
# http://developer.android.com/guide/developing/tools/proguard.html
|
|
7
|
-
|
|
8
|
-
# If your project uses WebView with JS, uncomment the following
|
|
9
|
-
# and specify the fully qualified class name to the JavaScript interface
|
|
10
|
-
# class:
|
|
11
|
-
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
|
12
|
-
# public *;
|
|
13
|
-
#}
|
|
14
|
-
|
|
15
|
-
# Uncomment this to preserve the line number information for
|
|
16
|
-
# debugging stack traces.
|
|
17
|
-
#-keepattributes SourceFile,LineNumberTable
|
|
18
|
-
|
|
19
|
-
# If you keep the line number information, uncomment this to
|
|
20
|
-
# hide the original source file name.
|
|
21
|
-
#-renamesourcefileattribute SourceFile
|
|
22
|
-
|
|
23
|
-
-keepattributes JavascriptInterface
|
|
24
|
-
-keepclassmembers class * {
|
|
25
|
-
@android.webkit.JavascriptInterface <methods>;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
-keep class com.google.android.exoplayer2.** { *; }
|
|
29
|
-
-dontnote com.google.android.exoplayer2.**
|
|
30
|
-
-dontnote com.google.gson.**
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
-dontwarn okhttp3.**
|
|
34
|
-
-dontwarn javax.annotation.**
|
|
35
|
-
# A resource is loaded with a relative path so the package of this class must be preserved.
|
|
36
|
-
-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase
|
|
37
|
-
-ignorewarnings
|
|
38
|
-
-dontwarn com.amazon.**
|
|
39
|
-
-keep class com.amazon.** {*;}
|
|
40
|
-
-keepattributes *Annotation*
|
|
41
|
-
-optimizationpasses 1
|
|
42
|
-
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.webpackPlatformProps = void 0;
|
|
4
|
-
const objStyle = 'style="position: absolute; left: 0; top: 0; width: 0; height: 0;"';
|
|
5
|
-
exports.webpackPlatformProps = {
|
|
6
|
-
docType: `
|
|
7
|
-
<?xml version="1.0" encoding="UTF-8" ?>
|
|
8
|
-
<!DOCTYPE html PUBLIC "-//HbbTV//1.1.1//EN" "http://www.hbbtv.org/dtd/HbbTV-1.1.1.dtd">
|
|
9
|
-
`,
|
|
10
|
-
htmlTag: '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">',
|
|
11
|
-
metaTags: `
|
|
12
|
-
<meta http-equiv="content-type" content="application/vnd.hbbtv.xhtml+xml" charset="UTF-8" />
|
|
13
|
-
<meta http-equiv="cache-control" content="max-age=0" />
|
|
14
|
-
<meta http-equiv="cache-control" content="no-cache" />
|
|
15
|
-
<meta http-equiv="expires" content="0" />
|
|
16
|
-
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
|
|
17
|
-
<meta http-equiv="pragma" content="no-cache" />
|
|
18
|
-
`,
|
|
19
|
-
bodyPrepend: [
|
|
20
|
-
`<object id="oipfCap" type="application/oipfCapabilities" ${objStyle}></object>`,
|
|
21
|
-
`<object id="oipfAppMan" type="application/oipfApplicationManager" ${objStyle}></object>`,
|
|
22
|
-
`<object id="oipfConfig" type="application/oipfConfiguration" ${objStyle}></object>`,
|
|
23
|
-
],
|
|
24
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<projectDescription>
|
|
3
|
-
<name>{{configProps.appName}}</name>
|
|
4
|
-
<comment></comment>
|
|
5
|
-
<projects>
|
|
6
|
-
</projects>
|
|
7
|
-
<buildSpec>
|
|
8
|
-
<buildCommand>
|
|
9
|
-
<name>json.validation.builder</name>
|
|
10
|
-
<arguments>
|
|
11
|
-
</arguments>
|
|
12
|
-
</buildCommand>
|
|
13
|
-
<buildCommand>
|
|
14
|
-
<name>org.tizen.web.project.builder.WebBuilder</name>
|
|
15
|
-
<arguments>
|
|
16
|
-
</arguments>
|
|
17
|
-
</buildCommand>
|
|
18
|
-
</buildSpec>
|
|
19
|
-
<natures>
|
|
20
|
-
<nature>json.validation.nature</nature>
|
|
21
|
-
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
|
|
22
|
-
<nature>org.tizen.web.project.builder.WebNature</nature>
|
|
23
|
-
</natures>
|
|
24
|
-
</projectDescription>
|