Skip to content
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

Merged
merged 1 commit into from
May 31, 2023

Conversation

Nikitae57
Copy link
Collaborator

closes #86

ISSUE-86: use native resources in kAutomator
@Nikitae57 Nikitae57 force-pushed the ISSUE-86-Kautomator-native-resources branch from aa22ebc to c2456a6 Compare May 10, 2023 09:53
internal object RClassProvider {
private val classNameToClass = mutableMapOf<String, Class<*>>()

@Synchronized
Copy link
Member

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"
Copy link
Member

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<*>>()
Copy link
Member

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
Copy link
Member

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

@AzamatCherchesov AzamatCherchesov merged commit c0d5e27 into master May 31, 2023
@Nikitae57 Nikitae57 deleted the ISSUE-86-Kautomator-native-resources branch June 6, 2023 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Kautomator] Поддержка ресурсов Android
3 participants