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_USE_AAPT2 := true 28 29LOCAL_PACKAGE_NAME := ShortcutSample 30 31LOCAL_AAPT_FLAGS += --version-code 10 32 33LOCAL_MODULE_TAGS := samples tests 34 35LOCAL_SRC_FILES := $(call all-java-files-under, src) 36 37LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res 38 39LOCAL_STATIC_ANDROID_LIBRARIES = androidx.legacy_legacy-support-v4 40 41LOCAL_SDK_VERSION := current 42 43include $(BUILD_PACKAGE) 44 45#============================================================================ 46# Version 11. 47#============================================================================ 48 49include $(CLEAR_VARS) 50 51LOCAL_USE_AAPT2 := true 52 53LOCAL_PACKAGE_NAME := ShortcutSample11 54 55LOCAL_AAPT_FLAGS += --version-code 11 56 57LOCAL_MODULE_TAGS := samples tests 58 59LOCAL_SRC_FILES := $(call all-java-files-under, src) 60 61LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res 62 63LOCAL_STATIC_ANDROID_LIBRARIES = androidx.legacy_legacy-support-v4 64 65LOCAL_SDK_VERSION := current 66 67include $(BUILD_PACKAGE) 68 69#============================================================================ 70# Version 12. 71#============================================================================ 72 73include $(CLEAR_VARS) 74 75LOCAL_USE_AAPT2 := true 76 77LOCAL_PACKAGE_NAME := ShortcutSample12 78 79LOCAL_AAPT_FLAGS += --version-code 12 80 81LOCAL_MODULE_TAGS := samples tests 82 83LOCAL_SRC_FILES := $(call all-java-files-under, src) 84 85LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res 86 87LOCAL_STATIC_ANDROID_LIBRARIES = androidx.legacy_legacy-support-v4 88 89LOCAL_SDK_VERSION := current 90 91include $(BUILD_PACKAGE) 92 93#============================================================================ 94# Version 11, backup disabled. 95#============================================================================ 96 97include $(CLEAR_VARS) 98 99LOCAL_USE_AAPT2 := true 100 101LOCAL_PACKAGE_NAME := ShortcutSample11nb 102 103LOCAL_AAPT_FLAGS += --version-code 11 104LOCAL_MANIFEST_FILE := noback/AndroidManifest.xml 105 106LOCAL_MODULE_TAGS := samples tests 107 108LOCAL_SRC_FILES := $(call all-java-files-under, src) 109 110LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res 111 112LOCAL_STATIC_ANDROID_LIBRARIES = androidx.legacy_legacy-support-v4 113 114LOCAL_SDK_VERSION := current 115 116include $(BUILD_PACKAGE) 117 118#============================================================================ 119# Version 12, backup disabled. 120#============================================================================ 121 122include $(CLEAR_VARS) 123 124LOCAL_USE_AAPT2 := true 125 126LOCAL_PACKAGE_NAME := ShortcutSample12nb 127 128LOCAL_AAPT_FLAGS += --version-code 12 129LOCAL_MANIFEST_FILE := noback/AndroidManifest.xml 130 131LOCAL_MODULE_TAGS := samples tests 132 133LOCAL_SRC_FILES := $(call all-java-files-under, src) 134 135LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res 136 137LOCAL_STATIC_ANDROID_LIBRARIES = androidx.legacy_legacy-support-v4 138 139LOCAL_SDK_VERSION := current 140 141include $(BUILD_PACKAGE) 142 143