From f592a58744018bea778a4938b225eb65fc5a6216 Mon Sep 17 00:00:00 2001 From: Rich Slogar Date: Fri, 7 Nov 2014 15:56:21 -0800 Subject: docs support library updates [CP] Change-Id: Ic8c5c4e176618c245211e59000dd72c2af6b1e79 (cherry picked from commit aae10bae71e8709e1b903ae57b89d956b57c9fd6) --- docs/html/tools/support-library/features.jd | 31 ++++++++++++++++++++--------- docs/html/tools/support-library/setup.jd | 26 ++++++++++++++++++++++-- 2 files changed, 46 insertions(+), 11 deletions(-) diff --git a/docs/html/tools/support-library/features.jd b/docs/html/tools/support-library/features.jd index 3ebfc8989fc8..079dd718c1f4 100644 --- a/docs/html/tools/support-library/features.jd +++ b/docs/html/tools/support-library/features.jd @@ -137,13 +137,16 @@ page.title=Support Library Features Adding libraries without resources.

+

Caution: Using dynamic dependencies, especially for higher version +numbers, can cause unexpected version updates and regression incompatibilities.

+

The Gradle build script dependency identifier for this library is as follows:

 com.android.support:support-v4:21.0.+
 
-

This dependency notation specifies the release version 21.0.0 or higher.

+

This dependency notation specifies the latest release version with the 21.0 prefix.

Multidex Support Library

@@ -171,7 +174,7 @@ com.android.support:support-v4:21.0.+ com.android.support:multidex:1.0.+ -

This dependency notation specifies the release version 1.0.0 or higher.

+

This dependency notation specifies the latest release version with the 1.0 prefix.

v7 Support Libraries

@@ -226,7 +229,8 @@ com.android.support:multidex:1.0.+ com.android.support:appcompat-v7:21.0.+ -

This dependency notation specifies the release version 21.0.0 or higher.

+

This dependency notation specifies the latest release version with the 21.0 prefix.

+

v7 cardview library

@@ -248,7 +252,8 @@ libraries with resources.

com.android.support:cardview-v7:21.0.+ -

This dependency notation specifies the release version 21.0.0 or higher.

+

This dependency notation specifies the latest release version with the 21.0 prefix.

+

v7 gridlayout library

@@ -269,7 +274,7 @@ com.android.support:cardview-v7:21.0.+ com.android.support:gridlayout-v7:21.0.+ -

This dependency notation specifies the release version 21.0.0 or higher.

+

This dependency notation specifies the latest release version with the 21.0 prefix.

v7 mediarouter library

@@ -333,7 +338,9 @@ title card.

com.android.support:palette-v7:21.0.+ -

This dependency notation specifies the release version 21.0.0 or higher.

+

This dependency notation specifies the latest release version with the 21.0 prefix.

+ +

v7 recyclerview library

@@ -356,7 +363,9 @@ libraries with resources.

com.android.support:recyclerview-v7:21.0.+ -

This dependency notation specifies the release version 21.0.0 or higher.

+

This dependency notation specifies the latest release version with the 21.0 prefix.

+ +

v8 Support Library

@@ -399,7 +408,9 @@ com.android.support:recyclerview-v7:21.0.+ com.android.support:support-v13:18.0.+ -

This dependency notation specifies the release version 18.0.0 or higher.

+

This dependency notation specifies the latest release version with the 18.0 prefix.

+ +

v17 Leanback Library

@@ -440,4 +451,6 @@ with resources.

com.android.support:leanback-v17:21.0.+ -

This dependency notation specifies the release version 21.0.0 or higher.

+

This dependency notation specifies the latest release version with the 21.0 prefix.

+ + diff --git a/docs/html/tools/support-library/setup.jd b/docs/html/tools/support-library/setup.jd index 2325a1387235..845cf76563fd 100644 --- a/docs/html/tools/support-library/setup.jd +++ b/docs/html/tools/support-library/setup.jd @@ -293,8 +293,30 @@ dependencies { android:targetSdkVersion="17" /> -

This change tells Google Play that your application can be installed on devices with Android - 2.1 (API level 7) and higher.

+

The manifest setting tells Google Play that your application can be installed on devices with Android + 2.1 (API level 7) and higher.

+ +

If you are using Gradle build files, the minSdkVersion setting in the build file + overrides the manifest settings.

+ +
+apply plugin: 'android'
+
+android {
+    ...
+
+    defaultConfig {
+        minSdkVersion 8
+        ...
+    }
+    ...
+}
+
+ +

In this case, the build file setting tells Google Play that the default build variant of your + application can be installed on devices with Android 2.2 (API level 8) and higher. For more + information about build variants, see + Build System Overview.

Note: If you are including the v4 support and v7 appcompat libraries in your -- cgit v1.2.3-59-g8ed1b