Repository SSL not applied
사용한 Gradle 버전: 7.2
repositories {
maven {
url repo.ons
}
}
Less than 1 minute
사용한 Gradle 버전: 7.2
repositories {
maven {
url repo.ons
}
}
assembleRelease
Task를 위한 signingConfigs
최소구성gradle
파일: # ...[생략]...
SIGNED_STORE_FILE=./<파일명>.keystore
SIGNED_STORE_PASSWORD=<Keystore비번>
SIGNED_KEY_ALIAS=<Key 별칭값>
SIGNED_KEY_PASSWORD=<Key 비번>
Selectable Component
String
import android.util.Patterns
/**
* [String.isValidEmail()]
* Check for a Valid Email address
*
* @return whether the input is valid for email address
*/
fun String.isValidEmail(): Boolean {
val pattern = Patterns.EMAIL_ADDRESS
val isEmail = pattern.matcher(this).matches()
return this.isNotEmpty() && isEmail
}
class GodActivity : AppCompatActivity {
override fun onStart() {
with(ProcessLifecycleOwner.get()) {
lifecycleScope.launch {
lifecycle.repeatOnLifecycle(Lifecycle.State.RESUMED) {
startService()
}
}
}
}
priavte suspend fun startService() {
try {
exponentialRetry {
context.startService(
Intent(
context,
WebSocketService::class.java,
)
)
}
} catch (e1: CancellationException) {
// user has gone to the background before service was suceessflly started
// the scope has beeen closed along with the process hence we cannot start a background service
} catch (e2: IllegalStateException) {
log(e2)
}
}
}