-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from qichuan/feature/update_sdk
Update the gradle plugin, support library and SDK
- Loading branch information
Showing
9 changed files
with
64 additions
and
53 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,5 @@ | |
/build | ||
/captures | ||
/*/out | ||
**/build/* | ||
**/build/* | ||
**/.externalNativeBuild |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
apply plugin: 'com.android.model.application' | ||
model { | ||
android { | ||
compileSdkVersion = 23 | ||
buildToolsVersion = "23.0.2" | ||
apply plugin: 'com.android.application' | ||
|
||
defaultConfig.with { | ||
applicationId = "com.zqc.opencc.android" | ||
minSdkVersion.apiLevel = 15 | ||
targetSdkVersion.apiLevel = 23 | ||
} | ||
android { | ||
compileSdkVersion = 27 | ||
buildToolsVersion = "27.0.3" | ||
|
||
defaultConfig { | ||
applicationId "com.zqc.opencc.android" | ||
minSdkVersion 15 | ||
targetSdkVersion 27 | ||
} | ||
} | ||
|
||
android.buildTypes { | ||
release { | ||
minifyEnabled = false | ||
proguardFiles.add(file('proguard-rules.txt')) | ||
} | ||
android.buildTypes { | ||
release { | ||
minifyEnabled = false | ||
proguardFiles.add(file('proguard-rules.txt')) | ||
} | ||
} | ||
|
||
|
||
repositories { | ||
maven { | ||
url 'https://dl.bintray.com/qichuan/maven/' | ||
} | ||
} | ||
|
||
dependencies { | ||
compile project(':lib-opencc-android') | ||
compile 'com.android.support:appcompat-v7:23.2.0' | ||
implementation project(':lib-opencc-android') | ||
implementation 'com.android.support:appcompat-v7:27.1.1' | ||
//compile 'com.zqc.opencc.android.lib:lib-opencc-android:0.8.0@aar' | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,17 @@ | ||
$(call import-module,third_party/googletest) | ||
LOCAL_PATH := $(call my-dir) | ||
include $(CLEAR_VARS) | ||
LOCAL_MODULE := opencc-android | ||
LOCAL_LDLIBS += -latomic -llog -landroid | ||
|
||
#traverse all the directory and subdirectory | ||
define walk | ||
$(wildcard $(1)) $(foreach e, $(wildcard $(1)/*), $(call walk, $(e))) | ||
endef | ||
|
||
#find all the file recursively under jni/ | ||
ALLFILES = $(call walk, $(LOCAL_PATH)) | ||
FILE_LIST := $(filter %.cpp, $(ALLFILES)) | ||
|
||
LOCAL_SRC_FILES := $(FILE_LIST:$(LOCAL_PATH)/%=%) | ||
|
||
include $(BUILD_SHARED_LIBRARY) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
APP_ABI := all | ||
APP_ABI := all | ||
APP_STL := c++_shared | ||
APP_CPPFLAGS := -fexceptions |