This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<activity android:name=".MainActivity"> | |
<intent-filter> | |
<action android:name="android.intent.action.MAIN" /> | |
<category android:name="android.intent.category.LAUNCHER" /> | |
</intent-filter> | |
<intent-filter> | |
<action android:name="android.intent.action.VIEW" /> | |
<category android:name="android.intent.category.DEFAULT" /> | |
<category android:name="android.intent.category.BROWSABLE" /> | |
<data android:scheme="your-deeplink-scheme" android:host="your-deeplink-host" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MainActivity : AppCompatActivity() { | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContent { | |
Scaffold( | |
content = { | |
Column( | |
modifier = Modifier.fillMaxSize(), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MainActivity : AppCompatActivity() { | |
... | |
private fun sendMessage(message: String) { | |
webSocketService.sendMessage(message) | |
adapter.addItem(Message(message = message, isFromSender = true)) | |
} | |
@SuppressLint("CheckResult") | |
private fun observeConnection() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MainActivity : AppCompatActivity() { | |
... | |
private fun setupWebSocketService() { | |
webSocketService = provideWebSocketService( | |
scarlet = provideScarlet( | |
client = provideOkhttp(), | |
lifecycle = provideLifeCycle(), | |
streamAdapterFactory = provideStreamAdapterFactory(), | |
) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sonarqube { | |
properties { | |
property("sonar.host.url", "") | |
property("sonar.login", "") | |
property("sonar.projectKey", "") | |
property("sonar.projectName", "") | |
property("sonar.sourceEncoding", "") | |
property("sonar.language", "") | |
property("sonar.sources", "") | |
property("sonar.tests", "") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface EchoService { | |
@Receive | |
fun observeConnection(): Flowable<WebSocket.Event> | |
@Send | |
fun sendMessage(param: String) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependencies { | |
... | |
// rx | |
implementation 'io.reactivex.rxjava2:rxjava:2.2.21' | |
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1' | |
implementation 'io.reactivex.rxjava2:rxkotlin:2.4.0' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependencies { | |
... | |
// scarlet | |
implementation 'com.tinder.scarlet:scarlet:0.1.12' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun blur( | |
viewToBlur: ViewGroup = this, | |
radius: Float = 16f, | |
isAutoUpdate: Boolean = true, | |
hasFixedTransformationMatrix: Boolean = true, | |
) { | |
binding.blurView.setupWith(viewToBlur) | |
.setBlurAlgorithm(RenderScriptBlur(this.context)) | |
.setBlurRadius(radius) | |
.setBlurAutoUpdate(isAutoUpdate) |