更新外部类库

main
Matthew 12 months ago
parent da0ab71e67
commit 7220b4888a

Binary file not shown.

@ -23,6 +23,7 @@
android:supportsRtl="true" android:supportsRtl="true"
android:theme="@style/Theme.MpRemote" android:theme="@style/Theme.MpRemote"
android:usesCleartextTraffic="true" android:usesCleartextTraffic="true"
android:extractNativeLibs="true"
tools:targetApi="31"> tools:targetApi="31">
<activity <activity
android:name=".StreamActivity" android:name=".StreamActivity"

@ -24,7 +24,7 @@ import android.view.MenuItem;
import android.view.View; import android.view.View;
import android.widget.Toast; import android.widget.Toast;
import com.xypower.common.FileUtils; import com.xypower.common.FilesUtils;
import com.xypower.common.JSONUtils; import com.xypower.common.JSONUtils;
import com.xypower.common.MicroPhotoContext; import com.xypower.common.MicroPhotoContext;
import com.xypower.mpremote.databinding.ActivityDeviceBinding; import com.xypower.mpremote.databinding.ActivityDeviceBinding;
@ -253,7 +253,7 @@ public class DeviceActivity extends AppCompatActivity {
} }
if (adbShellResponse.getExitCode() == 0) { if (adbShellResponse.getExitCode() == 0) {
String[] lines = FileUtils.splitLines(adbShellResponse.getAllOutput()); String[] lines = FilesUtils.splitLines(adbShellResponse.getAllOutput());
for (String line : lines) { for (String line : lines) {
int pos = line.indexOf("]: ["); int pos = line.indexOf("]: [");
if (pos != -1) { if (pos != -1) {
@ -276,7 +276,7 @@ public class DeviceActivity extends AppCompatActivity {
} }
if (adbShellResponse.getExitCode() == 0) { if (adbShellResponse.getExitCode() == 0) {
String[] lines = FileUtils.splitLines(adbShellResponse.getAllOutput()); String[] lines = FilesUtils.splitLines(adbShellResponse.getAllOutput());
for (String line : lines) { for (String line : lines) {
int pos = line.indexOf("versionName="); int pos = line.indexOf("versionName=");
if (pos != -1) { if (pos != -1) {
@ -307,7 +307,7 @@ public class DeviceActivity extends AppCompatActivity {
res = pullFile(adb, remoteFilePath, localFilePath); res = pullFile(adb, remoteFilePath, localFilePath);
if (res) { if (res) {
String content = FileUtils.readTextFile(localFilePath.getAbsolutePath()); String content = FilesUtils.readTextFile(localFilePath.getAbsolutePath());
if (!TextUtils.isEmpty(content)) { if (!TextUtils.isEmpty(content)) {
int pos = content.indexOf(" "); int pos = content.indexOf(" ");
if (pos != -1) { if (pos != -1) {

Loading…
Cancel
Save