Skip to content

Commit 27d4864

Browse files
committed
Fix login button
1 parent c54d670 commit 27d4864

File tree

4 files changed

+19
-22
lines changed

4 files changed

+19
-22
lines changed

android/app/src/main/java/com/httpsms/HttpSmsApiService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import java.util.logging.Logger.getLogger
1515

1616
class HttpSmsApiService(private val apiKey: String) {
1717
private val apiKeyHeader = "x-api-key"
18-
private val baseURL = URI("https://41f2-145-14-47-25.ngrok.io")
18+
private val baseURL = URI("https://api.httpsms.com")
1919
private val jsonMediaType = "application/json; charset=utf-8".toMediaType()
2020

2121
init {

android/app/src/main/java/com/httpsms/LogtailTree.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class LogtailTree: Timber.DebugTree() {
1818
private val queue: ConcurrentLinkedQueue<LogEntry> = ConcurrentLinkedQueue<LogEntry>()
1919

2020
override fun log(priority: Int, tag: String?, message: String, t: Throwable?) {
21-
val formatter: DateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSS'Z")
21+
val formatter: DateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
2222
val logEntry = LogEntry(
2323
priority,
2424
severity(priority),

android/app/src/main/res/layout/activity_login.xml

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,22 @@
8686
android:orientation="vertical"
8787
app:layout_constraintEnd_toEndOf="parent"
8888
app:layout_constraintStart_toStartOf="parent"
89-
app:layout_constraintTop_toBottomOf="@+id/loginApiKeyTextInputLayout">
89+
app:layout_constraintTop_toBottomOf="@+id/loginPhoneNumberLayout">
90+
91+
<com.google.android.material.button.MaterialButton
92+
android:id="@+id/loginButton"
93+
style="@style/Widget.MaterialComponents.Button.Icon"
94+
android:layout_width="wrap_content"
95+
android:layout_height="wrap_content"
96+
android:backgroundTint="#2196f3"
97+
android:drawableTint="@color/white"
98+
android:padding="10dp"
99+
android:text="@string/sign_in_button"
100+
android:textColor="@color/white"
101+
android:textSize="16sp"
102+
app:icon="@drawable/ic_login"
103+
app:iconTint="@color/white"
104+
tools:ignore="TextContrastCheck" />
90105

91106
<com.google.android.material.progressindicator.LinearProgressIndicator
92107
android:id="@+id/loginProgressIndicator"
@@ -100,22 +115,4 @@
100115
tools:layout_editor_absoluteX="16dp" />
101116
</LinearLayout>
102117

103-
<com.google.android.material.button.MaterialButton
104-
android:id="@+id/loginButton"
105-
style="@style/Widget.MaterialComponents.Button.Icon"
106-
android:layout_width="wrap_content"
107-
android:layout_height="wrap_content"
108-
android:backgroundTint="#2196f3"
109-
android:drawableTint="@color/white"
110-
android:padding="10dp"
111-
android:text="@string/sign_in_button"
112-
android:textColor="@color/white"
113-
android:textSize="16sp"
114-
app:icon="@drawable/ic_login"
115-
app:iconTint="@color/white"
116-
app:layout_constraintEnd_toEndOf="parent"
117-
app:layout_constraintStart_toStartOf="parent"
118-
app:layout_constraintTop_toBottomOf="@+id/loginPhoneNumberLayout"
119-
tools:ignore="TextContrastCheck" />
120-
121118
</androidx.constraintlayout.widget.ConstraintLayout>

api/cmd/loadtest/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func main() {
1818
log.Fatal("Error loading .env file")
1919
}
2020

21-
for i := 0; i < 50; i++ {
21+
for i := 0; i < 20; i++ {
2222
var responsePayload string
2323
err = requests.
2424
URL("/v1/messages/send").

0 commit comments

Comments
 (0)