forked from yeriomin/YalpStore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Android.mk
36 lines (29 loc) · 1.26 KB
/
Android.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := privapp-permissions-YalpStore.xml
LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/permissions
LOCAL_SRC_FILES := $(LOCAL_PATH)/yalp-store-ota-zip/$(LOCAL_MODULE)
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := YalpStore
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := YalpStore
yalpstore_root := $(LOCAL_PATH)
yalpstore_dir := app
yalpstore_out := $(OUT_DIR)/target/common/obj/APPS/$(LOCAL_MODULE)_intermediates
yalpstore_build := $(yalpstore_root)/$(yalpstore)/build
yalpstore_apk := build/outputs/apk/release/app-release-unsigned.apk
$(yalpstore_root)/$(yalpstore_dir)/$(yalpstore_apk):
rm -Rf $(yalpstore_build)
mkdir -p $(yalpstore_out)
ln -s $(yalpstore_out) $(yalpstore_build)
echo "sdk.dir=$(ANDROID_HOME)" > $(yalpstore_root)/local.properties
cd $(yalpstore_root) && git submodule update --recursive --init
cd $(yalpstore_root)/$(yalpstore_dir) && JAVA_TOOL_OPTIONS="$(JAVA_TOOL_OPTIONS) -Dfile.encoding=UTF8" ../gradlew assembleLegacyRelease
LOCAL_CERTIFICATE := platform
LOCAL_SRC_FILES := $(yalpstore_dir)/$(yalpstore_apk)
LOCAL_MODULE_CLASS := APPS
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
include $(BUILD_PREBUILT)