Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

Commit

Permalink
Prepare for release 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecKazakova committed Jan 29, 2019
1 parent 0d6035a commit f27b448
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Change Log
==========

Version 0.3.0 *(2019-01-29)*
----------------------------

* New: Add custom method `targetForCocoapods` which matches Kotlin 1.3.20 multiplatform DSL
* Fix: Support arm32 ios architecture
* Fix: License is correctly string-escaped

Version 0.2.0 *(2019-01-26)*
----------------------------

Expand Down
25 changes: 22 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ The plugin also includes a custom preset which sets up the necessary x64/arm64 s

```groovy
kotlin {
targets {
targetFromPreset(cocoapodsPreset, 'ios')
}
targetForCocoapods('ios')
sourceSets {
iosMain { ... }
Expand All @@ -71,3 +69,24 @@ kotlin {
```

Doing this will also generate a `iosTest` task for running tests against this target.

### Custom architectures

By default this packages a fat binary with x64, arm64, and arm32 architectures inside. To override this behavior pass a list of presets into the `targetForCocoapods` method:

```groovy
kotlin {
targetForCocoapods([presets.iosArm64, iosX64], 'ios')
}
```

Its also possible to use the full 1.3.20 DSL to customize the targets:


```groovy
kotlin {
targetForCocoapods([presets.iosArm64, iosX64], 'ios') {
compilations.main.extraOpts '-module-name', 'CP'
}
}
```
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
GROUP=com.alecstrong
VERSION_NAME=0.3.0-SNAPSHOT
VERSION_NAME=0.3.0

POM_URL=https://github.com/AlecStrong/kotlin-native-cocoapods/
POM_SCM_URL=https://github.com/AlecStrong/kotlin-native-cocoapods/
Expand Down

0 comments on commit f27b448

Please sign in to comment.