初始提交:第三方合作伙伴 App 测试项目
- 支持 EPG Intent 传参启动(deviceUid + programCode 自动播放) - 代销模式 init/checkBenefits/SDK初始化/获取播放地址/播放 - Android 4.2 (API 17) 兼容 - OkHttp 3.12.x + TLS 1.2 - ExoPlayer 2.19.1 视频播放
This commit is contained in:
74
app/src/main/AndroidManifest.xml
Normal file
74
app/src/main/AndroidManifest.xml
Normal file
@@ -0,0 +1,74 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
|
||||
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
|
||||
|
||||
<!-- 覆盖依赖库的 minSdk 要求,兼容 Android 4.2(API 17) -->
|
||||
<uses-sdk tools:overrideLibrary="
|
||||
com.google.android.exoplayer2,
|
||||
androidx.core,
|
||||
androidx.appcompat,
|
||||
com.google.android.material,
|
||||
androidx.recyclerview,
|
||||
androidx.activity,
|
||||
androidx.lifecycle,
|
||||
androidx.lifecycle.viewmodel,
|
||||
androidx.lifecycle.livedata,
|
||||
androidx.lifecycle.livedata.core,
|
||||
androidx.lifecycle.livedata.core.ktx,
|
||||
androidx.constraintlayout" />
|
||||
|
||||
<application
|
||||
android:name=".PartnerApp"
|
||||
android:allowBackup="true"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/Theme.PartnerTest"
|
||||
android:usesCleartextTraffic="true">
|
||||
|
||||
<!-- 页面1: 启动页/输入页 - 支持 EPG Intent 传参启动 -->
|
||||
<activity
|
||||
android:name=".ui.PartnerLaunchActivity"
|
||||
android:exported="true"
|
||||
android:screenOrientation="landscape"
|
||||
android:configChanges="orientation|screenSize|keyboardHidden">
|
||||
|
||||
<!-- EPG 传参启动 -->
|
||||
<intent-filter>
|
||||
<action android:name="com.pukka.mediaapp.PARTNER_LAUNCH" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
</intent-filter>
|
||||
|
||||
<!-- 手动启动(调试用) -->
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<!-- 页面2: 权益查询页 -->
|
||||
<activity
|
||||
android:name=".ui.BenefitsActivity"
|
||||
android:screenOrientation="landscape"
|
||||
android:configChanges="orientation|screenSize|keyboardHidden" />
|
||||
|
||||
<!-- 页面3: 播放测试页 -->
|
||||
<activity
|
||||
android:name=".ui.PlayTestActivity"
|
||||
android:screenOrientation="landscape"
|
||||
android:configChanges="orientation|screenSize|keyboardHidden" />
|
||||
|
||||
<!-- 视频播放页 -->
|
||||
<activity
|
||||
android:name=".ui.VideoPlayerActivity"
|
||||
android:screenOrientation="landscape"
|
||||
android:configChanges="orientation|screenSize|keyboardHidden" />
|
||||
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
Reference in New Issue
Block a user