ZTool
最新版本:
v1.1.0
---
類別:
---
版本紀錄
v1.0
[新增] 連線類 - ZConnect:
基於OkHttp的客製化封裝連線。
[新增] 通用工具 - ZFileTool:
內部資料夾的儲存與取用,以及讀取assets中的file。
[新增] 通用工具 - ZTimeTool:
目標時間之前or之後 ,或在指定時間區段之間的判斷。
[新增] 通用工具 - ZCheckFormatTool:
是否為英文,是否為數字,是否為信箱 等多個格式判斷。
[新增] 通用工具 - ZConvertUnitTool:
dp, sp ,px 單位之間轉換。
[新增] 通用工具 - ZCheckDeviceTool:
裝置中多項硬體設備(藍芽,低功耗藍芽,前置鏡頭等) 檢測判斷及裝置唯一碼的取得
引用:
//Gson implementation 'com.google.code.gson:gson:2.8.+' //okHttp implementation 'com.squareup.okhttp3:okhttp:3.11.+'
---
v1.0.1
[FIX] 連線類 - ZConnect:
解決多執行緒bug。
引用:
//Gson implementation 'com.google.code.gson:gson:2.8.+' //okHttp implementation 'com.squareup.okhttp3:okhttp:3.11.+'
---
v1.0.6
[新增] 通用工具 - ZLocationTool:
單次裝置位置取得,持續位置取得等多種地理資訊方法
引用:
//Gson implementation 'com.google.code.gson:gson:2.8.+' //okHttp implementation 'com.squareup.okhttp3:okhttp:3.11.+' //location implementation 'com.google.android.gms:play-services-location:16.0.0' //map implementation 'com.google.maps.android:android-maps-utils:0.4.+' //place implementation 'com.google.android.gms:play-services-places:16.0.0'
---
v1.0.8
[新增] ZMapTool:
GoogleMap地圖相關工具。
[新增] ZBiometricTool:
生物驗證工具
引用:
//Gson implementation 'com.google.code.gson:gson:2.8.+' //okHttp implementation 'com.squareup.okhttp3:okhttp:3.11.+' //location implementation 'com.google.android.gms:play-services-location:16.0.0' //map implementation 'com.google.maps.android:android-maps-utils:0.4.+' //place implementation 'com.google.android.gms:play-services-places:16.0.0'
---
v1.1.0
[新增] ZUpdateChecker:
版控工具。
[新增] ZCheckPermissionTool:
權限索取工具
[新增] ZDrawableTool:
塑形工具
[新增] ZSelectorTool:
狀態響應工具
補充
ZTimeTool :
新增方法可判斷指定時間前,指定時間後,指定時間區間。
引用:
//Gson api 'com.google.code.gson:gson:2.8.+' //okHttp api 'com.squareup.okhttp3:okhttp:3.11.+' //location api 'com.google.android.gms:play-services-location:16.0.0' //map api 'com.google.maps.android:android-maps-utils:0.4.+' //place api 'com.google.android.gms:play-services-places:16.1.0' //RxPermissions api 'com.github.tbruyelle:rxpermissions:0.10.2' //RxAndroid api 'io.reactivex.rxjava2:rxandroid:2.0.1'
---
如何建立依賴
1.build.gradle(Project)
allprojects {
repositories {
.
.
.
maven { url 'https://jitpack.io' }
}
}
2.build.gradle(app)
dependencies {
.
.
.
implementation 'com.github.noel77543:ZTool:v1.1.0'
}
Last updated
Was this helpful?