Skip to content

Commit

Permalink
Bump version to 2.3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
zjn0505 committed Jan 7, 2019
1 parent ce5c77f commit 8f16e46
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
15 changes: 7 additions & 8 deletions xkcd/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ apply plugin: 'com.android.application'
apply plugin: 'io.fabric'

andResGuard {
mappingFile = null
mappingFile = file("./resource_mapping.txt")
useSign = true
keepRoot = false

whiteList = [
// for icon
"R.ic_launcher.png",
"R.ic_launcher_round.png",
"R.mipmap.ic_launcher",
"R.mipmap.ic_launcher_round",
// for fabric
"R.string.com.crashlytics.*",
// for google-services
Expand All @@ -25,8 +25,7 @@ andResGuard {

"R.string.arrow_1",
"R.string.arrow_10",
"R.string.arrow_30",
"R.font.xkcd_script"
"R.string.arrow_30"
]
compressFilePattern = [
"*.png",
Expand All @@ -48,8 +47,8 @@ android {
applicationId "xyz.jienan.xkcd"
minSdkVersion 16
targetSdkVersion 28
versionCode 28
versionName "2.3.5"
versionCode 29
versionName "2.3.6"
vectorDrawables.useSupportLibrary = true
resConfigs "zh-rCN"
}
Expand Down Expand Up @@ -83,7 +82,7 @@ android {
minifyEnabled true
zipAlignEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.releaseConfig
}
}
Expand Down
4 changes: 3 additions & 1 deletion xkcd/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,6 @@
-dontwarn javax.annotation.**
-dontwarn org.conscrypt.**
# A resource is loaded with a relative path so the package of this class must be preserved.
-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase
-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase

-optimizations !method/removal/parameter
3 changes: 3 additions & 0 deletions xkcd/resource_mapping.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
res path mapping:
res/font -> res/font
res/font-v22 -> res/font-v22
6 changes: 5 additions & 1 deletion xkcd/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="xyz.jienan.xkcd">

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Expand All @@ -12,7 +13,10 @@
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppNoBarFontTheme">
android:extractNativeLibs="true"
tools:replace="android:extractNativeLibs"
android:theme="@style/AppNoBarFontTheme"
tools:ignore="AllowBackup,GoogleAppIndexingWarning,UnusedAttribute">
<activity
android:name="xyz.jienan.xkcd.home.MainActivity"
android:configChanges="screenSize|keyboardHidden"
Expand Down

0 comments on commit 8f16e46

Please sign in to comment.