click-llc / android-msdk

This library allows you to embed payment acceptance using "Click" into Android mobile applications. For the library to function properly, the user must be connected to Click Merchant using the Shop API scheme
23 stars 6 forks source link

kotlin.UninitializedPropertyAccessException: lateinit property themeMode has not been initialized #4

Closed raheemadamboev closed 4 years ago

raheemadamboev commented 4 years ago

If I want to scan my card it throws exception.

Screenshot - 11_2_2020 , 4_03_05 PM

I guess I initialized themeMode

Screenshot - 11_2_2020 , 4_06_54 PM

And fragment working with both themes if I change the theme of app photo_2020-11-02_16-18-06 photo_2020-11-02_16-18-02

What should I do?

Islomov49 commented 4 years ago

Thanks, It is bug. We will fix it in 1.2.2 version. Maximum in 2 days will be released

Islomov49 commented 4 years ago

FIXED

Islomov49 commented 4 years ago

@raheemideadev fixed and released with version 1.2.2

raheemadamboev commented 4 years ago

@raheemideadev fixed and released with version 1.2.2

thanks for notifying

may I disable scan function, because it requires camera permission can I use this repository without adding camera permission to the manifest

My app is about education and I guess it does not require camera

Screenshot - 11_3_2020 , 12_42_53 AM Screenshot - 11_3_2020 , 12_57_32 AM

Islomov49 commented 4 years ago

The permission is written in the sdk manifest, it cannot be configured. In fact, you never meet these unsupported smartphone models.

Islomov49 commented 4 years ago

@raheemideadev You can disable it in your manifest https://stackoverflow.com/questions/37417259/disable-dependency-library-permission

Islomov49 commented 4 years ago

For you case, you should add this code in your Manifest:

<uses-permission
        android:name="android.permission.CAMERA"
        tools:node="remove" />