Skip to content

Commit

Permalink
upgraded gradle and kotlin
Browse files Browse the repository at this point in the history
updated readme with the new helper function
  • Loading branch information
judemanutd committed Oct 27, 2019
1 parent 770cef9 commit 414451a
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 13 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,13 @@ dependencies {
Once you have integrated the library calling the following function will bring up the autostart permission manager of the phone.

```kotlin
AutoStartPermissionHelper.getInstance().getAutoStartPermission(context);
AutoStartPermissionHelper.getInstance().getAutoStartPermission(context)
```

In order to check if your phone is supported by the library you can call the following command.

```kotlin
AutoStartPermissionHelper.getInstance().isAutoStartPermissionAvailable(context)
```
In order to keep the library small and simple I have not included any dialogs or pop ups, It is upto you to provide the user with a message if necessary.
Expand All @@ -65,5 +71,6 @@ dependencies {
3. Honor [ Untested ]
4. Oppo [ Untested ]
5. Vivo [ Untested ]

6. Huawei [ Untested ]

I will be adding support for other manufacturers as and when possible. I am also open to PR's and contributions from others.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package com.judemanutd.autostarterexample
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.widget.Button

import com.judemanutd.autostarter.AutoStartPermissionHelper

class MainActivity : AppCompatActivity() {
Expand All @@ -15,6 +14,5 @@ class MainActivity : AppCompatActivity() {
val button = findViewById<Button>(R.id.button)
button.setOnClickListener { AutoStartPermissionHelper.getInstance().getAutoStartPermission(this@MainActivity) }


}
}
10 changes: 5 additions & 5 deletions autostarter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ext {
siteUrl = 'https://github.com/judemanutd/AutoStarter'
gitUrl = 'https://github.com/judemanutd/AutoStarter.git'

libraryVersion = '1.0.3'
libraryVersion = '1.0.4'

developerId = 'judemanutd'
developerName = 'Jude Fernandes'
Expand All @@ -27,12 +27,12 @@ ext {
}

android {
compileSdkVersion 28
compileSdkVersion 29
defaultConfig {
minSdkVersion 14
targetSdkVersion 28
versionCode 3
versionName "1.0.3"
targetSdkVersion 29
versionCode 4
versionName "1.0.4"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.kotlin_version = '1.3.41'
ext.kotlin_version = '1.3.50'

repositories {
google()
Expand All @@ -10,7 +10,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:3.4.2'
classpath 'com.android.tools.build:gradle:3.5.1'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sun Jun 16 20:00:18 IST 2019
#Tue Oct 22 23:37:53 IST 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip

0 comments on commit 414451a

Please sign in to comment.