Private
Public Access
Plexamp Lite 1.11: Minamp is now Plexamp Lite
Renames the app (label, texts, log files, Plex product name, User-Agent, APK). The package
name, preferences and signing key stay, so it installs over Minamp and keeps its settings.
tools/strings.py catches up with the strings added straight to the XML in 9440536.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
08590f3224
commit
7eebb0d881
15 files changed
+52
-50
No files matched your search
@@ -176,7 +176,7 @@ public class App extends Application {
|
||||
try {
|
||||
java.io.StringWriter sw = new java.io.StringWriter();
|
||||
java.io.PrintWriter pw = new java.io.PrintWriter(sw);
|
||||
pw.println("Minamp " + Plex.version + " on " + Build.MODEL + ", Android " + Build.VERSION.RELEASE);
|
||||
pw.println("Plexamp Lite " + Plex.version + " on " + Build.MODEL + ", Android " + Build.VERSION.RELEASE);
|
||||
pw.println(new java.util.Date() + " - " + where);
|
||||
e.printStackTrace(pw);
|
||||
pw.flush();
|
||||
@@ -186,7 +186,7 @@ public class App extends Application {
|
||||
out.close();
|
||||
try {
|
||||
if (android.os.Environment.MEDIA_MOUNTED.equals(android.os.Environment.getExternalStorageState())) {
|
||||
java.io.File f = new java.io.File(android.os.Environment.getExternalStorageDirectory(), "Minamp-error.txt");
|
||||
java.io.File f = new java.io.File(android.os.Environment.getExternalStorageDirectory(), "PlexampLite-error.txt");
|
||||
java.io.FileOutputStream o2 = new java.io.FileOutputStream(f);
|
||||
o2.write(text);
|
||||
o2.close();
|
||||
|
||||
@@ -80,7 +80,7 @@ public abstract class BaseActivity extends Activity implements PlayerService.Lis
|
||||
super.onCreate(b);
|
||||
}
|
||||
|
||||
/** If the last run hit an error, show it so it can be reported (also saved as Minamp-error.txt on the SD card). */
|
||||
/** If the last run hit an error, show it so it can be reported (also saved as PlexampLite-error.txt on the SD card). */
|
||||
protected void showCrashReportIfAny() {
|
||||
final String report = app.takeCrashReport();
|
||||
if (report == null) return;
|
||||
@@ -530,9 +530,9 @@ public abstract class BaseActivity extends Activity implements PlayerService.Lis
|
||||
toast(str(R.string.no_sd));
|
||||
return;
|
||||
}
|
||||
java.io.File f = new java.io.File(android.os.Environment.getExternalStorageDirectory(), "Minamp-log.txt");
|
||||
java.io.File f = new java.io.File(android.os.Environment.getExternalStorageDirectory(), "PlexampLite-log.txt");
|
||||
java.io.FileOutputStream o = new java.io.FileOutputStream(f);
|
||||
String head = "Minamp " + com.minamp.plex.Plex.version + " on " + android.os.Build.MODEL
|
||||
String head = "Plexamp Lite " + com.minamp.plex.Plex.version + " on " + android.os.Build.MODEL
|
||||
+ ", Android " + android.os.Build.VERSION.RELEASE + "\n";
|
||||
o.write((head + com.minamp.net.DiagLog.dump()).getBytes("UTF-8"));
|
||||
o.close();
|
||||
|
||||
@@ -90,7 +90,7 @@ public class HomeActivity extends BaseActivity {
|
||||
@Override
|
||||
protected void onNewIntent(Intent intent) {
|
||||
super.onNewIntent(intent);
|
||||
if (intent.getBooleanExtra("exit", false)) { finish(); return; } // "Close Minamp"
|
||||
if (intent.getBooleanExtra("exit", false)) { finish(); return; } // "Close Plexamp Lite"
|
||||
if (intent.getBooleanExtra("relaunch", false)) {
|
||||
// language changed: rebuild from scratch so every inflated text is re-read
|
||||
finish();
|
||||
|
||||
@@ -109,7 +109,7 @@ public class SetupActivity extends BaseActivity {
|
||||
public Plex.Pin work() throws Exception { return Plex.createPin(); }
|
||||
public void done(Plex.Pin p) {
|
||||
if (my != pinSeq) return;
|
||||
// Remember the code: the phone may close Minamp while you type it in elsewhere.
|
||||
// Remember the code: the phone may close Plexamp Lite while you type it in elsewhere.
|
||||
app.prefs.edit().putLong("pinId", p.id).putString("pinCode", p.code)
|
||||
.putLong("pinStart", System.currentTimeMillis()).commit();
|
||||
showPin(p.id, p.code, System.currentTimeMillis());
|
||||
@@ -122,7 +122,7 @@ public class SetupActivity extends BaseActivity {
|
||||
});
|
||||
}
|
||||
|
||||
/** Resume waiting for a code created earlier (Minamp was closed while the user typed it in). */
|
||||
/** Resume waiting for a code created earlier (Plexamp Lite was closed while the user typed it in). */
|
||||
private boolean resumePendingPin() {
|
||||
long id = app.prefs.getLong("pinId", 0);
|
||||
String code = app.prefs.getString("pinCode", null);
|
||||
|
||||
@@ -19,7 +19,7 @@ public final class DiagLog {
|
||||
private DiagLog() {}
|
||||
|
||||
public static void log(String msg) {
|
||||
android.util.Log.i("Minamp", msg); // also in logcat: readable over USB after the fact
|
||||
android.util.Log.i("PlexampLite", msg); // also in logcat: readable over USB after the fact
|
||||
String line;
|
||||
synchronized (fmt) { line = fmt.format(new Date()) + " " + msg; }
|
||||
synchronized (lines) {
|
||||
|
||||
@@ -37,7 +37,7 @@ import com.minamp.bc.tls.crypto.impl.bc.BcTlsCrypto;
|
||||
*/
|
||||
public final class Http {
|
||||
|
||||
public static final String USER_AGENT = "Minamp/1.0";
|
||||
public static final String USER_AGENT = "PlexampLite/1.0";
|
||||
|
||||
/** Optional HTTP CONNECT proxy, only used when running the networking code on a desktop JVM. */
|
||||
public static String proxyHost;
|
||||
|
||||
@@ -14,7 +14,7 @@ import com.minamp.util.Json;
|
||||
/** Client identity + plex.tv account calls (PIN sign-in, server discovery). */
|
||||
public final class Plex {
|
||||
|
||||
public static String product = "Minamp";
|
||||
public static String product = "Plexamp Lite";
|
||||
public static String version = "1.0";
|
||||
public static String clientId = "minamp-dev";
|
||||
public static String platform = "Android";
|
||||
|
||||
Reference in new issue
Block a user