From 091070c74de64dacd7a098492f2a8793da918a61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Mare=C5=A1?= Date: Fri, 5 Jan 2018 00:14:49 +0100 Subject: [PATCH 1/3] Added Support lib version as String resource --- library/build.gradle | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/build.gradle b/library/build.gradle index 1976a6031..2487883ce 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -10,6 +10,8 @@ android { targetSdkVersion 27 versionCode 6010 versionName '6.0.1' + + resValue "string", "ext_support_lib_version", "${rootProject.ext.supportLibVersion}" } buildTypes { From 8ed545a1cb652f37a53a316784907e74e6155431 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Mare=C5=A1?= Date: Fri, 5 Jan 2018 01:05:45 +0100 Subject: [PATCH 2/3] Use version String resource in Support lib's definiton xml --- library/src/main/res/values/library_appcompat_v7_strings.xml | 2 +- library/src/main/res/values/library_recyclerview_v7_strings.xml | 2 +- .../src/main/res/values/library_support_annotations_strings.xml | 2 +- .../src/main/res/values/library_support_cardview_strings.xml | 2 +- .../src/main/res/values/library_support_gridlayout_strings.xml | 2 +- library/src/main/res/values/library_support_multidex.xml | 2 +- library/src/main/res/values/library_support_v4_strings.xml | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/library/src/main/res/values/library_appcompat_v7_strings.xml b/library/src/main/res/values/library_appcompat_v7_strings.xml index d88a62ffd..036e10892 100755 --- a/library/src/main/res/values/library_appcompat_v7_strings.xml +++ b/library/src/main/res/values/library_appcompat_v7_strings.xml @@ -9,7 +9,7 @@ Support AppCompat v7 This library adds support for the Action Bar user interface design pattern. https://developer.android.com/topic/libraries/support-library/packages.html - 23.2.1 + @string/ext_support_lib_version true diff --git a/library/src/main/res/values/library_recyclerview_v7_strings.xml b/library/src/main/res/values/library_recyclerview_v7_strings.xml index cd8e54540..347b9996a 100755 --- a/library/src/main/res/values/library_recyclerview_v7_strings.xml +++ b/library/src/main/res/values/library_recyclerview_v7_strings.xml @@ -9,7 +9,7 @@ Support RecyclerView v7 The recyclerview library adds the RecyclerView class. This class provides support for the RecyclerView widget, a view for efficiently displaying large data sets by providing a limited window of data items. https://developer.android.com/reference/android/support/v7/widget/RecyclerView.html - 23.2.1 + @string/ext_support_lib_version true diff --git a/library/src/main/res/values/library_support_annotations_strings.xml b/library/src/main/res/values/library_support_annotations_strings.xml index 41934bb02..2aecc524e 100755 --- a/library/src/main/res/values/library_support_annotations_strings.xml +++ b/library/src/main/res/values/library_support_annotations_strings.xml @@ -9,7 +9,7 @@ Support Annotations The Annotation package provides APIs to support adding annotation metadata to your apps. https://developer.android.com/reference/android/support/annotation/package-summary.html - 23.2.1 + @string/ext_support_lib_version true diff --git a/library/src/main/res/values/library_support_cardview_strings.xml b/library/src/main/res/values/library_support_cardview_strings.xml index 2ae3c497c..2a6b91968 100644 --- a/library/src/main/res/values/library_support_cardview_strings.xml +++ b/library/src/main/res/values/library_support_cardview_strings.xml @@ -9,7 +9,7 @@ CardView A FrameLayout with a rounded corner background and shadow. https://developer.android.com/reference/android/support/v7/widget/CardView.html - 23.2.1 + @string/ext_support_lib_version true diff --git a/library/src/main/res/values/library_support_gridlayout_strings.xml b/library/src/main/res/values/library_support_gridlayout_strings.xml index 2bb8e0568..0a840d447 100644 --- a/library/src/main/res/values/library_support_gridlayout_strings.xml +++ b/library/src/main/res/values/library_support_gridlayout_strings.xml @@ -9,7 +9,7 @@ GridLayout A layout that places its children in a rectangular grid. The grid is composed of a set of infinitely thin lines that separate the viewing area into cells. https://developer.android.com/reference/android/widget/GridLayout.html - 23.2.1 + @string/ext_support_lib_version true diff --git a/library/src/main/res/values/library_support_multidex.xml b/library/src/main/res/values/library_support_multidex.xml index 4b3da591f..619e0062f 100644 --- a/library/src/main/res/values/library_support_multidex.xml +++ b/library/src/main/res/values/library_support_multidex.xml @@ -9,7 +9,7 @@ MultiDex MultiDex patches the application context class loader in order to load classes from more than one dex file. https://developer.android.com/reference/android/support/multidex/MultiDex.html - 23.2.1 + @string/ext_support_lib_version true diff --git a/library/src/main/res/values/library_support_v4_strings.xml b/library/src/main/res/values/library_support_v4_strings.xml index fb6e4d991..443674df3 100755 --- a/library/src/main/res/values/library_support_v4_strings.xml +++ b/library/src/main/res/values/library_support_v4_strings.xml @@ -9,7 +9,7 @@ Support v4 This library is designed to be used with Android 1.6 (API level 4) and higher. It includes the largest set of APIs compared to the other libraries, including support for application components, user interface features, accessibility, data handling, network connectivity, and programming utilities. https://developer.android.com/tools/support-library/features.html#v4 - 23.2.1 + @string/ext_support_lib_version true From 97270fed73264b86f389544588d5f8171c96b11a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Mare=C5=A1?= Date: Fri, 5 Jan 2018 01:53:14 +0100 Subject: [PATCH 3/3] Use version String resource in Design lib's definiton xml --- library/src/main/res/values/library_design_strings.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/src/main/res/values/library_design_strings.xml b/library/src/main/res/values/library_design_strings.xml index f05d1f1a2..32e50009e 100755 --- a/library/src/main/res/values/library_design_strings.xml +++ b/library/src/main/res/values/library_design_strings.xml @@ -9,7 +9,7 @@ Support Design The Design package provides APIs to support adding material design components and patterns to your apps. The Design Support library adds support for various material design components and patterns for app developers to build upon, such as navigation drawers, floating action buttons (FAB), snackbars, and tabs. https://developer.android.com/reference/android/support/design/widget/package-summary.html - 23.2.1 + @string/ext_support_lib_version true @@ -21,3 +21,4 @@ The Android Open Source Project 2011 +