Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 12951921 authored by Marvin W.'s avatar Marvin W. 🐿️
Browse files

Update Android.mk and show unsupported warning

parent 787efa1d
Loading
Loading
Loading
Loading
+20 −5
Original line number Diff line number Diff line
@@ -18,22 +18,22 @@ include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
unified_dir := ../UnifiedNlp
appcompat_dir := ../../../prebuilts/sdk/current/support/v7/appcompat
res_dir := res $(unified_dir)/res $(appcompat_dir)/res
res_dir := play-services-core/src/main/res $(unified_dir)/unifiednlp-base/src/main/res $(appcompat_dir)/res

LOCAL_SRC_FILES := $(call all-java-files-under, play-services-core/src/main/java) \
                   $(call all-java-files-under, play-services-core/src/main/protos-java) \
                   $(call all-java-files-under, $(unified_dir)/src) \
                   $(call all-java-files-under, $(unified_dir)/unifiednlp-base/src/main/java)

LOCAL_MANIFEST_FILE := play-services-core/src/main/AndroidManifest.xml
LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dir))

LOCAL_AAPT_FLAGS := --auto-add-overlay \
                    --extra-packages android.support.v7.appcompat \
                    --extra-packages org.microg.nlp \
                    --extra-packages org.microg.nlp

# For some reason framework has to be added here else GeocoderParams is not found, 
# this way everything else is duplicated, but atleast compiles...
LOCAL_JAVA_LIBRARIES := com.google.android.maps \
                        framework \
LOCAL_JAVA_LIBRARIES := framework \
                        com.android.location.provider

# Include compat v9 files if necassary
@@ -42,8 +42,11 @@ LOCAL_JAVA_LIBRARIES += UnifiedNlpCompatV9
endif

LOCAL_STATIC_JAVA_LIBRARIES := UnifiedNlpApi \
                               GmsApi \
                               android-support-v4 \
                               android-support-v7-appcompat \
                               wire-runtime \
                               vtm vtm-themes vtm-extras vtm-android

LOCAL_PACKAGE_NAME := GmsCore
LOCAL_SDK_VERSION := current
@@ -52,3 +55,15 @@ LOCAL_PRIVILEGED_MODULE := true
LOCAL_PROGUARD_FLAG_FILES := proguard.flags

include $(BUILD_PACKAGE)

include $(CLEAR_VARS)

LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \
   vtm:libs/vtm-0.6.0-SNAPSHOT.jar \
   vtm-extras:libs/vtm-extras-0.6.0-SNAPSHOT.jar \
   vtm-themes:libs/vtm-themes-0.6.0-SNAPSHOT.jar \
   vtm-android:libs/vtm-android-0.6.0-SNAPSHOT.aar

include $(BUILD_MULTI_PREBUILT)

$(warning Building GmsCore using Android.mk is not tested and might be broken. Consider compiling with gradle and using the prebuilt module feature of AOSP build system)
+1 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@
    android:versionCode="6772000">

    <uses-sdk
        android:minSdkVersion="16"
        android:minSdkVersion="10"
        android:targetSdkVersion="21" />

    <permission android:name="com.google.android.c2dm.permission.RECEIVE" />