Skip to content

Commit 109222f

Browse files
Added new login mechanism | uploading version 96 - 12.1.0
1 parent 86f146f commit 109222f

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ android {
2424
applicationId "com.bald.uriah.baldphone"
2525
minSdkVersion 21
2626
targetSdkVersion 28
27-
versionCode 95
28-
versionName "12.0.1"
27+
versionCode 96
28+
versionName "12.1.0"
2929
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
3030
}
3131

app/src/main/java/com/bald/uriah/baldphone/utils/S.java

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
import androidx.recyclerview.widget.RecyclerView;
5252

5353
import com.android.volley.Request;
54+
import com.android.volley.RequestQueue;
5455
import com.android.volley.toolbox.StringRequest;
5556
import com.android.volley.toolbox.Volley;
5657
import com.bald.uriah.baldphone.BuildConfig;
@@ -358,15 +359,27 @@ public static void sendVersionInfo(final Context context) {
358359
sharedPreferences.edit().putString(BPrefs.UUID_KEY, UUID.randomUUID().toString()).apply();
359360
}
360361

361-
Volley.newRequestQueue(context).add(
362+
final RequestQueue requestQueue = Volley.newRequestQueue(context);
363+
364+
requestQueue.add(
362365
new StringRequest(
363366
Request.Method.GET,
364-
String.format(Locale.US, "http://baldphone.c1.biz/insert_new_install.php?uuid=%s&vcode=%d", sharedPreferences.getString(BPrefs.UUID_KEY, null), BuildConfig.VERSION_CODE),
367+
"https://raw.githubusercontent.com/UriahShaulMandel/BaldPhone/master/logging%20mechanism/loga.txt",
365368
response -> {
369+
requestQueue.add(
370+
new StringRequest(
371+
Request.Method.GET,
372+
String.format(Locale.US, "%s?uuid=%s&vcode=%d&locale=%s&flavor=%s", response, sharedPreferences.getString(BPrefs.UUID_KEY, null), BuildConfig.VERSION_CODE, String.valueOf(Locale.getDefault()), BuildConfig.FLAVOR),
373+
response2 -> {
374+
},
375+
error2 -> {
376+
}
377+
).setTag("baldphone_server"));
366378
},
367379
error -> {
368380
}
369-
).setTag("baldphone_server"));
381+
).setTag("baldphone_get_server_info"));
382+
370383
}
371384
}
372385

0 commit comments

Comments
 (0)