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