-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<litepal> | ||
<dbname value="lanzou" /> | ||
<version value="1" /> | ||
<version value="2" /> | ||
<list> | ||
<mapping class="com.lanzou.split.data.User"/> | ||
<mapping class="com.lanzou.split.data.Download"/> | ||
<mapping class="com.lanzou.split.data.Upload"/> | ||
</list> | ||
</litepal> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package com.lanzou.split; | ||
|
||
import android.content.Context; | ||
import android.util.Log; | ||
|
||
import androidx.annotation.NonNull; | ||
|
||
import com.bumptech.glide.Glide; | ||
import com.bumptech.glide.GlideBuilder; | ||
import com.bumptech.glide.Registry; | ||
import com.bumptech.glide.annotation.GlideModule; | ||
import com.bumptech.glide.module.AppGlideModule; | ||
import com.lanzou.split.data.FileInfo; | ||
import com.lanzou.split.utils.ApkLoaderFactory; | ||
|
||
import java.io.InputStream; | ||
|
||
@GlideModule | ||
public class LanzouGlideModule extends AppGlideModule { | ||
@Override | ||
public void applyOptions(@NonNull Context context, @NonNull GlideBuilder builder) { | ||
super.applyOptions(context, builder); | ||
Log.d("jdy", "applyOptions"); | ||
} | ||
|
||
@Override | ||
public void registerComponents(@NonNull Context context, @NonNull Glide glide, @NonNull Registry registry) { | ||
// super.registerComponents(context, glide, registry); | ||
Log.d("jdy", "register"); | ||
registry.prepend(FileInfo.class, InputStream.class, new ApkLoaderFactory(context)); | ||
} | ||
|
||
@Override | ||
public boolean isManifestParsingEnabled() { | ||
return false; | ||
} | ||
} |