tbruyelle / RxPermissions

Android runtime permissions powered by RxJava2
Apache License 2.0
10.48k stars 1.31k forks source link

how to support kotlin #310

Closed Qiaoshi96 closed 4 years ago

Qiaoshi96 commented 4 years ago

hey,my project use kotlin when I use this,it do not work well

He-YuFei commented 4 years ago
      rxPermissions.request(android.Manifest.permission.WRITE_EXTERNAL_STORAGE).subscribe {
            if (!it) {
                Toast.makeText(this, "!!!", Toast.LENGTH_LONG).show()
            }
        }

it works fine with my kotlin project

Qiaoshi96 commented 4 years ago

thanks

mrArtCore commented 4 years ago

How about to close this issue?))

galuszkak commented 4 years ago

Hi @tbruyelle,

I think this issue can be closed and also #311

tbruyelle commented 4 years ago

indeed thx

xiao00yao commented 3 years ago

请问一下大神么为啥 在kotlin中调用rxPermissions.request() 会爆红呢