Home | History | Annotate | Download | only in SplitApp
      1 #
      2 # Copyright (C) 2014 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 LOCAL_PATH := $(call my-dir)
     18 
     19 include $(CLEAR_VARS)
     20 
     21 LOCAL_MODULE_TAGS := tests
     22 LOCAL_SDK_VERSION := current
     23 LOCAL_STATIC_JAVA_LIBRARIES := android-support-test
     24 
     25 LOCAL_SRC_FILES := $(call all-java-files-under, src)
     26 
     27 LOCAL_PACKAGE_NAME := CtsSplitApp
     28 LOCAL_PACKAGE_SPLITS := mdpi-v4 hdpi-v4 xhdpi-v4 xxhdpi-v4 v7 fr de
     29 
     30 # Tag this module as a cts test artifact
     31 LOCAL_COMPATIBILITY_SUITE := cts
     32 
     33 LOCAL_ASSET_DIR := $(LOCAL_PATH)/assets
     34 
     35 LOCAL_CERTIFICATE := cts/hostsidetests/appsecurity/certs/cts-testkey1
     36 LOCAL_AAPT_FLAGS := --version-code 100 --version-name OneHundred --replace-version
     37 
     38 LOCAL_PROGUARD_ENABLED := disabled
     39 LOCAL_DEX_PREOPT := false
     40 
     41 include $(BUILD_CTS_SUPPORT_PACKAGE)
     42 
     43 
     44 #################################################
     45 # Define a variant with a different revision code
     46 
     47 include $(CLEAR_VARS)
     48 
     49 LOCAL_MODULE_TAGS := tests
     50 LOCAL_SDK_VERSION := current
     51 LOCAL_STATIC_JAVA_LIBRARIES := android-support-test
     52 
     53 LOCAL_SRC_FILES := $(call all-java-files-under, src)
     54 
     55 LOCAL_PACKAGE_NAME := CtsSplitAppDiffRevision
     56 LOCAL_PACKAGE_SPLITS := v7
     57 
     58 # Tag this module as a cts test artifact
     59 LOCAL_COMPATIBILITY_SUITE := cts
     60 
     61 LOCAL_MANIFEST_FILE := revision/AndroidManifest.xml
     62 LOCAL_CERTIFICATE := cts/hostsidetests/appsecurity/certs/cts-testkey1
     63 LOCAL_AAPT_FLAGS := --version-code 100 --version-name OneHundredRevisionTwelve --replace-version
     64 
     65 LOCAL_PROGUARD_ENABLED := disabled
     66 LOCAL_DEX_PREOPT := false
     67 
     68 include $(BUILD_CTS_SUPPORT_PACKAGE)
     69 
     70 
     71 ################################################
     72 # Define a variant with a different version code
     73 
     74 include $(CLEAR_VARS)
     75 
     76 LOCAL_MODULE_TAGS := tests
     77 LOCAL_SDK_VERSION := current
     78 LOCAL_STATIC_JAVA_LIBRARIES := android-support-test
     79 
     80 LOCAL_SRC_FILES := $(call all-java-files-under, src)
     81 
     82 LOCAL_PACKAGE_NAME := CtsSplitAppDiffVersion
     83 LOCAL_PACKAGE_SPLITS := v7
     84 
     85 # Tag this module as a cts test artifact
     86 LOCAL_COMPATIBILITY_SUITE := cts
     87 
     88 LOCAL_CERTIFICATE := cts/hostsidetests/appsecurity/certs/cts-testkey1
     89 LOCAL_AAPT_FLAGS := --version-code 101 --version-name OneHundredOne --replace-version
     90 
     91 LOCAL_PROGUARD_ENABLED := disabled
     92 LOCAL_DEX_PREOPT := false
     93 
     94 include $(BUILD_CTS_SUPPORT_PACKAGE)
     95 
     96 
     97 ################################################
     98 # Define a variant with a different signature
     99 
    100 include $(CLEAR_VARS)
    101 
    102 LOCAL_MODULE_TAGS := tests
    103 LOCAL_SDK_VERSION := current
    104 LOCAL_STATIC_JAVA_LIBRARIES := android-support-test
    105 
    106 LOCAL_SRC_FILES := $(call all-java-files-under, src)
    107 
    108 LOCAL_PACKAGE_NAME := CtsSplitAppDiffCert
    109 LOCAL_PACKAGE_SPLITS := v7
    110 
    111 # Tag this module as a cts test artifact
    112 LOCAL_COMPATIBILITY_SUITE := cts
    113 
    114 LOCAL_CERTIFICATE := cts/hostsidetests/appsecurity/certs/cts-testkey2
    115 LOCAL_AAPT_FLAGS := --version-code 100 --version-name OneHundred --replace-version
    116 
    117 LOCAL_PROGUARD_ENABLED := disabled
    118 LOCAL_DEX_PREOPT := false
    119 
    120 include $(BUILD_CTS_SUPPORT_PACKAGE)
    121 
    122 
    123 ifeq (,$(ONE_SHOT_MAKEFILE))
    124 include $(LOCAL_PATH)/libs/Android.mk $(LOCAL_PATH)/feature/Android.mk
    125 endif
    126