Skip to content

Commit

Permalink
see 08/09 log
Browse files Browse the repository at this point in the history
  • Loading branch information
Blankj committed Aug 8, 2019
1 parent 352054a commit 0edc62e
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 59 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
* `19/08/09` [fix] https://www.virustotal.com/gui/home/upload with ESET-NOD32. Publish v1.25.7.
* `19/08/08` [add] BusUtils#post tag support one-to-many. Publish v1.25.6.
* `19/08/04` [add] ThreadUtils#Task support timeout.
* `19/08/01` [upd] EncryptUtils#rsa.
Expand Down
2 changes: 1 addition & 1 deletion README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

[frame]: https://raw.githubusercontent.com/Blankj/AndroidUtilCode/master/art/auc_frame_cn.png

[aucSvg]: https://img.shields.io/badge/AndroidUtilCode-v1.25.6-brightgreen.svg
[aucSvg]: https://img.shields.io/badge/AndroidUtilCode-v1.25.7-brightgreen.svg
[auc]: https://github.com/Blankj/AndroidUtilCode

[apiSvg]: https://img.shields.io/badge/API-14+-brightgreen.svg
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ If this project helps you a lot and you want to support the project's developmen

[frame]: https://raw.githubusercontent.com/Blankj/AndroidUtilCode/master/art/auc_frame.png

[aucSvg]: https://img.shields.io/badge/AndroidUtilCode-v1.25.6-brightgreen.svg
[aucSvg]: https://img.shields.io/badge/AndroidUtilCode-v1.25.7-brightgreen.svg
[auc]: https://github.com/Blankj/AndroidUtilCode

[apiSvg]: https://img.shields.io/badge/API-14+-brightgreen.svg
Expand Down
4 changes: 2 additions & 2 deletions buildSrc/src/main/groovy/Config.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class Config {
static compileSdkVersion = 28
static minSdkVersion = 14
static targetSdkVersion = 28
static versionCode = 1_025_006
static versionName = '1.25.6'// E.g. 1.9.72 => 1,009,072
static versionCode = 1_025_007
static versionName = '1.25.7'// E.g. 1.9.72 => 1,009,072

// lib version
static kotlin_version = '1.3.10'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.blankj.subutil.app

import android.content.Context
import com.blankj.lib.common.CommonApplication
import com.blankj.common.CommonApplication


/**
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ object Config {
} else {
Environment.getExternalStorageDirectory().absolutePath
} + FILE_SEP
TEST_APK_PATH = CACHE_PATH + "test_install_silent.apk"
TEST_APK_PATH = CACHE_PATH + "test_install.apk"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class DangerousActivity : CommonTitleActivity() {
class ReleaseInstallApkTask(private val mListener: OnReleasedListener) : ThreadUtils.SimpleTask<Unit>() {

override fun doInBackground() {
ResourceUtils.copyFileFromAssets("test_install_silent", Config.TEST_APK_PATH)
ResourceUtils.copyFileFromAssets("test_install", Config.TEST_APK_PATH)
}

override fun onSuccess(result: Unit) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.blankj.utilcode.app

import com.blankj.lib.common.CommonApplication
import com.blankj.common.CommonApplication
import com.blankj.utilcode.util.Utils


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ class PhoneActivity : CommonTitleActivity() {
.appendLine("isSimCardReady: " + PhoneUtils.isSimCardReady())
.appendLine("getSimOperatorName: " + PhoneUtils.getSimOperatorName())
.appendLine("getSimOperatorByMnc: " + PhoneUtils.getSimOperatorByMnc())
.append("getPhoneStatus: " + PhoneUtils.getPhoneStatus())
.create()

applyDebouncingClickListener(
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#org.gradle.jvmargs=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005
org.gradle.jvmargs=-Xmx8192m -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -XX:-UseGCOverheadLimit -Dfile.encoding=UTF-8
org.gradle.daemon=true
org.gradle.configureondemand=true
org.gradle.parallel=true
#org.gradle.configureondemand=true
#org.gradle.parallel=true

#-Dorg.gradle.debug=true --no-daemon
File renamed without changes.
4 changes: 2 additions & 2 deletions lib/utilcode/README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

Gradle:
```groovy
implementation 'com.blankj:utilcode:1.25.6'
implementation 'com.blankj:utilcode:1.25.7'
// if u use AndroidX, use the following
implementation 'com.blankj:utilcodex:1.25.6'
implementation 'com.blankj:utilcodex:1.25.7'
```


Expand Down
4 changes: 2 additions & 2 deletions lib/utilcode/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

Gradle:
```groovy
implementation 'com.blankj:utilcode:1.25.6'
implementation 'com.blankj:utilcode:1.25.7'
// if u use AndroidX, use the following
implementation 'com.blankj:utilcodex:1.25.6'
implementation 'com.blankj:utilcodex:1.25.7'
```


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,50 +265,6 @@ public static String getSimOperatorByMnc() {
}
}

/**
* Return the phone status.
* <p>Must hold {@code <uses-permission android:name="android.permission.READ_PHONE_STATE" />}</p>
*
* @return DeviceId = 99000311726612<br>
* DeviceSoftwareVersion = 00<br>
* Line1Number =<br>
* NetworkCountryIso = cn<br>
* NetworkOperator = 46003<br>
* NetworkOperatorName = 中国电信<br>
* NetworkType = 6<br>
* PhoneType = 2<br>
* SimCountryIso = cn<br>
* SimOperator = 46003<br>
* SimOperatorName = 中国电信<br>
* SimSerialNumber = 89860315045710604022<br>
* SimState = 5<br>
* SubscriberId(IMSI) = 460030419724900<br>
* VoiceMailNumber = *86<br>
*/
@SuppressLint("HardwareIds")
@RequiresPermission(READ_PHONE_STATE)
public static String getPhoneStatus() {
TelephonyManager tm = getTelephonyManager();
String str = "";
//noinspection ConstantConditions
str += "DeviceId = " + tm.getDeviceId() + "\n";
str += "DeviceSoftwareVersion = " + tm.getDeviceSoftwareVersion() + "\n";
str += "Line1Number = " + tm.getLine1Number() + "\n";
str += "NetworkCountryIso = " + tm.getNetworkCountryIso() + "\n";
str += "NetworkOperator = " + tm.getNetworkOperator() + "\n";
str += "NetworkOperatorName = " + tm.getNetworkOperatorName() + "\n";
str += "NetworkType = " + tm.getNetworkType() + "\n";
str += "PhoneType = " + tm.getPhoneType() + "\n";
str += "SimCountryIso = " + tm.getSimCountryIso() + "\n";
str += "SimOperator = " + tm.getSimOperator() + "\n";
str += "SimOperatorName = " + tm.getSimOperatorName() + "\n";
str += "SimSerialNumber = " + tm.getSimSerialNumber() + "\n";
str += "SimState = " + tm.getSimState() + "\n";
str += "SubscriberId(IMSI) = " + tm.getSubscriberId() + "\n";
str += "VoiceMailNumber = " + tm.getVoiceMailNumber();
return str;
}

/**
* Skip to dial.
*
Expand Down

0 comments on commit 0edc62e

Please sign in to comment.