https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
@basher this plugin generates the test task automatically if you use the
cocoapodsPreset
g

galex

01/27/2019, 5:16 AM
I am not that familiar with iOS, can you publish in a local cocoapods like we do with mavenLocal() ?
j

Jonas Bark

01/27/2019, 9:02 AM
Thanks for the update, the main functionality works as expected now! The custom preset is very handy as well. But I fail to add the following part:
Copy code
binaries {
                framework {
                    baseName = "StihlConnect"
                }
            }
to the preset that I need for kotlin native to change the framework file name:
Cannot create binary debugFramework: binary with such a name already exists
any clue?
REPO_ROOT=
realpath "$PODS_TARGET_SRCROOT"
That requires installing coreutils via brew, maybe that dependency can be removed
a

alec

01/27/2019, 9:19 AM
@galex you can use cocoapods to set up a local module. Using cocoapods means you dont configure the build via xcode. @Jonas Bark tracking here: https://github.com/AlecStrong/kotlin-native-cocoapods/issues/3
🙏 2
b

basher

01/27/2019, 3:52 PM
@alec nice!
@galex this shows all the different ways you can include pods that aren't published to the main specs: https://guides.cocoapods.org/syntax/podfile.html#pod
👍 1
t

tylerwilson

01/31/2019, 1:11 PM
@alec This is awesome. Thank you for this. I started working on my own fat framework task, but this does all that and more. I recall an issue previously with using more than one K/N framework in an iOS app. Is this still the case. It would be awesome to pull in Timber and other Kotlin Pods individually…
a

alec

01/31/2019, 1:11 PM
yea i havent yet tested it myself but i've also heard you cant really consume multiple K/N frameworks from an iOS app
t

tylerwilson

01/31/2019, 1:14 PM
In any case this is a great start to get Models/ViewModels ported, which is my main focus. I expect a future feature will be to push the resultant pod up to a given repo/spec repo?
a

alec

01/31/2019, 1:21 PM
interesting. You could theoretically distribute the .framework generated by K/N to a repo but i hadnt thought of that as a use case, only using it for local dev
t

tylerwilson

01/31/2019, 1:22 PM
in my mind i was thinking something like maven-publish, but cocoapods-publish or carthage-publish..
g

galex

03/13/2019, 5:07 AM
It would be awesome to be able to publish it fully like maven-publish does!
2 Views