[samples] Update calculator sample structure
@@ -8,8 +8,8 @@ buildscript {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath "org.jetbrains.kotlin:kotlin-native-gradle-plugin:+"
|
classpath "org.jetbrains.kotlin:kotlin-native-gradle-plugin:${project.property('konan.plugin.version')}"
|
||||||
classpath "com.android.tools.build:gradle:3.0.1"
|
classpath "com.android.tools.build:gradle:3.1.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1,2 @@
|
|||||||
konan.home=../../dist
|
konan.home=../../dist
|
||||||
|
konan.plugin.version=+
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ buildscript {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||||
classpath 'com.android.tools.build:gradle:3.0.1'
|
classpath 'com.android.tools.build:gradle:3.1.0'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -33,7 +33,7 @@ repositories {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
||||||
expectedBy project(':parser')
|
expectedBy project(':common')
|
||||||
|
|
||||||
implementation "com.android.support:appcompat-v7:27.0.2"
|
implementation "com.android.support:appcompat-v7:27.0.2"
|
||||||
}
|
}
|
||||||
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
|
|||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.5-all.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
include ':common'
|
||||||
|
project(':common').projectDir = file('../common')
|
||||||
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 6.9 KiB |
|
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 9.0 KiB After Width: | Height: | Size: 9.0 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
@@ -1,2 +0,0 @@
|
|||||||
include ':parser'
|
|
||||||
project(':parser').projectDir = file('../parser')
|
|
||||||
@@ -1,13 +1,5 @@
|
|||||||
apply plugin: 'konan'
|
task build {
|
||||||
|
subprojects.each {
|
||||||
konan.targets = ['iphone', 'iphone_sim']
|
dependsOn("${it.path}:build")
|
||||||
|
|
||||||
konanArtifacts {
|
|
||||||
framework('KotlinArithmeticParser') {
|
|
||||||
enableMultiplatform true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
expectedBy project(':calculator:parser')
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
buildscript {
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
maven { url "https://dl.bintray.com/jetbrains/kotlin-native-dependencies" }
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
classpath "org.jetbrains.kotlin:kotlin-native-gradle-plugin:${project.property('konan.plugin.version')}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
apply plugin: 'konan'
|
||||||
|
|
||||||
|
konan.targets = ['iphone', 'iphone_sim']
|
||||||
|
|
||||||
|
konanArtifacts {
|
||||||
|
framework('KotlinArithmeticParser') {
|
||||||
|
enableMultiplatform true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
expectedBy project(':calculator:common')
|
||||||
|
}
|
||||||
|
|
||||||
@@ -107,7 +107,7 @@
|
|||||||
7FF94AE52058485300590D0D /* main */,
|
7FF94AE52058485300590D0D /* main */,
|
||||||
);
|
);
|
||||||
name = src;
|
name = src;
|
||||||
path = parser/src;
|
path = ../common/src;
|
||||||
sourceTree = SOURCE_ROOT;
|
sourceTree = SOURCE_ROOT;
|
||||||
};
|
};
|
||||||
7FF94AE52058485300590D0D /* main */ = {
|
7FF94AE52058485300590D0D /* main */ = {
|
||||||
@@ -251,7 +251,7 @@
|
|||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
shellPath = /bin/sh;
|
shellPath = /bin/sh;
|
||||||
shellScript = "\"$SRCROOT/../gradlew\" -p \"$SRCROOT\" \"$KONAN_TASK\" -Pkonan.useEnvironmentVariables=true";
|
shellScript = "\"$SRCROOT/../../gradlew\" -p \"$SRCROOT\" \"$KONAN_TASK\" -Pkonan.useEnvironmentVariables=true";
|
||||||
};
|
};
|
||||||
/* End PBXShellScriptBuildPhase section */
|
/* End PBXShellScriptBuildPhase section */
|
||||||
|
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
konan.home=../../../dist
|
||||||
@@ -19,7 +19,7 @@ repositories {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
||||||
expectedBy project(":calculator:parser")
|
expectedBy project(":calculator:common")
|
||||||
}
|
}
|
||||||
|
|
||||||
applicationName = "KotlinCalculator"
|
applicationName = "KotlinCalculator"
|
||||||
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
|
|||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.5-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-bin.zip
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
// NOTE: If a new sample uses only platform libs,
|
// NOTE: If a new sample uses only platform libs,
|
||||||
// please add it into the 'buildSamplesWithPlatfromLibs' task in build.gradle.
|
// please add it into the 'buildSamplesWithPlatfromLibs' task in build.gradle.
|
||||||
include ':calculator'
|
include ':calculator'
|
||||||
include ':calculator:jvmCliApp'
|
include ':calculator:common'
|
||||||
include ':calculator:parser'
|
include ':calculator:jvm'
|
||||||
|
include ':calculator:ios'
|
||||||
include ':csvparser'
|
include ':csvparser'
|
||||||
include ':gitchurn'
|
include ':gitchurn'
|
||||||
include ':globalState'
|
include ':globalState'
|
||||||
@@ -14,10 +15,11 @@ include ':socket'
|
|||||||
include ':tetris'
|
include ':tetris'
|
||||||
include ':tensorflow'
|
include ':tensorflow'
|
||||||
include ':torch'
|
include ':torch'
|
||||||
// Android native activity build requires Android SDK.
|
// Android samples require Android SDK.
|
||||||
// So temporary switching off for now, as it breaks the build
|
// So temporary switching off for now, as it breaks the build
|
||||||
// of other samples if SDK is not present.
|
// of other samples if SDK is not present.
|
||||||
// include ':androidNativeActivity'
|
// include ':androidNativeActivity'
|
||||||
|
// include ':calculator:android'
|
||||||
include ':objc'
|
include ':objc'
|
||||||
include ':uikit'
|
include ':uikit'
|
||||||
include ':win32'
|
include ':win32'
|
||||||
|
|||||||