[ Articles ]
Enable Java 8 compatibility for Kotlin sources
How to set up Java 8 source compatibility for Kotlin source code.
Manage Gradle dependencies using Kotlin code in buildSrc
·
Deprecated
Using Kotlin source files to easily access dependencies from our Gradle scripts.
Protocol functions with default parameter values
Swift protocols can have functions with default parameter values through the use of extensions.
Access the call site of a function using special Swift literals
Easily obtain information of where a Swift function was called from for use within the function itself.
Safely index items within a collection
How to use a Swift extension subscript and use it to safely get an item by index.
Manage your Gradle dependencies in Kotlin, even from Groovy scripts
·
Deprecated
As projects grow we can quickly run into issues with dependency management. We will explore the ways Gradle allows us to define our dependencies, ending with looking at using Kotlin source files and easily accessing them from our Gradle scripts.
Managing secrets within an iOS app
Almost all iOS apps have API keys and other secrets, but simple approaches for managing them can be insecure. We will look at some different options for keeping secrets out of source control and accessing them securely from your code.
Sharing accessibility identifiers between app and tests
Avoid duplicating the accessibility ID strings between main and test sources in a Swift project.
Protocol function that returns the Self type
How to add functions to your Swift protocols that use the current type as their return type.
Using metatype Self to return current type
Find out how to avoid typing out the current Swift type within its own code.