diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000000000000000000000000000000000000..d7439836b241cfe721bb8c1a64cfbef3bc001a69 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "nextcloud-android-lib"] + path = nextcloud-android-lib + url = https://gitlab.e.foundation/e/apps/nextcloud-android-lib diff --git a/Android.mk b/Android.mk index a72311d25b9b9e3d4968690282dc5ad57c95c293..1863d7348fc8c6268af46f3ade6373fa3a1854e4 100644 --- a/Android.mk +++ b/Android.mk @@ -37,7 +37,8 @@ LOCAL_JAVA_LIBRARIES := \ LOCAL_STATIC_JAVA_LIBRARIES := \ jsr305 \ settings-logtags \ - org.lineageos.platform.internal + org.lineageos.platform.internal \ + httpclient LOCAL_PROGUARD_FLAG_FILES := proguard.flags @@ -52,6 +53,10 @@ include frameworks/base/packages/SettingsLib/common.mk include $(BUILD_PACKAGE) +include $(CLEAR_VARS) +LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES:=httpclient:libs/httpclient-4.5.10.jar +include $(BUILD_MULTI_PREBUILT) + # Use the following include to make our test apk. ifeq (,$(ONE_SHOT_MAKEFILE)) include $(call all-makefiles-under,$(LOCAL_PATH)) diff --git a/libs/httpclient-4.5.10.jar b/libs/httpclient-4.5.10.jar new file mode 100644 index 0000000000000000000000000000000000000000..d0c7821c82a3d7a3a9566fee9e77d9d90a2ce14d Binary files /dev/null and b/libs/httpclient-4.5.10.jar differ diff --git a/nextcloud-android-lib b/nextcloud-android-lib new file mode 160000 index 0000000000000000000000000000000000000000..00ced4edeec0de7a271cdb99e61025ac290e9ce2 --- /dev/null +++ b/nextcloud-android-lib @@ -0,0 +1 @@ +Subproject commit 00ced4edeec0de7a271cdb99e61025ac290e9ce2 diff --git a/proguard.flags b/proguard.flags index e78c6456d9704762bd36685fd70a77162a629a93..dcf2d9f7df8ee7c5e41875a694ee6443f1597227 100644 --- a/proguard.flags +++ b/proguard.flags @@ -41,3 +41,9 @@ public static ** SEARCH_INDEX_DATA_PROVIDER; public static ** SUMMARY_PROVIDER_FACTORY; } +-keep class org.apache.http.** { *; } +-keep class org.apache.** { *; } +-keepclassmembers class org.apache.http.** {*;} +-dontwarn org.apache.** +-dontwarn org.apache.http.** +-dontwarn org.apache.commons.** \ No newline at end of file diff --git a/res/layout/account_remote_storage.xml b/res/layout/account_remote_storage.xml new file mode 100644 index 0000000000000000000000000000000000000000..24de817c5f0ce665a3d980d62632d95f7dd94b8a --- /dev/null +++ b/res/layout/account_remote_storage.xml @@ -0,0 +1,33 @@ + + + + + + + + +