From e495ef8dbd0715d9ee284aeea2b3992403d6d26c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AD=A3=E7=BA=AC?= Date: Thu, 16 Mar 2017 20:32:47 +0800 Subject: [PATCH] Fix : compatible compiler sdk 1.0.3 --- .../java/com/alibaba/android/arouter/core/LogisticsCenter.java | 2 ++ gradle.properties | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arouter-api/src/main/java/com/alibaba/android/arouter/core/LogisticsCenter.java b/arouter-api/src/main/java/com/alibaba/android/arouter/core/LogisticsCenter.java index a8ddfd69..ee84bef5 100644 --- a/arouter-api/src/main/java/com/alibaba/android/arouter/core/LogisticsCenter.java +++ b/arouter-api/src/main/java/com/alibaba/android/arouter/core/LogisticsCenter.java @@ -221,6 +221,8 @@ private static void setValue(Postcard postcard, Integer typeDef, String key, Str // TODO : How to description parcelable value with string? } else if (typeDef == TypeKind.OBJECT.ordinal()) { postcard.withString(key, value); + } else { // Compatible compiler sdk 1.0.3, in that version, the string type = 18 + postcard.withString(key, value); } } else { postcard.withString(key, value); diff --git a/gradle.properties b/gradle.properties index 62597506..d08c862c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -25,7 +25,7 @@ MIN_SDK_VERSION=12 TARGET_SDK_VERSION=25 arouter_compiler_version=1.0.4 -arouter_api_version=1.0.8 +arouter_api_version=1.0.9 arouter_annotation_version=1.0.3 bintrayRepo=maven