Add v13 to the compatibility package.
Also remove ApiDemos from the package and instead add each library-specific sample app to each v## folder. Change-Id: I2932bbb91c7122c122973902d1fcd159ca899381
This commit is contained in:
@@ -75,3 +75,13 @@ $(android-support-v4_full_target): $(android-support-v4_build_module)
|
||||
$(hide)$(ACP) $< $@
|
||||
|
||||
ALL_SDK_FILES += $(android-support-v4_full_target)
|
||||
|
||||
android-support-v13_build_module := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android-support-v13_intermediates/javalib.jar
|
||||
android-support-v13_intermediates := $(TARGET_OUT_COMMON_INTERMEDIATES)/PACKAGING/android-support-v13_intermediates
|
||||
android-support-v13_full_target := $(android-support-v13_intermediates)/android-support-v13.jar
|
||||
$(android-support-v13_full_target): $(android-support-v13_build_module)
|
||||
@echo Package android-support-v13.jar: $@
|
||||
$(hide)mkdir -p $(dir $@)
|
||||
$(hide)$(ACP) $< $@
|
||||
|
||||
ALL_SDK_FILES += $(android-support-v13_full_target)
|
||||
|
||||
@@ -154,7 +154,6 @@ development/samples/source.properties samples/${PLATFORM_NAME}/source.pro
|
||||
development/samples/AccessibilityService samples/${PLATFORM_NAME}/AccessibilityService
|
||||
development/samples/AccelerometerPlay samples/${PLATFORM_NAME}/AccelerometerPlay
|
||||
development/samples/ApiDemos samples/${PLATFORM_NAME}/ApiDemos
|
||||
${OUT_DIR}/target/common/obj/PACKAGING/android-support-v4_intermediates/android-support-v4.jar samples/${PLATFORM_NAME}/ApiDemos/libs/android-support-v4.jar
|
||||
development/samples/BackupRestore samples/${PLATFORM_NAME}/BackupRestore
|
||||
development/samples/BasicGLSurfaceView samples/${PLATFORM_NAME}/BasicGLSurfaceView
|
||||
development/samples/BluetoothChat samples/${PLATFORM_NAME}/BluetoothChat
|
||||
@@ -210,4 +209,7 @@ development/sdk/compatibility_README.txt
|
||||
sdk/files/sdk_files_NOTICE.txt extras/android/compatibility/NOTICE.txt
|
||||
${OUT_DIR}/target/common/obj/PACKAGING/android-support-v4_intermediates/android-support-v4.jar extras/android/compatibility/v4/android-support-v4.jar
|
||||
frameworks/support/v4 extras/android/compatibility/v4/src
|
||||
development/samples/ApiDemos extras/android/compatibility/v4/samples/ApiDemos
|
||||
development/samples/Support4Demos extras/android/compatibility/v4/samples/Support4Demos
|
||||
${OUT_DIR}/target/common/obj/PACKAGING/android-support-v13_intermediates/android-support-v13.jar extras/android/compatibility/v13/android-support-v13.jar
|
||||
frameworks/support/v13 extras/android/compatibility/v13/src
|
||||
development/samples/Support13Demos extras/android/compatibility/v13/samples/Support13Demos
|
||||
|
||||
@@ -4,7 +4,10 @@ This SDK component contains static libraries providing access to newer APIs
|
||||
on older platforms. To use those libraries, simply copy them as static libraries
|
||||
into your project.
|
||||
|
||||
"v4" provides support for using new APIs on Android API 4 (1.6 - Donut) and above.
|
||||
Each library is called v<api>, indicating the minimum API level that they require.
|
||||
|
||||
|
||||
*** V4 ***
|
||||
|
||||
v4/android-support-v4.jar contains:
|
||||
- Fragment API. New in API 11 (3.0 - Honeycomb). http://developer.android.com/reference/android/app/Fragment.html
|
||||
@@ -13,4 +16,13 @@ v4/android-support-v4.jar contains:
|
||||
- MenuCompat allows calling MenuItem.setShowAsAction which only exists on API 11.
|
||||
|
||||
v4/src/ is the source code for the compatibility library
|
||||
v4/samples/ provides a version of ApiDemos using the library.
|
||||
v4/samples/ provides a sample app using the library.
|
||||
|
||||
|
||||
*** V13 ***
|
||||
|
||||
Provides the same features as v4, plus:
|
||||
- FragmentPagerAdapter: Implementation of PagerAdapter that represents each page as a Fragment.
|
||||
|
||||
v13/src/ is the source code for the compatibility library, not including the v4 source
|
||||
v13/samples/ provides a sample app using the library.
|
||||
|
||||
Reference in New Issue
Block a user