Loading Android.mk +21 −9 Original line number Diff line number Diff line # Copyright (c) 2014 μg Project Team # Copyright (c) 2014-2015 μg Project Team # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. Loading @@ -15,15 +15,27 @@ LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := FakeStore LOCAL_MODULE_TAGS := optional LOCAL_SRC_FILES := $(call all-java-files-under, fake-store/src/main/java) LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/fake-store/src/main/res LOCAL_MANIFEST_FILE := fake-store/src/main/AndroidManifest.xml LOCAL_PACKAGE_NAME := FakeStore LOCAL_SDK_VERSION := current LOCAL_PRIVILEGED_MODULE := false LOCAL_PROGUARD_FLAG_FILES := proguard.flags fakestore_root := $(LOCAL_PATH) fakestore_dir := fake-store fakestore_out := $(OUT_DIR)/target/common/obj/APPS/$(LOCAL_MODULE)_intermediates fakestore_build := $(fakestore_root)/$(fakestore_dir)/build fakestore_apk := build/outputs/apk/fake-store-release-unsigned.apk $(fakestore_root)/$(fakestore_dir)/$(fakestore_apk): rm -Rf $(fakestore_build) mkdir -p $(fakestore_out) ln -s $(fakestore_out) $(fakestore_build) echo "sdk.dir=$(ANDROID_HOME)" > $(fakestore_root)/local.properties cd $(fakestore_root) && git submodule update --recursive --init cd $(fakestore_root)/$(fakestore_dir) && JAVA_TOOL_OPTIONS="$(JAVA_TOOL_OPTIONS) -Dfile.encoding=UTF8" ../gradlew assembleRelease LOCAL_CERTIFICATE := platform LOCAL_SRC_FILES := $(fakestore_dir)/$(fakestore_apk) LOCAL_MODULE_CLASS := APPS LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX) include $(BUILD_PACKAGE) include $(BUILD_PREBUILT) Loading
Android.mk +21 −9 Original line number Diff line number Diff line # Copyright (c) 2014 μg Project Team # Copyright (c) 2014-2015 μg Project Team # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. Loading @@ -15,15 +15,27 @@ LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := FakeStore LOCAL_MODULE_TAGS := optional LOCAL_SRC_FILES := $(call all-java-files-under, fake-store/src/main/java) LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/fake-store/src/main/res LOCAL_MANIFEST_FILE := fake-store/src/main/AndroidManifest.xml LOCAL_PACKAGE_NAME := FakeStore LOCAL_SDK_VERSION := current LOCAL_PRIVILEGED_MODULE := false LOCAL_PROGUARD_FLAG_FILES := proguard.flags fakestore_root := $(LOCAL_PATH) fakestore_dir := fake-store fakestore_out := $(OUT_DIR)/target/common/obj/APPS/$(LOCAL_MODULE)_intermediates fakestore_build := $(fakestore_root)/$(fakestore_dir)/build fakestore_apk := build/outputs/apk/fake-store-release-unsigned.apk $(fakestore_root)/$(fakestore_dir)/$(fakestore_apk): rm -Rf $(fakestore_build) mkdir -p $(fakestore_out) ln -s $(fakestore_out) $(fakestore_build) echo "sdk.dir=$(ANDROID_HOME)" > $(fakestore_root)/local.properties cd $(fakestore_root) && git submodule update --recursive --init cd $(fakestore_root)/$(fakestore_dir) && JAVA_TOOL_OPTIONS="$(JAVA_TOOL_OPTIONS) -Dfile.encoding=UTF8" ../gradlew assembleRelease LOCAL_CERTIFICATE := platform LOCAL_SRC_FILES := $(fakestore_dir)/$(fakestore_apk) LOCAL_MODULE_CLASS := APPS LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX) include $(BUILD_PACKAGE) include $(BUILD_PREBUILT)