[samples] Update calculator sample structure

This commit is contained in:
Ilya Matveev
2018-04-02 19:52:48 +07:00
committed by ilmat192
parent 195151e51f
commit fc52f14965
46 changed files with 47 additions and 26 deletions
+2 -2
View File
@@ -8,8 +8,8 @@ buildscript {
}
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-native-gradle-plugin:+"
classpath "com.android.tools.build:gradle:3.0.1"
classpath "org.jetbrains.kotlin:kotlin-native-gradle-plugin:${project.property('konan.plugin.version')}"
classpath "com.android.tools.build:gradle:3.1.0"
}
}
@@ -1 +1,2 @@
konan.home=../../dist
konan.plugin.version=+
@@ -8,7 +8,7 @@ buildscript {
dependencies {
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 {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
expectedBy project(':parser')
expectedBy project(':common')
implementation "com.android.support:appcompat-v7:27.0.2"
}
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
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: 9.0 KiB

After

Width:  |  Height:  |  Size: 9.0 KiB

@@ -1,2 +0,0 @@
include ':parser'
project(':parser').projectDir = file('../parser')
+4 -12
View File
@@ -1,13 +1,5 @@
apply plugin: 'konan'
konan.targets = ['iphone', 'iphone_sim']
konanArtifacts {
framework('KotlinArithmeticParser') {
enableMultiplatform true
task build {
subprojects.each {
dependsOn("${it.path}:build")
}
}
dependencies {
expectedBy project(':calculator:parser')
}
}
+25
View File
@@ -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 */,
);
name = src;
path = parser/src;
path = ../common/src;
sourceTree = SOURCE_ROOT;
};
7FF94AE52058485300590D0D /* main */ = {
@@ -251,7 +251,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
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 */
+1
View File
@@ -0,0 +1 @@
konan.home=../../../dist
@@ -19,7 +19,7 @@ repositories {
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
expectedBy project(":calculator:parser")
expectedBy project(":calculator:common")
}
applicationName = "KotlinCalculator"
+1 -1
View File
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
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
+5 -3
View File
@@ -1,8 +1,9 @@
// NOTE: If a new sample uses only platform libs,
// please add it into the 'buildSamplesWithPlatfromLibs' task in build.gradle.
include ':calculator'
include ':calculator:jvmCliApp'
include ':calculator:parser'
include ':calculator:common'
include ':calculator:jvm'
include ':calculator:ios'
include ':csvparser'
include ':gitchurn'
include ':globalState'
@@ -14,10 +15,11 @@ include ':socket'
include ':tetris'
include ':tensorflow'
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
// of other samples if SDK is not present.
// include ':androidNativeActivity'
// include ':calculator:android'
include ':objc'
include ':uikit'
include ':win32'