This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android { | |
applicationVariants.all { variant -> | |
variant.outputs.each { output -> | |
if (variant.getBuildType().isMinifyEnabled()) { | |
variant.assemble.doLast{ | |
copy { | |
from variant.mappingFile | |
into "${projectDir}/mappings" | |
rename { String fileName -> | |
"mapping-${variant.name}.txt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
project.afterEvaluate { | |
def isAndroidLibraryProject = project.plugins.hasPlugin('com.android.library') | |
if(isAndroidLibraryProject) { | |
task copyDeps(type:Copy) { | |
from configurations.compile { | |
include '**/*.jar' | |
} | |
into "./build/intermediates/bundles/release/libs/" | |
} | |
bundleRelease.dependsOn copyDeps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
获取问题跟文章 | |
http://v3.wufazhuce.com:8000/api/reading/index/ | |
然后根据essay跟question id进去到不同的详细 | |
http://v3.wufazhuce.com:8000/api/question/1282 | |
http://v3.wufazhuce.com:8000/api/essay/1339 | |
获取首页 | |
http://v3.wufazhuce.com:8000/api/hp/idlist/0 | |
然后通过http://v3.wufazhuce.com:8000/api/hp/detail/1275 进入 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply from: 'deps.gradle' | |
// ... | |
dependencies { | |
compile supportLibs | |
compile rxJavaLibs | |
compile retrofitLibs | |
compile okHttpLibs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BlockDetect { | |
// BlockDetectByPrinter | |
public static void start() { | |
Looper.getMainLooper().setMessageLogging(new Printer() { | |
private static final String START = ">>>>> Dispatching"; | |
private static final String END = "<<<<< Finished"; | |
@Override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class EventLiveData extends LiveData<Object> { | |
private final int mSubject; | |
private final LifecycleRegistryOwner mLifecycle; | |
public EventLiveData(@LiveDataBus.Subject int subject, @NonNull LifecycleRegistryOwner lifecycle) { | |
mSubject = subject; | |
mLifecycle = lifecycle; | |
} |
OlderNewer