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 LOCAL_ASSET_DIR := $(LOCAL_PATH)/assets
     31 
     32 LOCAL_CERTIFICATE := cts/hostsidetests/appsecurity/certs/cts-testkey1
     33 LOCAL_AAPT_FLAGS := --version-code 100 --version-name OneHundred --replace-version -c mdpi -c hdpi -c xhdpi -c xxhdpi
     34 
     35 LOCAL_PROGUARD_ENABLED := disabled
     36 LOCAL_DEX_PREOPT := false
     37 
     38 include $(BUILD_PACKAGE)
     39 
     40 
     41 ################################################
     42 # Define a variant with a different version code
     43 
     44 include $(CLEAR_VARS)
     45 
     46 LOCAL_MODULE_TAGS := tests
     47 LOCAL_SDK_VERSION := current
     48 LOCAL_STATIC_JAVA_LIBRARIES := android-support-test
     49 
     50 LOCAL_SRC_FILES := $(call all-java-files-under, src)
     51 
     52 LOCAL_PACKAGE_NAME := CtsSplitAppDiffVersion
     53 LOCAL_PACKAGE_SPLITS := v7
     54 
     55 LOCAL_CERTIFICATE := cts/hostsidetests/appsecurity/certs/cts-testkey1
     56 LOCAL_AAPT_FLAGS := --version-code 101 --version-name OneHundredOne --replace-version -c mdpi -c hdpi -c xhdpi -c xxhdpi
     57 
     58 LOCAL_PROGUARD_ENABLED := disabled
     59 LOCAL_DEX_PREOPT := false
     60 
     61 include $(BUILD_PACKAGE)
     62 
     63 
     64 ################################################
     65 # Define a variant with a different signature
     66 
     67 include $(CLEAR_VARS)
     68 
     69 LOCAL_MODULE_TAGS := tests
     70 LOCAL_SDK_VERSION := current
     71 LOCAL_STATIC_JAVA_LIBRARIES := android-support-test
     72 
     73 LOCAL_SRC_FILES := $(call all-java-files-under, src)
     74 
     75 LOCAL_PACKAGE_NAME := CtsSplitAppDiffCert
     76 LOCAL_PACKAGE_SPLITS := v7
     77 
     78 LOCAL_CERTIFICATE := cts/hostsidetests/appsecurity/certs/cts-testkey2
     79 LOCAL_AAPT_FLAGS := --version-code 100 --version-name OneHundred --replace-version -c mdpi -c hdpi -c xhdpi -c xxhdpi
     80 
     81 LOCAL_PROGUARD_ENABLED := disabled
     82 LOCAL_DEX_PREOPT := false
     83 
     84 include $(BUILD_PACKAGE)
     85 
     86 
     87 ifeq (,$(ONE_SHOT_MAKEFILE))
     88 include $(LOCAL_PATH)/libs/Android.mk $(LOCAL_PATH)/feature/Android.mk
     89 endif
     90