mirror of
https://github.com/yuliskov/SmartTube.git
synced 2026-01-30 19:10:07 -06:00
build: add universal apk; debug manager: show video info name
This commit is contained in:
@@ -41,6 +41,7 @@ import com.liskovsoft.smartyoutubetv2.common.prefs.AppPrefs;
|
||||
import com.liskovsoft.smartyoutubetv2.common.prefs.PlayerTweaksData;
|
||||
import com.liskovsoft.smartyoutubetv2.common.utils.Utils;
|
||||
import com.liskovsoft.youtubeapi.app.models.AppInfo;
|
||||
import com.liskovsoft.youtubeapi.common.helpers.AppClient;
|
||||
import com.liskovsoft.youtubeapi.service.internal.MediaServiceData;
|
||||
|
||||
import org.chromium.net.ApiVersion;
|
||||
@@ -381,7 +382,10 @@ public final class DebugInfoManager implements Runnable, Player.EventListener {
|
||||
}
|
||||
|
||||
private void appendVideoInfoType() {
|
||||
appendRow("Video info type", MediaServiceData.instance().getVideoInfoType());
|
||||
int videoInfoType = MediaServiceData.instance().getVideoInfoType();
|
||||
String infoName = videoInfoType != -1 && videoInfoType < AppClient.values().length ? AppClient.values()[videoInfoType].name() : "default";
|
||||
|
||||
appendRow("Video info type", infoName);
|
||||
}
|
||||
|
||||
private void appendVideoInfoVersion() {
|
||||
|
||||
@@ -9,7 +9,7 @@ echo This could be helpful when you need to clean the repo after DMCA Notice.
|
||||
cd /d "%~dp0"
|
||||
|
||||
REM Skip first 15 releases
|
||||
for /F "skip=230 tokens=*" %%a in ('hub release') do call :cleanupRelease %%a
|
||||
for /F "skip=300 tokens=*" %%a in ('hub release') do call :cleanupRelease %%a
|
||||
|
||||
goto End
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ android {
|
||||
// Note, Android could soon start warning users when they run 32-bit apps
|
||||
//include 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a' //select ABIs to build APKs for
|
||||
include 'armeabi-v7a', 'x86', 'arm64-v8a' // v7a main build, x86 for WSL, v8a for Pixel Tablet (no 32 bit support)
|
||||
universalApk false //generate an additional APK that contains all the ABIs
|
||||
universalApk true //generate an additional APK that contains all the ABIs
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -142,6 +142,7 @@ android {
|
||||
def buildType = variant.buildType.name.take(1)
|
||||
def version = variant.versionName
|
||||
def arch = output.getFilter(com.android.build.OutputFile.ABI)
|
||||
arch = arch != null ? arch : "universal"
|
||||
|
||||
def newApkName = sprintf("%s_%s_%s_%s.apk", [project, flavor, version, arch])
|
||||
|
||||
@@ -155,6 +156,10 @@ android {
|
||||
//exclude 'META-INF/com.android.tools/proguard/coroutines.pro'
|
||||
// Not working!
|
||||
// exclude '**/SearchOrbView.class'
|
||||
|
||||
// Remove unneeded arches from universal apk here because 'splits' cannot do this
|
||||
exclude "lib/x86_64/**"
|
||||
exclude "lib/armeabi/**"
|
||||
}
|
||||
|
||||
lintOptions {
|
||||
|
||||
Reference in New Issue
Block a user