Add build bat
This commit is contained in:
parent
c9c5acf060
commit
d583b36fa2
|
|
@ -1,21 +1,25 @@
|
|||
# Add project specific ProGuard rules here.
|
||||
# You can control the set of applied configuration files using the
|
||||
# proguardFiles setting in build.gradle.
|
||||
#
|
||||
# For more details, see
|
||||
# http://developer.android.com/guide/developing/tools/proguard.html
|
||||
# Merge
|
||||
-flattenpackagehierarchy com.github.catvod.spider.merge
|
||||
-repackageclasses com.github.catvod.spider.merge
|
||||
|
||||
# If your project uses WebView with JS, uncomment the following
|
||||
# and specify the fully qualified class name to the JavaScript interface
|
||||
# class:
|
||||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
||||
# public *;
|
||||
#}
|
||||
# Spider
|
||||
-keep class com.github.catvod.crawler.* { *; }
|
||||
-keep class com.github.catvod.spider.* { public <methods>; }
|
||||
-keep class com.github.catvod.parser.* { public <methods>; }
|
||||
|
||||
# Uncomment this to preserve the line number information for
|
||||
# debugging stack traces.
|
||||
#-keepattributes SourceFile,LineNumberTable
|
||||
# Gson
|
||||
-keepattributes Signature
|
||||
-keepattributes *Annotation*
|
||||
-dontwarn sun.misc.**
|
||||
-keep class com.google.gson.examples.android.model.** { <fields>; }
|
||||
-keep class * extends com.google.gson.TypeAdapter
|
||||
-keep class * implements com.google.gson.TypeAdapterFactory
|
||||
-keep class * implements com.google.gson.JsonSerializer
|
||||
-keep class * implements com.google.gson.JsonDeserializer
|
||||
-keepclassmembers,allowobfuscation class * { @com.google.gson.annotations.SerializedName <fields>; }
|
||||
-keep,allowobfuscation,allowshrinking class com.google.gson.reflect.TypeToken
|
||||
-keep,allowobfuscation,allowshrinking class * extends com.google.gson.reflect.TypeToken
|
||||
|
||||
# If you keep the line number information, uncomment this to
|
||||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
||||
# OkHttp
|
||||
-dontwarn okhttp3.**
|
||||
-keep class okhttp3.** { *; }
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
@echo off
|
||||
|
||||
call "%~dp0\gradlew" assembleRelease --no-daemon
|
||||
|
||||
call "%~dp0\jar\genJar.bat" %1
|
||||
|
||||
pause
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -0,0 +1 @@
|
|||
e79ee1c89df18b03332b1f342ca44d2f
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
@echo off
|
||||
|
||||
del "%~dp0\custom_spider.jar"
|
||||
rd /s/q "%~dp0\Smali_classes"
|
||||
|
||||
java -jar "%~dp0\3rd\baksmali-2.5.2.jar" d "%~dp0\..\app\build\intermediates\dex\release\minifyReleaseWithR8\classes.dex" -o "%~dp0\Smali_classes"
|
||||
|
||||
rd /s/q "%~dp0\spider.jar\smali\com\github\catvod\spider"
|
||||
rd /s/q "%~dp0\spider.jar\smali\com\github\catvod\parser"
|
||||
|
||||
if not exist "%~dp0\spider.jar\smali\com\github\catvod\" md "%~dp0\spider.jar\smali\com\github\catvod\"
|
||||
|
||||
if "%1" == "ec" (
|
||||
java -Dfile.encoding=utf-8 -jar "%~dp0\3rd\oss.jar" "%~dp0\Smali_classes"
|
||||
)
|
||||
|
||||
move "%~dp0\Smali_classes\com\github\catvod\spider" "%~dp0\spider.jar\smali\com\github\catvod\"
|
||||
move "%~dp0\Smali_classes\com\github\catvod\parser" "%~dp0\spider.jar\smali\com\github\catvod\"
|
||||
|
||||
rd /s/q "%~dp0\Smali_classes"
|
||||
|
||||
java -jar "%~dp0\3rd\apktool_2.4.1.jar" b "%~dp0\spider.jar" -c
|
||||
|
||||
move "%~dp0\spider.jar\dist\dex.jar" "%~dp0\custom_spider.jar"
|
||||
|
||||
certUtil -hashfile "%~dp0\custom_spider.jar" MD5 | find /i /v "md5" | find /i /v "certutil" > "%~dp0\custom_spider.jar.md5"
|
||||
|
||||
rd /s/q "%~dp0\spider.jar\smali\com\github\catvod\spider"
|
||||
rd /s/q "%~dp0\spider.jar\smali\com\github\catvod\parser"
|
||||
|
||||
rd /s/q "%~dp0\spider.jar\build"
|
||||
rd /s/q "%~dp0\spider.jar\dist"
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
!!brut.androlib.meta.MetaInfo
|
||||
apkFileName: dex.jar
|
||||
compressionType: false
|
||||
doNotCompress: null
|
||||
isFrameworkApk: false
|
||||
packageInfo: null
|
||||
sdkInfo: null
|
||||
sharedLibrary: false
|
||||
sparseResources: false
|
||||
unknownFiles:
|
||||
usesFramework: null
|
||||
version: 2.4.1_0303
|
||||
versionInfo: null
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
Manifest-Version: 1.0
|
||||
Dex-Location: classes.dex
|
||||
Created-By: dx 1.11
|
||||
|
||||
Loading…
Reference in New Issue