mirror of
https://github.com/sifacaii/VlcJellyfin
synced 2025-06-03 00:58:06 -04:00
修改
This commit is contained in:
parent
0e710a7bb6
commit
5ddc51551f
@ -42,6 +42,7 @@ dependencies {
|
|||||||
implementation 'androidx.appcompat:appcompat:1.5.0'
|
implementation 'androidx.appcompat:appcompat:1.5.0'
|
||||||
implementation 'com.google.android.material:material:1.6.1'
|
implementation 'com.google.android.material:material:1.6.1'
|
||||||
implementation 'com.lzy.net:okgo:3.0.4'
|
implementation 'com.lzy.net:okgo:3.0.4'
|
||||||
|
implementation 'androidx.multidex:multidex:2.0.1'
|
||||||
testImplementation 'junit:junit:4.13.2'
|
testImplementation 'junit:junit:4.13.2'
|
||||||
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
||||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
|
||||||
|
|
||||||
<application
|
<application
|
||||||
|
android:name=".application"
|
||||||
android:allowBackup="true"
|
android:allowBackup="true"
|
||||||
android:dataExtractionRules="@xml/data_extraction_rules"
|
android:dataExtractionRules="@xml/data_extraction_rules"
|
||||||
android:fullBackupContent="@xml/backup_rules"
|
android:fullBackupContent="@xml/backup_rules"
|
||||||
|
@ -36,8 +36,6 @@ public class HomeActivity extends BaseActivity {
|
|||||||
disableActiveBarBack();
|
disableActiveBarBack();
|
||||||
|
|
||||||
tvContiner = findViewById(R.id.tvItems);
|
tvContiner = findViewById(R.id.tvItems);
|
||||||
|
|
||||||
JfClient.init(getApplication());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private JfClient.JJCallBack connErr = new JfClient.JJCallBack() {
|
private JfClient.JJCallBack connErr = new JfClient.JJCallBack() {
|
||||||
|
20
app/src/main/java/org/sifacai/vlcjellyfin/application.java
Normal file
20
app/src/main/java/org/sifacai/vlcjellyfin/application.java
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
package org.sifacai.vlcjellyfin;
|
||||||
|
|
||||||
|
import android.app.Application;
|
||||||
|
import android.content.Context;
|
||||||
|
|
||||||
|
import androidx.multidex.MultiDex;
|
||||||
|
|
||||||
|
public class application extends Application {
|
||||||
|
@Override
|
||||||
|
public void onCreate() {
|
||||||
|
super.onCreate();
|
||||||
|
JfClient.init(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void attachBaseContext(Context base) {
|
||||||
|
super.attachBaseContext(base);
|
||||||
|
MultiDex.install(base);
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user