Commit 31984d10 authored by Max Lv's avatar Max Lv

Add prebuilt overture libraries

parent f30c31ae
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -494,6 +494,17 @@ LOCAL_SRC_FILES := $(addprefix pcre/, $(libpcre_src_files)) ...@@ -494,6 +494,17 @@ LOCAL_SRC_FILES := $(addprefix pcre/, $(libpcre_src_files))
include $(BUILD_STATIC_LIBRARY) include $(BUILD_STATIC_LIBRARY)
########################################################
## overture
########################################################
include $(CLEAR_VARS)
LOCAL_MODULE := overture
LOCAL_SRC_FILES := overture/$(TARGET_ARCH_ABI)/liboverture.so
include $(PREBUILT_SHARED_LIBRARY)
# Import cpufeatures # Import cpufeatures
$(call import-module,android/cpufeatures) $(call import-module,android/cpufeatures)
...@@ -197,15 +197,17 @@ class ShadowsocksApplication extends Application { ...@@ -197,15 +197,17 @@ class ShadowsocksApplication extends Application {
def copyAssets() { def copyAssets() {
val assetManager = getAssets val assetManager = getAssets
for (f <- List("acl", "overture")) {
var files: Array[String] = null var files: Array[String] = null
try files = assetManager.list("acl") catch { try files = assetManager.list(f) catch {
case e: IOException => case e: IOException =>
Log.e(TAG, e.getMessage) Log.e(TAG, e.getMessage)
app.track(e) app.track(e)
} }
if (files != null) for (file <- files) autoClose(assetManager.open("acl/" + file))(in => if (files != null) for (file <- files) autoClose(assetManager.open(f + "/" + file))(in =>
autoClose(new FileOutputStream(new File(getFilesDir, file)))(out => autoClose(new FileOutputStream(new File(getFilesDir, file)))(out =>
IOUtils.copy(in, out))) IOUtils.copy(in, out)))
}
editor.putInt(Key.currentVersionCode, BuildConfig.VERSION_CODE).apply() editor.putInt(Key.currentVersionCode, BuildConfig.VERSION_CODE).apply()
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment