This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pluginManagement { | |
val kotlinVersion = "1.3.50" | |
resolutionStrategy { | |
eachPlugin { | |
if (requested.id.namespace?.startsWith("org.jetbrains.kotlin") == true) { | |
useModule("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion") | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task fatFramework(type: FatFrameworkTask) { | |
// The fat framework must have the same base name as the initial frameworks. | |
baseName = "$ios_framework_name" | |
// Specify the frameworks to be merged. | |
from( | |
kotlin.targets.ios.binaries.getFramework("RELEASE"), | |
kotlin.targets.iosArm32.binaries.getFramework("RELEASE"), | |
kotlin.targets.iosArm64.binaries.getFramework("RELEASE") | |
) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android { | |
compileSdkVersion 28 | |
defaultConfig { | |
minSdkVersion 21 | |
targetSdkVersion 28 | |
versionCode 1 | |
versionName '0.1' | |
testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner' | |
} | |
sourceSets { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
repositories { | |
jcenter() | |
google() | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { | |
id 'org.jetbrains.kotlin.multiplatform' version '1.3.50' | |
} | |
apply plugin: 'com.android.library' | |
apply plugin: 'kotlin-android-extensions' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
google() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:3.5.0' | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
configure([iosX64, iosArm32, iosArm64]) { | |
compilations.main { | |
cinterops { | |
phonenumbers { | |
includeDirs('c_interop/libPhoneNumber_iOS.framework/Headers') | |
} | |
} | |
} | |
binaries.framework { | |
linkerOpts "-Fc_interop" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language = Objective-C | |
package = com.airwatch.phonenumbers | |
headers = libPhoneNumber_iOS.h | |
headerFilter = AW* | |
linkerOpts = -framework libPhoneNumber_iOS |
NewerOlder