Skip to content

Commit

Permalink
Merge pull request #16 from icerockdev/develop
Browse files Browse the repository at this point in the history
Release 0.5.0
  • Loading branch information
Alex009 authored Mar 14, 2020
2 parents f03c1d6 + 714573c commit f90e72e
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 18 deletions.
15 changes: 6 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
![moko-permissions](img/logo.png)
[![GitHub license](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](http://www.apache.org/licenses/LICENSE-2.0) [![Download](https://api.bintray.com/packages/icerockdev/moko/moko-permissions/images/download.svg) ](https://bintray.com/icerockdev/moko/moko-permissions/_latestVersion) ![kotlin-version](https://img.shields.io/badge/kotlin-1.3.61-orange)
[![GitHub license](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](http://www.apache.org/licenses/LICENSE-2.0) [![Download](https://api.bintray.com/packages/icerockdev/moko/moko-permissions/images/download.svg) ](https://bintray.com/icerockdev/moko/moko-permissions/_latestVersion) ![kotlin-version](https://img.shields.io/badge/kotlin-1.3.70-orange)

# Mobile Kotlin runtime permissions multiplatform controller
**moko-permissions** - Kotlin MultiPlatform library for providing runtime permissions on iOS & Android.
Expand All @@ -22,7 +22,7 @@
- **DeniedException** and **DeniedAlwaysException** - exceptions to handle user denial of permissions

## Requirements
- Gradle version 5.4.1+
- Gradle version 5.6.4+
- Android API 16+
- iOS version 9.0+

Expand All @@ -33,6 +33,8 @@
- kotlin 1.3.61
- 0.3.0
- 0.4.0
- kotlin 1.3.70
- 0.5.0

## Installation
root **build.gradle**
Expand All @@ -47,15 +49,10 @@ allprojects {
project **build.gradle**
```groovy
dependencies {
commonMainApi("dev.icerock.moko:permissions:0.4.0")
commonMainApi("dev.icerock.moko:permissions:0.5.0")
}
```

**settings.gradle**
```groovy
enableFeaturePreview("GRADLE_METADATA")
```

## List of supported permissions

The full list can be found in `dev.icerock.moko.permissions.Permission` enum.
Expand Down Expand Up @@ -114,7 +111,7 @@ More examples can be found in the [sample directory](sample).
## Set Up Locally
- In [permissions directory](permissions) contains `permissions` library;
- In [sample directory](sample) contains samples on android, ios & mpp-library connected to apps;
- For test changes locally use `:permissions:publishToMavenLocal` gradle task, after it samples will use locally published version.
- For test changes locally use `./publishToMavenLocal.sh` script, after it samples will use locally published version.

## Contributing
All development (both new features and bug fixes) is performed in `develop` branch. This way `master` sources always contain sources of the most recently released version. Please send PRs with bug fixes to `develop` branch. Fixes to documentation in markdown files are an exception to this rule. They are updated directly in `master`.
Expand Down
6 changes: 3 additions & 3 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ repositories {
}

dependencies {
implementation("dev.icerock:mobile-multiplatform:0.4.0")
implementation("com.android.tools.build:gradle:3.5.2")
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.61")
implementation("dev.icerock:mobile-multiplatform:0.6.0")
implementation("com.android.tools.build:gradle:3.6.1")
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.70")
}

kotlinDslPluginOptions {
Expand Down
8 changes: 4 additions & 4 deletions buildSrc/src/main/kotlin/Versions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ object Versions {
const val minSdk = 16
}

const val kotlin = "1.3.61"
const val kotlin = "1.3.70"

object Plugins {
const val kotlin = Versions.kotlin
Expand All @@ -19,9 +19,9 @@ object Versions {
}

object MultiPlatform {
const val coroutines = "1.3.3"
const val mokoPermissions = "0.4.0"
const val mokoMvvm = "0.4.0"
const val coroutines = "1.3.4"
const val mokoPermissions = "0.5.0"
const val mokoMvvm = "0.6.0"
}
}
}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.5.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
1 change: 1 addition & 0 deletions publishToMavenLocal.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
./gradlew -PlibraryPublish :permissions:publishToMavenLocal $*
2 changes: 1 addition & 1 deletion sample/ios-app/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: 49728c9b6c41d30c02d158c65f7b4298c82d7af9

COCOAPODS: 1.8.3
COCOAPODS: 1.9.0

0 comments on commit f90e72e

Please sign in to comment.