62 Commits

Author SHA1 Message Date
Bambooin
a2450f9a0b build: add a make target for checks
Expose make check for unit tests plus lint. It runs through Gradle and
needs neither the NDK nor a native build, so contributors can verify
changes without assembling an APK.
2026-10-22 20:03:32 +08:00
Bambooin
49f353e55c chore: echo clang-format version 2026-08-30 12:57:51 +08:00
WhiredPlanck
2cf90f4958 build: add patch-apply in Makefile
The original way is not vert reliable, especially for developers using Windows, it may offten lead to build failure.
2025-11-27 22:02:29 +08:00
WhiredPlanck
28835a871d build: remove rules for installing OpenCC data in Makefile 2024-10-12 18:45:58 +08:00
Bambooin
b68ea03f5f fix: filter opencc data file 2024-10-10 20:11:03 +08:00
WhiredPlanck
ed958d9b8c fix: assets in sub directories ran out of its parent in dest path
refactor: improve the implementation of `ResourceUtils.copyFile`
refactor: rename the shared assets dir name "rime" to "shared"
2024-09-09 00:47:02 +08:00
Bambooin
d7bcb17310 chore: add changelog target 2024-05-01 19:40:01 +08:00
Bambooin
ff3d7e723a chore: add resue target
Detail useage can be found:
https://spdx.dev/
https://reuse.software/
2024-04-25 19:23:56 +08:00
Bambooin
b3ef3566e9 build: add missing cmake file 2023-12-24 21:16:23 +08:00
Bambooin
28f8b4886b build: add cmake format target 2023-12-24 19:39:27 +08:00
Bambooin
7ab57a5efe chore: add style lint and format task
Add style lint to release and debug's dependency.
Refactor the Makefile for style tasks.
2023-03-14 23:07:06 +08:00
InfinityLoop1309
6cd82b64cb
doc: update build guide (#783) 2022-06-26 16:33:30 +08:00
Bambooin
0907aafeba chore: add spotless target 2021-08-14 21:46:44 +08:00
Bambooin
1bcd68800e chore: clean make file icon target 2021-08-14 21:41:45 +08:00
Bambooin
9dd05a6e8c fix: use gradlew instead of gradle
make release

* What went wrong:
A problem occurred evaluating project ':app'.
> Failed to apply plugin [id 'com.android.internal.version-check']
> Minimum supported Gradle version is 6.7.1. Current version is 6.5.1. If using the gradle wrapper, try editing the distributionUrl in xx/gradle-wrapper.properties to gradle-6.7.1-all.zip
2021-06-04 15:07:55 +08:00
Bambooin
85b5fdc934 chore(translation): Manual maintain simple Chinese instead of generate by opencc
1. Manual translation is better than opencc
2. Traditional and simple Chinese diffs in computer vocabulary.
2018-12-21 15:44:44 +08:00
osfans
305ced7175 chore(travis): deploy github pages 2018-12-21 13:29:49 +08:00
osfans
13ffcbf5d6 chore: update travis 2017-10-27 10:53:37 +08:00
osfans
38dfd7f5f4 chore(make): hide some building logs 2017-10-26 12:55:00 +08:00
osfans
07f398f0c6 chore: 使用黑白通知欄圖標 2017-08-04 20:07:41 +08:00
Bambooin
690d06b247 fix(Makefile): Remove icon dependency of release
We only need update icon after modifying icon.svg, and then
just use 'make icon' and push the new generated resource.
2017-07-24 17:40:28 +08:00
osfans
4d8ad42f48 fix(gradle): 無簽名時可以編譯debug版 2017-07-20 17:16:30 +08:00
osfans
cf11fe4266 fix(make): 自動翻譯簡體中文 2017-07-18 13:54:44 +08:00
osfans
4751004cca chore(res): fix zh-rTW in android 7.1 2017-05-18 22:51:57 +08:00
osfans
e844f7f40b chore(make): remove linux and windows targets 2017-05-18 22:21:08 +08:00
osfans
6028a94e7b chore: add gradlew 2017-05-18 22:21:08 +08:00
osfans
2a0df6cf0f chore: use gradle instead of ant 2017-05-18 22:21:08 +08:00
Bambooin
5e3497bed7 Refactor setting (#133)
* feat(Makefile): Add target translate to simplify build

* refactor(setting): Refactor setting and update translation[ci skip]

1. Order the preference to simplify UI.
2. Modify some android:key.
3. Update translation.
4. Test in en, ch-CN and ch-TW by changing system language.

* fix(zh-CN): Make en=>AOSP zh=>Google Input Method[ci skip]

* fix(setting): Correct setting key[ci skip].

* fix(setting): Fix en translate[ci skip]
2017-01-22 19:45:14 -06:00
osfans
0eee941a00 chore(Makefile): add PHONY targets 2017-01-12 10:03:07 +08:00
osfans
48fa5211bf feat: porting arm64 2017-01-12 09:40:03 +08:00
osfans
e49dd7e2a7 fix(Makefile): make android with cmake-3.7.1 since it supports ndk now.
https://cmake.org/cmake/help/v3.7/manual/cmake-toolchains.7.html#cross-compiling-for-android
2017-01-06 14:09:38 +08:00
osfans
7c37f65a9b fix(Makefile): workaround for cmake-3.7.1 problem of using clang toolchain
https://github.com/android-ndk/ndk/issues/254

opencc crashes when using gcc
build breaks when using clang under cmake-3.7.1

So we should use clang under cmake-3.6 now.
2017-01-03 10:43:07 +08:00
osfans
084dcdd360 fix(Makefile): add ant release and install targets 2017-01-03 10:35:51 +08:00
Bambooin
0ed1066fc7 fix(icon): Update the icons dues to typo in '-w 36 -h 38'[ci skip] 2016-12-29 12:35:51 +08:00
Bambooin
0c8c7a7e63 refatcor(Makefile): Add the apk target variable 2016-12-28 14:16:08 +08:00
osfans
8a7967d83a fix(jni): use ndk instead of cmake to fix charset_filter crash 2016-12-27 16:16:20 +08:00
osfans
99776b78ab chord(jni): update librime 2016-12-26 17:22:06 +08:00
Bambooin
b727bad618 fix(makefile): Use grep to avoid sed -i option incomptability in macOS 2016-12-20 16:08:25 +08:00
osfans
7584ee578c 修正jni安裝路徑 2016-11-02 09:52:43 +08:00
osfans
484b9d89dc 更新Makefile 2016-11-01 14:59:08 +08:00
osfans
cc347707c1 update Makefile 2016-10-11 13:03:14 +08:00
osfans
66cbae7b26 update to ndk r13 2016-10-10 21:22:03 +08:00
osfans
03d42b4046 支持Android 4.0-7.0(API level: 14-24) 2016-08-30 13:01:34 +08:00
osfans
6e6eaba750 jni: update android-cmake for ndk r12 2016-06-30 14:46:56 +08:00
osfans
cec2b03833 修正make install重複編譯apk的錯誤 2016-04-14 12:58:19 +08:00
osfans
fb35397008 update android-cmake 2016-04-05 13:25:36 +08:00
osfans
097ee195ee 預處理OpenCC data文件(#52) 2016-04-01 08:44:45 +08:00
osfans
a056a45c7a 僅轉換translatable字符串 2016-03-29 14:00:11 +08:00
osfans
d9ea1ef472 自動轉換成zh-CN 2016-03-25 16:35:46 +08:00
osfans
5b5b42a2df 內置OpenCC數據 2016-03-25 15:19:26 +08:00