Skip to content

Commit

Permalink
修复错误判定未安装Gboard的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
entr0pia committed Apr 19, 2022
1 parent cd6a363 commit 01f0434
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 4 additions & 0 deletions change.log
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v2.0.3
1. 修复错误判定未安装Gboard的bug
2. 词库未变化, 可跳过更新

## v2.0.2
1. 迁移 repo
2. 词库未变化, 可跳过更新
Expand Down
3 changes: 1 addition & 2 deletions customize.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# 注意 这不是占位符!!这个代码的作用是将模块里的东西全部塞系统里,然后挂上默认权限
SKIPUNZIP=0

uid=$(ls -n /data/data | grep "com.google.android.inputmethod.latin" | awk '{print $3}')
uid=$(dumpsys package com.google.android.inputmethod.latin | grep userId | sed '$d;s/[^0-9]//g')
if [ -z "$uid" ]; then
abort "请检查是否安装 Gboard"
abort "退出安装"
fi

if [ -z "$MODPATH" ]; then
Expand Down
2 changes: 1 addition & 1 deletion module.prop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
id=gboard-dict-3
name=Gboard user_dict_3_3 词库
version=v2.0.2
version=v2.0.3
versionCode=20220318
author=entr0pia@GitHub
description=用户词典 (user_dict_3_3), 支持简拼和双拼. 共58053个词条, 以《现代汉语词典》第五版为基础, 添加部分专业词汇. 根据手机性能不同, 新词库需要1分钟左右生效. 测试方法: “光·遇”
Expand Down
2 changes: 1 addition & 1 deletion update.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "v2.0.2",
"version": "v2.0.3",
"versionCode": "20220318",
"zipUrl": "https://github.com/entr0pia/gboard_dict_3/releases/latest/download/gboard_dict_3.zip",
"changelog": "https://raw.githubusercontent.com/entr0pia/gboard_dict_3/master/change.log"
Expand Down

0 comments on commit 01f0434

Please sign in to comment.