Remove stream
This commit is contained in:
parent
a83fbf11b2
commit
ba3f8c4b18
|
|
@ -32,17 +32,16 @@ android {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||||||
implementation 'androidx.appcompat:appcompat:1.1.0'
|
implementation 'androidx.appcompat:appcompat:1.1.0'
|
||||||
|
implementation 'androidx.browser:browser:1.2.0'
|
||||||
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
||||||
implementation 'com.google.android.material:material:1.2.0-alpha05'
|
implementation "androidx.recyclerview:recyclerview:1.2.0-alpha01"
|
||||||
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.0.0'
|
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.0.0'
|
||||||
implementation 'com.github.bumptech.glide:glide:4.11.0'
|
implementation 'com.github.bumptech.glide:glide:4.11.0'
|
||||||
implementation "com.github.topjohnwu.libsu:core:2.5.1"
|
implementation "com.github.topjohnwu.libsu:core:2.5.1"
|
||||||
implementation 'androidx.browser:browser:1.2.0'
|
implementation 'com.google.android.gms:play-services-oss-licenses:17.0.0'
|
||||||
implementation 'com.timehop.stickyheadersrecyclerview:library:0.4.3@aar'
|
implementation 'com.google.android.material:material:1.2.0-alpha05'
|
||||||
|
implementation 'com.google.code.gson:gson:2.8.6'
|
||||||
implementation 'com.takisoft.preferencex:preferencex:1.1.0'
|
implementation 'com.takisoft.preferencex:preferencex:1.1.0'
|
||||||
implementation 'com.takisoft.preferencex:preferencex-simplemenu:1.1.0'
|
implementation 'com.takisoft.preferencex:preferencex-simplemenu:1.1.0'
|
||||||
implementation "androidx.recyclerview:recyclerview:1.2.0-alpha01"
|
implementation 'com.timehop.stickyheadersrecyclerview:library:0.4.3@aar'
|
||||||
implementation 'com.annimon:stream:1.2.0'
|
|
||||||
implementation 'com.google.code.gson:gson:2.8.6'
|
|
||||||
implementation 'com.google.android.gms:play-services-oss-licenses:17.0.0'
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,6 @@ import androidx.fragment.app.FragmentManager;
|
||||||
import androidx.fragment.app.FragmentPagerAdapter;
|
import androidx.fragment.app.FragmentPagerAdapter;
|
||||||
import androidx.viewpager.widget.ViewPager;
|
import androidx.viewpager.widget.ViewPager;
|
||||||
|
|
||||||
import com.annimon.stream.Stream;
|
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
|
||||||
import com.google.android.material.tabs.TabLayout;
|
import com.google.android.material.tabs.TabLayout;
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
|
|
@ -27,7 +26,6 @@ import org.meowcat.edxposed.manager.util.json.JSONUtils;
|
||||||
import org.meowcat.edxposed.manager.util.json.XposedTab;
|
import org.meowcat.edxposed.manager.util.json.XposedTab;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
public class EdDownloadActivity extends BaseActivity {
|
public class EdDownloadActivity extends BaseActivity {
|
||||||
|
|
||||||
|
|
@ -103,13 +101,12 @@ public class EdDownloadActivity extends BaseActivity {
|
||||||
try {
|
try {
|
||||||
final JSONUtils.XposedJson xposedJson = new Gson().fromJson(result, JSONUtils.XposedJson.class);
|
final JSONUtils.XposedJson xposedJson = new Gson().fromJson(result, JSONUtils.XposedJson.class);
|
||||||
|
|
||||||
List<XposedTab> tabs = Stream.of(xposedJson.tabs)
|
for (XposedTab tab : xposedJson.tabs) {
|
||||||
.filter(value -> value.sdks.contains(Build.VERSION.SDK_INT)).toList();
|
if (tab.sdks.contains(Build.VERSION.SDK_INT)) {
|
||||||
|
|
||||||
for (XposedTab tab : tabs) {
|
|
||||||
tabsAdapter.addFragment(tab.name, BaseAdvancedInstaller.newInstance(tab));
|
tabsAdapter.addFragment(tab.name, BaseAdvancedInstaller.newInstance(tab));
|
||||||
tabsAdapter.notifyDataSetChanged();
|
tabsAdapter.notifyDataSetChanged();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
String newApkVersion = xposedJson.apk.version;
|
String newApkVersion = xposedJson.apk.version;
|
||||||
String newApkLink = xposedJson.apk.link;
|
String newApkLink = xposedJson.apk.link;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue