Skip to content

Commit

Permalink
升级版本
Browse files Browse the repository at this point in the history
  • Loading branch information
generocket committed Dec 26, 2023
1 parent 7f3efe6 commit cec5155
Show file tree
Hide file tree
Showing 81 changed files with 11 additions and 9,806 deletions.
12 changes: 9 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,17 @@ android {
minifyEnabled false

ndk {
abiFilters 'armeabi-v7a'
abiFilters 'arm64-v8a'
}
}
release {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
minifyEnabled true

ndk {
abiFilters 'armeabi-v7a'
abiFilters 'arm64-v8a'
}
signingConfig signingConfigs.debug
}
}

Expand Down Expand Up @@ -87,7 +88,12 @@ dependencies {
implementation 'org.greenrobot:eventbus:3.2.0'
implementation 'com.orhanobut:hawk:2.0.1'

implementation project(":player")
implementation 'xyz.doikki.android.dkplayer:dkplayer-java:3.3.7'
implementation 'xyz.doikki.android.dkplayer:dkplayer-ui:3.3.7'
implementation 'xyz.doikki.android.dkplayer:player-exo:3.3.7'
implementation 'xyz.doikki.android.dkplayer:player-ijk:3.3.7'
implementation 'xyz.doikki.android.dkplayer:videocache:3.3.7'

//implementation project(":quickjs")

implementation 'net.sourceforge.streamsupport:android-retrofuture:1.7.4'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,10 @@

import com.github.tvbox.osc.event.RefreshEvent;
import com.github.tvbox.osc.receiver.SearchReceiver;
import com.github.tvbox.osc.util.HawkConfig;
import com.orhanobut.hawk.Hawk;

import org.greenrobot.eventbus.EventBus;

import java.io.IOException;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import tv.danmaku.ijk.media.player.IjkMediaPlayer;

/**
* @author pj567
Expand Down Expand Up @@ -85,7 +79,6 @@ public void onPushReceived(String url) {
});
try {
mServer.start();
IjkMediaPlayer.setDotPort(Hawk.get(HawkConfig.DOH_URL, 0) > 0, RemoteServer.serverPort);
break;
} catch (IOException ex) {
RemoteServer.serverPort++;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,6 @@ public void run() {
} else {
PlayerHelper.updateCfg(mVideoView, mVodPlayerCfg);
}
mVideoView.setProgressKey(progressKey);
if (headers != null) {
mVideoView.setUrl(url, headers);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public BaseDialog(Context context, int customDialogStyle) {

@Override
protected void onCreate(Bundle savedInstanceState) {
CutoutUtil.adaptCutoutAboveAndroidP(this, true);//设置刘海
CutoutUtil.adaptCutoutAboveAndroidP(this.getContext(), true);//设置刘海
super.onCreate(savedInstanceState);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import com.github.tvbox.osc.util.FileUtils;
import com.github.tvbox.osc.util.HawkConfig;
import com.github.tvbox.osc.util.HistoryHelper;
import com.github.tvbox.osc.util.LOG;
import com.github.tvbox.osc.util.OkGoHelper;
import com.github.tvbox.osc.util.PlayerHelper;
import com.lzy.okgo.OkGo;
Expand All @@ -48,7 +47,6 @@
import java.util.List;

import okhttp3.HttpUrl;
import tv.danmaku.ijk.media.player.IjkMediaPlayer;

/**
* @author pj567
Expand Down Expand Up @@ -253,7 +251,6 @@ public void click(String value, int pos) {
Hawk.put(HawkConfig.DOH_URL, pos);
String url = OkGoHelper.getDohUrl(pos);
OkGoHelper.dnsOverHttps.setUrl(url.isEmpty() ? null : HttpUrl.get(url));
IjkMediaPlayer.toggleDotPort(pos > 0);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,6 @@ public void run() {
} else {
PlayerHelper.updateCfg(mVideoView, mVodPlayerCfg);
}
mVideoView.setProgressKey(progressKey);
if (headers != null) {
mVideoView.setUrl(url, headers);
} else {
Expand Down
3 changes: 0 additions & 3 deletions app/src/main/java/com/github/tvbox/osc/util/OkGoHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@
import okhttp3.HttpUrl;
import okhttp3.OkHttpClient;
import okhttp3.dnsoverhttps.DnsOverHttps;

import okhttp3.internal.Util;
import okhttp3.internal.Version;
import xyz.doikki.videoplayer.exo.ExoMediaSourceHelper;

public class OkGoHelper {
public static final long DEFAULT_MILLISECONDS = 10000; //默认的超时时间
Expand Down Expand Up @@ -63,7 +61,6 @@ static void initExoOkHttpClient() {
}
builder.dns(dnsOverHttps);

ExoMediaSourceHelper.getInstance(App.getInstance()).setOkClient(builder.build());
}

public static DnsOverHttps dnsOverHttps = null;
Expand Down
1 change: 0 additions & 1 deletion player/.gitignore

This file was deleted.

45 changes: 0 additions & 45 deletions player/build.gradle

This file was deleted.

21 changes: 0 additions & 21 deletions player/proguard-rules.pro

This file was deleted.

30 changes: 0 additions & 30 deletions player/src/main/AndroidManifest.xml

This file was deleted.

This file was deleted.

Loading

0 comments on commit cec5155

Please sign in to comment.