kartikpatodi
05/31/2018, 12:34 PMUtils.kt
file in the com.demo.app.utlis package
@file:JvmName(name = "Utils")
package com.demo.app.utils
//Fragments Tags
const val Login_Fragment = "LoginFragment"
const val SignUp_Fragment = "SignUpFragment"
const val ForgotPassword_Fragment = "ForgotPasswordFragment"
//Email Validation pattern
const val regEx = "\\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}\\b"
when I import it in a Java file it works fine and I can call it like Utils.regEx
but when i import it in a kotlin file it shows as a constant to th package (see image)
Can anyone explain why this is so and how to solve this