Skip to content

Commit

Permalink
Permission dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
rajashakher.valluru committed Aug 5, 2019
1 parent c84050e commit f758353
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
7 changes: 5 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,26 @@
buildscript {
ext.kotlin_version = '1.3.21'
repositories {
maven { url 'https://maven.google.com' }

google()
jcenter()

}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
maven { url 'https://maven.google.com' }
google()
jcenter()

}
}

Expand Down
5 changes: 3 additions & 2 deletions runtimepermission/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

group='com.github.rajashekarvys'

android {
compileSdkVersion 28



defaultConfig {
minSdkVersion 15
targetSdkVersion 28
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import java.util.*

class PermissionsActivity : Activity() {


private lateinit var _mPermissions: Array<String>
private val _mAcceptedPermissions = ArrayList<String>()
private val _mDeniedPermissions = ArrayList<String>()
Expand All @@ -28,9 +27,6 @@ class PermissionsActivity : Activity() {
_mPermissions = intent.getStringArrayExtra(PermissionsManager.PERMISSIONS)
permissionCallBack = intent.getSerializableExtra(PermissionsManager.CALLBACK) as PermissionCallBack

permissionList.adapter


for (permission in _mPermissions) {
if (checkSelfPermission(permission) != PackageManager.PERMISSION_GRANTED) {
_mDeniedPermissions.add(permission)
Expand Down

0 comments on commit f758353

Please sign in to comment.