Skip to content

Instantly share code, notes, and snippets.

View anotherdev's full-sized avatar

Polson Keeratibumrungpong anotherdev

View GitHub Profile
Firebase Auth REST SDK Android integration
Requirements:
1. Minimum Android API 21
2. Enable Java 8
Steps:
Eko Login SDK Android integration
Requirements:
1. Minimum Android API 21
2. Enable Java 8
Steps:
@anotherdev
anotherdev / eko-sdk-changelog
Created October 22, 2018 07:34
Eko Messaging SDK Changelog
# Version 1.0.0 (2018-07-10)
Eko Messaging SDK `1.0.0` is released.
### API / Behavior Changes
### Bug Fixes
### Deprecations
public interface Publisher<T> {
void subscribe(Subscriber<? super T> s);
}
public interface Subscriber<T> {
void onSubscribe(Subscription s);
void onNext(T t);
void onError(Throwable t);
void onComplete();
}
10-05 19:20:06.856 327-1403/com.ekoapp.eko D/Retrofit: ---> HTTP POST https://scb-h1.ekoapp.com/file/upload-image
10-05 19:20:06.856 327-1403/com.ekoapp.eko D/Retrofit: Content-Type: multipart/form-data; boundary=4b3d1873-b4a9-4968-8229-12b7cf32a2dc
10-05 19:20:06.856 327-1403/com.ekoapp.eko D/Retrofit: Content-Length: 312941
10-05 19:20:06.856 327-1403/com.ekoapp.eko D/Retrofit: #0: /storage/emulated/0/Download/11.jpg (image/jpeg)
10-05 19:20:06.856 327-1403/com.ekoapp.eko D/Retrofit: ---> END HTTP (312941-byte body)
10-05 19:20:08.649 327-1403/com.ekoapp.eko D/Retrofit: ---- ERROR https://scb-h1.ekoapp.com/file/upload-image
10-05 19:20:08.651 327-1403/com.ekoapp.eko D/Retrofit: javax.net.ssl.SSLException: Read error: ssl=0x9e4d9800: I/O error during system call, Connection reset by peer
10-05 19:20:08.651 327-1403/com.ekoapp.eko D/Retrofit: at com.android.org.conscrypt.NativeCrypto.SSL_read(Native Method)
10-05 19:20:08.651 327-1403/com.ekoapp.eko D/Retrofit: at com.android.org.conscrypt.OpenSSLSock
@anotherdev
anotherdev / Linkify phones
Last active August 29, 2015 14:24
Works on pre-lollipop but not on lollipop. :(
TextView tv = ButterKnife.findById(layout, R.id.tv);
tv.setAutoLinkMask(Linkify.PHONE_NUMBERS);
tv.setLinksClickable(true);
Pattern pattern = Pattern.compile("(\\d[\\s-]*){4,22}\\d");
Linkify.addLinks(tv, pattern, "tel:");