Makoto Onuki | 8e1f716 | 2016-07-22 15:05:37 -0700 | [diff] [blame] | 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 | |
Makoto Onuki | 8671b50 | 2017-10-05 09:13:54 -0700 | [diff] [blame] | 17 | # For testing, we build multiple apk files with different versions. |
Makoto Onuki | 8e1f716 | 2016-07-22 15:05:37 -0700 | [diff] [blame] | 18 | |
| 19 | LOCAL_PATH:= $(call my-dir) |
| 20 | |
Makoto Onuki | 8671b50 | 2017-10-05 09:13:54 -0700 | [diff] [blame] | 21 | #============================================================================ |
| 22 | # Base version (10) |
| 23 | #============================================================================ |
| 24 | |
Makoto Onuki | 8e1f716 | 2016-07-22 15:05:37 -0700 | [diff] [blame] | 25 | include $(CLEAR_VARS) |
| 26 | |
vineel sadineni | a55e551 | 2018-05-17 16:09:35 -0700 | [diff] [blame] | 27 | LOCAL_USE_AAPT2 := true |
| 28 | |
Makoto Onuki | 8e1f716 | 2016-07-22 15:05:37 -0700 | [diff] [blame] | 29 | LOCAL_PACKAGE_NAME := ShortcutSample |
| 30 | |
Makoto Onuki | 8671b50 | 2017-10-05 09:13:54 -0700 | [diff] [blame] | 31 | LOCAL_AAPT_FLAGS += --version-code 10 |
| 32 | |
Makoto Onuki | 8e1f716 | 2016-07-22 15:05:37 -0700 | [diff] [blame] | 33 | LOCAL_MODULE_TAGS := samples tests |
| 34 | |
| 35 | LOCAL_SRC_FILES := $(call all-java-files-under, src) |
| 36 | |
| 37 | LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res |
| 38 | |
vineel sadineni | a55e551 | 2018-05-17 16:09:35 -0700 | [diff] [blame] | 39 | LOCAL_STATIC_ANDROID_LIBRARIES = androidx.legacy_legacy-support-v4 |
Makoto Onuki | 8c445e5 | 2017-05-30 16:37:49 -0700 | [diff] [blame] | 40 | |
Makoto Onuki | 8e1f716 | 2016-07-22 15:05:37 -0700 | [diff] [blame] | 41 | LOCAL_SDK_VERSION := current |
| 42 | |
| 43 | include $(BUILD_PACKAGE) |
Makoto Onuki | 8671b50 | 2017-10-05 09:13:54 -0700 | [diff] [blame] | 44 | |
| 45 | #============================================================================ |
| 46 | # Version 11. |
| 47 | #============================================================================ |
| 48 | |
| 49 | include $(CLEAR_VARS) |
| 50 | |
vineel sadineni | a55e551 | 2018-05-17 16:09:35 -0700 | [diff] [blame] | 51 | LOCAL_USE_AAPT2 := true |
| 52 | |
Makoto Onuki | 8671b50 | 2017-10-05 09:13:54 -0700 | [diff] [blame] | 53 | LOCAL_PACKAGE_NAME := ShortcutSample11 |
| 54 | |
| 55 | LOCAL_AAPT_FLAGS += --version-code 11 |
| 56 | |
| 57 | LOCAL_MODULE_TAGS := samples tests |
| 58 | |
| 59 | LOCAL_SRC_FILES := $(call all-java-files-under, src) |
| 60 | |
| 61 | LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res |
| 62 | |
vineel sadineni | a55e551 | 2018-05-17 16:09:35 -0700 | [diff] [blame] | 63 | LOCAL_STATIC_ANDROID_LIBRARIES = androidx.legacy_legacy-support-v4 |
Makoto Onuki | 8671b50 | 2017-10-05 09:13:54 -0700 | [diff] [blame] | 64 | |
| 65 | LOCAL_SDK_VERSION := current |
| 66 | |
| 67 | include $(BUILD_PACKAGE) |
| 68 | |
| 69 | #============================================================================ |
| 70 | # Version 12. |
| 71 | #============================================================================ |
| 72 | |
| 73 | include $(CLEAR_VARS) |
| 74 | |
vineel sadineni | a55e551 | 2018-05-17 16:09:35 -0700 | [diff] [blame] | 75 | LOCAL_USE_AAPT2 := true |
| 76 | |
Makoto Onuki | 8671b50 | 2017-10-05 09:13:54 -0700 | [diff] [blame] | 77 | LOCAL_PACKAGE_NAME := ShortcutSample12 |
| 78 | |
| 79 | LOCAL_AAPT_FLAGS += --version-code 12 |
| 80 | |
| 81 | LOCAL_MODULE_TAGS := samples tests |
| 82 | |
| 83 | LOCAL_SRC_FILES := $(call all-java-files-under, src) |
| 84 | |
| 85 | LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res |
| 86 | |
vineel sadineni | a55e551 | 2018-05-17 16:09:35 -0700 | [diff] [blame] | 87 | LOCAL_STATIC_ANDROID_LIBRARIES = androidx.legacy_legacy-support-v4 |
Makoto Onuki | 8671b50 | 2017-10-05 09:13:54 -0700 | [diff] [blame] | 88 | |
| 89 | LOCAL_SDK_VERSION := current |
| 90 | |
| 91 | include $(BUILD_PACKAGE) |
| 92 | |
| 93 | #============================================================================ |
| 94 | # Version 11, backup disabled. |
| 95 | #============================================================================ |
| 96 | |
| 97 | include $(CLEAR_VARS) |
| 98 | |
vineel sadineni | a55e551 | 2018-05-17 16:09:35 -0700 | [diff] [blame] | 99 | LOCAL_USE_AAPT2 := true |
| 100 | |
Makoto Onuki | 8671b50 | 2017-10-05 09:13:54 -0700 | [diff] [blame] | 101 | LOCAL_PACKAGE_NAME := ShortcutSample11nb |
| 102 | |
| 103 | LOCAL_AAPT_FLAGS += --version-code 11 |
| 104 | LOCAL_MANIFEST_FILE := noback/AndroidManifest.xml |
| 105 | |
| 106 | LOCAL_MODULE_TAGS := samples tests |
| 107 | |
| 108 | LOCAL_SRC_FILES := $(call all-java-files-under, src) |
| 109 | |
| 110 | LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res |
| 111 | |
vineel sadineni | a55e551 | 2018-05-17 16:09:35 -0700 | [diff] [blame] | 112 | LOCAL_STATIC_ANDROID_LIBRARIES = androidx.legacy_legacy-support-v4 |
Makoto Onuki | 8671b50 | 2017-10-05 09:13:54 -0700 | [diff] [blame] | 113 | |
| 114 | LOCAL_SDK_VERSION := current |
| 115 | |
| 116 | include $(BUILD_PACKAGE) |
| 117 | |
| 118 | #============================================================================ |
| 119 | # Version 12, backup disabled. |
| 120 | #============================================================================ |
| 121 | |
| 122 | include $(CLEAR_VARS) |
| 123 | |
vineel sadineni | a55e551 | 2018-05-17 16:09:35 -0700 | [diff] [blame] | 124 | LOCAL_USE_AAPT2 := true |
| 125 | |
Makoto Onuki | 8671b50 | 2017-10-05 09:13:54 -0700 | [diff] [blame] | 126 | LOCAL_PACKAGE_NAME := ShortcutSample12nb |
| 127 | |
| 128 | LOCAL_AAPT_FLAGS += --version-code 12 |
| 129 | LOCAL_MANIFEST_FILE := noback/AndroidManifest.xml |
| 130 | |
| 131 | LOCAL_MODULE_TAGS := samples tests |
| 132 | |
| 133 | LOCAL_SRC_FILES := $(call all-java-files-under, src) |
| 134 | |
| 135 | LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res |
| 136 | |
vineel sadineni | a55e551 | 2018-05-17 16:09:35 -0700 | [diff] [blame] | 137 | LOCAL_STATIC_ANDROID_LIBRARIES = androidx.legacy_legacy-support-v4 |
Makoto Onuki | 8671b50 | 2017-10-05 09:13:54 -0700 | [diff] [blame] | 138 | |
| 139 | LOCAL_SDK_VERSION := current |
| 140 | |
| 141 | include $(BUILD_PACKAGE) |
| 142 | |