-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ISSUE-86: use native resources in kAutomator #516
Conversation
fd76af3
to
aa22ebc
Compare
ISSUE-86: use native resources in kAutomator
aa22ebc
to
c2456a6
Compare
internal object RClassProvider { | ||
private val classNameToClass = mutableMapOf<String, Class<*>>() | ||
|
||
@Synchronized |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why @Synchronized
? all tests are going in one thread.
import androidx.test.platform.app.InstrumentationRegistry | ||
|
||
internal object KString : ResourceNameProvider() { | ||
override val rClassName = "R\$string" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure that these identifiers are the same for all OS versions
package com.kaspersky.components.kautomator.common.resources | ||
|
||
internal object RClassProvider { | ||
private val classNameToClass = mutableMapOf<String, Class<*>>() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good stuff for performance
@@ -1,9 +1,14 @@ | |||
@file:Suppress("unused") | |||
package com.kaspersky.components.kautomator.component.common.builders |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it makes sense to enhance the documentation regarding the last changes
closes #86