Skip to content

Commit

Permalink
feat 增加README;
Browse files Browse the repository at this point in the history
fix API29判断文件存在的逻辑
  • Loading branch information
JankingWon committed Apr 13, 2020
1 parent 9ebdc0e commit c20f2de
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added README.assets/Screenshot_20200407-135626.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added README.assets/Screenshot_20200407-135639.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added README.assets/Screenshot_20200413-155923.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added README.assets/Screenshot_20200413-155925.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## WebDroid
一个简单的Android端混合应用(Hybrid App)生成器,能够把网页打包成APK

### 效果图

![Screenshot_20200413-155923](README.assets/Screenshot_20200413-155923.jpg)

![Screenshot_20200413-155925](README.assets/Screenshot_20200413-155925.jpg)

![Screenshot_20200407-135626](README.assets/Screenshot_20200407-135626.jpg)

![Screenshot_20200407-135639](README.assets/Screenshot_20200407-135639.jpg)

### 注意

* 下载[RELEASE安装包](https://github.com/JankingWon/WebDroid/releases)直接安装或导入工程使用
* **本应用**支持 Android7.0 至 Android9.0 使用
* **生成的应用**支持 Android5.0 至 Android10.0使用
2 changes: 1 addition & 1 deletion app/signing.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ext.signing = [
storeFilePath : 'C:\\Users\\janki\\Desktop\\WebDroid\\janking.jks',
storeFilePath : '../janking.jks',
storePassword : '123456',
keyAlias : 'janking',
keyPassword :'123456',
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/cn/janking/webDroid/util/BuildUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ object BuildUtils {
FileUtils.getExistFile(PathConstants.fileApkUnsigned)
)
ConsoleUtils.info(console, "正在签名...")
if (!FileUtils.isFileExists(PathConstants.jks)
if (!FileUtils.isFilePathExists(PathConstants.jks)
) {
throw RuntimeException("key is null")
throw RuntimeException("签名秘钥不存在")
}
/**
* 尽量拦截签名过程
Expand Down
11 changes: 11 additions & 0 deletions app/src/main/java/cn/janking/webDroid/util/FileUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@ object FileUtils {
}
}

/**
* 仅仅判断路径,不判断uri
*/
fun isFilePathExists(filePath: String?): Boolean {
return isFileExists(
getFileByPath(
filePath
)
)
}

/**
* Return whether the file exists.
*
Expand Down

0 comments on commit c20f2de

Please sign in to comment.