Course Number: MBL-220
Duration: 2 days (13 hours)
Format: Live, hands-on

Kotlin Native Training Overview

This Kotlin Native training course teaches attendees how to use Kotlin alongside native applications and libraries written in C, C++, Objective-C, and Swift. Students learn how to generate Kotlin library wrappers using headers from these other languages. Participants then learn how to write Kotlin that easily calls into native API’s and how to consume Kotlin Native libraries from other environments. Finally, attendees put it all together to see how everything fits into the wider Kotlin ecosystem by creating multi-platform projects that target the JVM, Android, JS, and Native platforms.

Location and Pricing

This course is taught as a private, live online class for teams of 3 or more. All our courses are hands-on, instructor-led, and tailored to fit your group’s goals and needs. Most Accelebrate classes can be flexibly scheduled for your group, including delivery in half-day segments across a week or set of weeks. To receive a customized proposal and price quote for online corporate training, please contact us.

In addition, some courses are available as live, instructor-led training from one of our partners.

Objectives

  • Understand where Kotlin Native fits in the ecosystem
  • Use Kotlin to create native apps, libraries, and frameworks
  • Know which libraries are available on what platforms
  • Be comfortable consuming C and Objective-C libraries
  • Have confidence manually managing C data type memory
  • Create hierarchical Gradle multi-platform projects

Prerequisites

Attendees must be Kotlin developers. Prior exposure to C/C++ terminology and concepts is very helpful but not essential.

Outline

Expand All | Collapse All

Introduction to Kotlin Native
  • Expanding Kotlin beyond the JVM
  • Understanding the LLVM Compiler Tools
  • Platforms supported by Kotlin Native
  • JVM functionality not available in Native
  • Choosing between the CLion and IntelliJ IDEs
  • Deconstructing a simple native project
Interoperating with C Libraries
  • Working with the provided platform libraries
  • Importing headers from external C libraries
  • Making sense of Kotlin types for native data
  • The role of CVariables, CPointers and CValues
  • Exchanging string data between Kotlin and C
  • Representing C data structures using CStructs
  • Memory management via alloc, free & memScoped
  • Invoking Kotlin callacks from C and vice versa
  • Using 
Interoperating with Objective-C / Swift
  • Working with the provided platform libraries
  • Importing headers from Objective-C / Swift
  • What Swift features are not supported
  • How Swift APIs are mapped to Kotlin
Multithreading and Coroutines
  • The dangers of shared mutable state
  • Constraints on sharing data across threads
  • Using 
  • Initializing the runtime when creating native threads
  • Utilizing Kotlin’s built-in 
  • Consuming results via 
  • Freezing data and 
  • Breaking the rules using the 
  • Transferring object ownership between threads
  • Limits on using coroutines in Kotlin Native
Creating Multiplatform Gradle Projects
  • Choosing between the Groovy and Kotlin DSLs
  • The Kotlin Multiplatform Gradle Plugin
  • Targeting different native platforms
  • The default folder naming conventions
  • Specifying repos and project dependencies
  • Controlling compiler and linker options
  • Creating hierarchies and sub-projects
Conclusion

Training Materials

All attendees receive comprehensive courseware.

Course outline and materials are copyrighted and owned by Instil Software.

Software Requirements

  • Windows or Mac minimum 8 GB RAM
  • Android Studio installed
  • Provided lab files from Accelebrate


Learn faster

Our live, instructor-led lectures are far more effective than pre-recorded classes

Satisfaction guarantee

If your team is not 100% satisfied with your training, we do what's necessary to make it right

Learn online from anywhere

Whether you are at home or in the office, we make learning interactive and engaging

Multiple Payment Options

We accept check, ACH/EFT, major credit cards, and most purchase orders



Recent Training Locations

Alabama

Birmingham

Huntsville

Montgomery

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

Los Angeles

Oakland

Orange County

Sacramento

San Diego

San Francisco

San Jose

Colorado

Boulder

Colorado Springs

Denver

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Jacksonville

Miami

Orlando

Tampa

Georgia

Atlanta

Augusta

Savannah

Hawaii

Honolulu

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Cedar Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Frederick

Hagerstown

Massachusetts

Boston

Cambridge

Springfield

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Minneapolis

Saint Paul

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Las Vegas

Reno

New Jersey

Princeton

New Mexico

Albuquerque

New York

Albany

Buffalo

New York City

White Plains

North Carolina

Charlotte

Durham

Raleigh

Ohio

Akron

Canton

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Oklahoma City

Tulsa

Oregon

Portland

Pennsylvania

Philadelphia

Pittsburgh

Rhode Island

Providence

South Carolina

Charleston

Columbia

Greenville

Tennessee

Knoxville

Memphis

Nashville

Texas

Austin

Dallas

El Paso

Houston

San Antonio

Utah

Salt Lake City

Virginia

Alexandria

Arlington

Norfolk

Richmond

Washington

Seattle

Tacoma

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Calgary

Edmonton

British Columbia

Vancouver

Manitoba

Winnipeg

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan