Last active
March 25, 2020 06:20
-
-
Save nimula/d06a3fb5012f582047b1052473cb4635 to your computer and use it in GitHub Desktop.
Android.mk for android studio project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOCAL_PATH:= $(call my-dir) | |
include $(CLEAR_VARS) | |
my_package_name := Demo | |
LOCAL_MODULE_TAGS := optional | |
LOCAL_SRC_FILES := $(call all-java-files-under, app/src/main/java) | |
LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/app/src/main/res | |
LOCAL_RESOURCE_DIR += prebuilts/sdk/current/support/compat/res/ | |
LOCAL_MANIFEST_FILE := app/src/main/AndroidManifest.xml | |
LOCAL_STATIC_ANDROID_LIBRARIES := androidx.appcompat_appcompat | |
LOCAL_STATIC_ANDROID_LIBRARIES += com.google.android.material_material | |
LOCAL_STATIC_ANDROID_LIBRARIES += androidx-constraintlayout_constraintlayout | |
LOCAL_AAPT_FLAGS := --auto-add-overlay | |
LOCAL_AAPT_FLAGS += --extra-packages androidx.appcompat | |
LOCAL_AAPT_FLAGS += --extra-packages com.google.android.material | |
LOCAL_AAPT_FLAGS += --extra-packages com.jaiselrahman.filepicker | |
LOCAL_STATIC_JAVA_AAR_LIBRARIES := $(my_package_name)-file-picker | |
LOCAL_USE_AAPT2 := true | |
LOCAL_PRIVATE_PLATFORM_APIS := true | |
LOCAL_PACKAGE_NAME := $(my_package_name) | |
LOCAL_CERTIFICATE := platform | |
LOCAL_PROGUARD_ENABLED := disabled | |
# LOCAL_DEX_PREOPT := false | |
LOCAL_MODULE_PATH := $(PRODUCT_OUT)/system/app | |
include $(BUILD_PACKAGE) | |
# Build aar/jar libs ########################################################### | |
include $(CLEAR_VARS) | |
LOCAL_MODULE_CLASS := JAVA_LIBRARIES | |
LOCAL_MODULE := $(my_package_name)-file-picker | |
LOCAL_SRC_FILES := app/libs/FilePicker-1.3.2.aar | |
LOCAL_STATIC_ANDROID_LIBRARIES := \ | |
androidx.appcompat_appcompat \ | |
androidx-constraintlayout_constraintlayout | |
# LOCAL_PRIVATE_PLATFORM_APIS := true | |
LOCAL_UNINSTALLABLE_MODULE := true | |
ifeq ($(filter $(modules-get-list),$(LOCAL_MODULE)),) | |
include $(BUILD_PREBUILT) | |
endif | |
# include $(call all-makefiles-under, $(LOCAL_PATH)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment