소스 검색

更新文档注释

drake 4 년 전
부모
커밋
d888bf2380
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      net/src/main/java/com/drake/net/utils/FileUtils.kt

+ 3 - 0
net/src/main/java/com/drake/net/utils/FileUtils.kt

@@ -65,7 +65,10 @@ fun File.toRequestBody(contentType: MediaType? = null): RequestBody {
 
 /**
  * 安装APK
+ * @throws IllegalArgumentException 文件不存在或非apk后缀
+ * @throws UnsupportedOperationException 系统不存在包管理器
  */
+@Throws(IllegalArgumentException::class, UnsupportedOperationException::class)
 fun File.install() {
     val context = NetConfig.app