1# 2# Copyright (C) 2016 The Android Open Source Project 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15# 16 17# For testing, we build multiple apk files with different versions. 18 19LOCAL_PATH:= $(call my-dir) 20 21#============================================================================ 22# Base version (10) 23#============================================================================ 24 25include $(CLEAR_VARS) 26 27LOCAL_PACKAGE_NAME := ShortcutSample 28 29LOCAL_AAPT_FLAGS += --version-code 10 30 31LOCAL_MODULE_TAGS := samples tests 32 33LOCAL_SRC_FILES := $(call all-java-files-under, src) 34 35LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res 36 37LOCAL_STATIC_JAVA_LIBRARIES = android-support-v4 38 39LOCAL_SDK_VERSION := current 40 41include $(BUILD_PACKAGE) 42 43#============================================================================ 44# Version 11. 45#============================================================================ 46 47include $(CLEAR_VARS) 48 49LOCAL_PACKAGE_NAME := ShortcutSample11 50 51LOCAL_AAPT_FLAGS += --version-code 11 52 53LOCAL_MODULE_TAGS := samples tests 54 55LOCAL_SRC_FILES := $(call all-java-files-under, src) 56 57LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res 58 59LOCAL_STATIC_JAVA_LIBRARIES = android-support-v4 60 61LOCAL_SDK_VERSION := current 62 63include $(BUILD_PACKAGE) 64 65#============================================================================ 66# Version 12. 67#============================================================================ 68 69include $(CLEAR_VARS) 70 71LOCAL_PACKAGE_NAME := ShortcutSample12 72 73LOCAL_AAPT_FLAGS += --version-code 12 74 75LOCAL_MODULE_TAGS := samples tests 76 77LOCAL_SRC_FILES := $(call all-java-files-under, src) 78 79LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res 80 81LOCAL_STATIC_JAVA_LIBRARIES = android-support-v4 82 83LOCAL_SDK_VERSION := current 84 85include $(BUILD_PACKAGE) 86 87#============================================================================ 88# Version 11, backup disabled. 89#============================================================================ 90 91include $(CLEAR_VARS) 92 93LOCAL_PACKAGE_NAME := ShortcutSample11nb 94 95LOCAL_AAPT_FLAGS += --version-code 11 96LOCAL_MANIFEST_FILE := noback/AndroidManifest.xml 97 98LOCAL_MODULE_TAGS := samples tests 99 100LOCAL_SRC_FILES := $(call all-java-files-under, src) 101 102LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res 103 104LOCAL_STATIC_JAVA_LIBRARIES = android-support-v4 105 106LOCAL_SDK_VERSION := current 107 108include $(BUILD_PACKAGE) 109 110#============================================================================ 111# Version 12, backup disabled. 112#============================================================================ 113 114include $(CLEAR_VARS) 115 116LOCAL_PACKAGE_NAME := ShortcutSample12nb 117 118LOCAL_AAPT_FLAGS += --version-code 12 119LOCAL_MANIFEST_FILE := noback/AndroidManifest.xml 120 121LOCAL_MODULE_TAGS := samples tests 122 123LOCAL_SRC_FILES := $(call all-java-files-under, src) 124 125LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res 126 127LOCAL_STATIC_JAVA_LIBRARIES = android-support-v4 128 129LOCAL_SDK_VERSION := current 130 131include $(BUILD_PACKAGE) 132 133