Skip to content

Commit

Permalink
updated...
Browse files Browse the repository at this point in the history
  • Loading branch information
akardas16 committed Nov 19, 2022
1 parent 7521837 commit 7cf6da9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import androidx.appcompat.app.AppCompatActivity

object RequestPermission {

fun withResult(activity: Activity, permission:String, result:(isGranted:Boolean) -> Unit){
activity as AppCompatActivity
fun withResult(activity: AppCompatActivity, permission:String, result:(isGranted:Boolean) -> Unit){
val requestPermissionLauncher = activity.registerForActivityResult(
ActivityResultContracts.RequestPermission()
) { isGranted ->
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ dependencies {
implementation 'io.github.hariprasanths:bounceview-android:0.2.0'


implementation project(path: ':LetsCheckPermission')
// implementation 'com.github.akardas16:LetPermission:1.0'
//implementation project(path: ':LetsCheckPermission')
implementation 'com.github.akardas16:LetPermission:1.0.0'

testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.4'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import com.akardas.letscheckpermission.Status

class MainActivity : AppCompatActivity() {

lateinit var binding:ActivityMainBinding
private lateinit var binding:ActivityMainBinding
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
binding = ActivityMainBinding.inflate(layoutInflater)
Expand Down

0 comments on commit 7cf6da9

Please sign in to comment.