Skip to content

Commit

Permalink
add jvmStatic annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
luca992 committed Aug 13, 2023
1 parent 7554833 commit f5b3bfe
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3379,6 +3379,7 @@ class PhoneNumberUtil internal constructor(// A source of metadata for different
* string if no character used to start phone numbers (such as + or any digit) is found in the
* number
*/
@JvmStatic
fun extractPossibleNumber(number: CharSequence): CharSequence {
var number = number
val m = VALID_START_CHAR_PATTERN.find(number)
Expand Down Expand Up @@ -3498,6 +3499,7 @@ class PhoneNumberUtil internal constructor(// A source of metadata for different
* @param countryCallingCode the country calling code for which we want the mobile token
* @return the mobile token, as a string, for the given country calling code
*/
@JvmStatic
fun getCountryMobileToken(countryCallingCode: Int): String? {
return if (MOBILE_TOKEN_MAPPINGS!!.containsKey(countryCallingCode)) {
MOBILE_TOKEN_MAPPINGS!![countryCallingCode]
Expand Down Expand Up @@ -3569,6 +3571,7 @@ class PhoneNumberUtil internal constructor(// A source of metadata for different
* @param metadataLoader customized metadata loader. This should not be null
* @return a PhoneNumberUtil instance
*/
@JvmStatic
fun createInstance(metadataLoader: MetadataLoader): PhoneNumberUtil {
val metadataDependenciesProvider = DefaultMetadataDependenciesProvider(metadataLoader)
val metadataSource: MetadataSource = MetadataSourceImpl(
Expand Down
5 changes: 1 addition & 4 deletions sample/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
import org.jetbrains.compose.desktop.application.tasks.AbstractNativeMacApplicationPackageAppDirTask
import org.jetbrains.kotlin.gradle.dsl.ExplicitApiMode
import org.jetbrains.kotlin.gradle.plugin.mpp.AbstractExecutable
import org.jetbrains.kotlin.gradle.plugin.mpp.NativeBinary
import org.jetbrains.kotlin.gradle.tasks.KotlinNativeLink
import org.jetbrains.kotlin.library.impl.KotlinLibraryLayoutImpl
import java.io.File
import java.io.FileFilter
import org.jetbrains.compose.experimental.dsl.IOSDevices as IOSDevices1
import org.jetbrains.kotlin.konan.file.File as KonanFile
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
import org.jetbrains.compose.experimental.dsl.IOSDevices

plugins {
alias(libs.plugins.org.jetbrains.kotlin.multiplatform)
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

0 comments on commit f5b3bfe

Please sign in to comment.