From 61d0ee0cfc2242aa896eb6208c145e271968d0e0 Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 23 Jul 2020 16:35:20 +0200 Subject: [PATCH] Added task packAllForXcode and renamed packForXCode to packForXcode --- build.gradle | 13 +++++++++++++ common/build.gradle | 6 +++--- fints4k/build.gradle | 8 +++++--- tools/BankFinder/build.gradle | 6 +++--- ui/BankingUiCommon/build.gradle | 6 +++--- ui/BankingUiNativeIntegration/build.gradle | 6 +++--- ui/fints4kBankingClient/build.gradle | 6 +++--- 7 files changed, 33 insertions(+), 18 deletions(-) diff --git a/build.gradle b/build.gradle index 6054328a..e1f68894 100644 --- a/build.gradle +++ b/build.gradle @@ -114,4 +114,17 @@ allprojects { group 'net.dankito.banking' version appVersionName +} + + + +task packAllForXcode { + dependsOn = [ + "common:packForXcode", + "fints4k:packForXcode", + "BankFinder:packForXcode", + "BankingUiCommon:packForXcode", + "fints4kBankingClient:packForXcode", + "BankingUiNativeIntegration:packForXcode" + ] } \ No newline at end of file diff --git a/common/build.gradle b/common/build.gradle index 55ca6d41..f948257f 100644 --- a/common/build.gradle +++ b/common/build.gradle @@ -87,7 +87,7 @@ kotlin { // Task to generate iOS framework for xcode projects. -task packForXCode(type: Sync) { +task packForXcode(type: Sync) { final File frameworkDir = new File(buildDir, "xcode-frameworks") final String mode = project.findProperty("XCODE_CONFIGURATION")?.toUpperCase() ?: 'DEBUG' @@ -108,8 +108,8 @@ task packForXCode(type: Sync) { } } -// Run packForXCode when building. -tasks.build.dependsOn packForXCode +// Run packForXcode when building. +tasks.build.dependsOn packForXcode android { diff --git a/fints4k/build.gradle b/fints4k/build.gradle index 33dd2790..1a6325f8 100644 --- a/fints4k/build.gradle +++ b/fints4k/build.gradle @@ -31,6 +31,8 @@ kotlin { binaries { framework { baseName = "fints4k" + + export(project(":common")) } } } @@ -153,7 +155,7 @@ kotlin { // Task to generate iOS framework for xcode projects. -task packForXCode(type: Sync) { +task packForXcode(type: Sync) { final File frameworkDir = new File(buildDir, "xcode-frameworks") final String mode = project.findProperty("XCODE_CONFIGURATION")?.toUpperCase() ?: 'DEBUG' @@ -174,8 +176,8 @@ task packForXCode(type: Sync) { } } -// Run packForXCode when building. -tasks.build.dependsOn packForXCode +// Run packForXcode when building. +tasks.build.dependsOn packForXcode android { diff --git a/tools/BankFinder/build.gradle b/tools/BankFinder/build.gradle index 92844fb6..85433765 100644 --- a/tools/BankFinder/build.gradle +++ b/tools/BankFinder/build.gradle @@ -82,7 +82,7 @@ kotlin { // Task to generate iOS framework for xcode projects. -task packForXCode(type: Sync) { +task packForXcode(type: Sync) { final File frameworkDir = new File(buildDir, "xcode-frameworks") final String mode = project.findProperty("XCODE_CONFIGURATION")?.toUpperCase() ?: 'DEBUG' @@ -103,8 +103,8 @@ task packForXCode(type: Sync) { } } -// Run packForXCode when building. -tasks.build.dependsOn packForXCode +// Run packForXcode when building. +tasks.build.dependsOn packForXcode android { diff --git a/ui/BankingUiCommon/build.gradle b/ui/BankingUiCommon/build.gradle index 3b6ab6f2..70af75f9 100644 --- a/ui/BankingUiCommon/build.gradle +++ b/ui/BankingUiCommon/build.gradle @@ -98,7 +98,7 @@ kotlin { // Task to generate iOS framework for xcode projects. -task packForXCode(type: Sync) { +task packForXcode(type: Sync) { final File frameworkDir = new File(buildDir, "xcode-frameworks") final String mode = project.findProperty("XCODE_CONFIGURATION")?.toUpperCase() ?: 'DEBUG' @@ -119,8 +119,8 @@ task packForXCode(type: Sync) { } } -// Run packForXCode when building. -tasks.build.dependsOn packForXCode +// Run packForXcode when building. +tasks.build.dependsOn packForXcode android { diff --git a/ui/BankingUiNativeIntegration/build.gradle b/ui/BankingUiNativeIntegration/build.gradle index b846ff2e..ca1d3dff 100644 --- a/ui/BankingUiNativeIntegration/build.gradle +++ b/ui/BankingUiNativeIntegration/build.gradle @@ -53,7 +53,7 @@ kotlin { // Task to generate iOS framework for xcode projects. -task packForXCode(type: Sync) { +task packForXcode(type: Sync) { final File frameworkDir = new File(buildDir, "xcode-frameworks") final String mode = project.findProperty("XCODE_CONFIGURATION")?.toUpperCase() ?: 'DEBUG' @@ -74,5 +74,5 @@ task packForXCode(type: Sync) { } } -// Run packForXCode when building. -tasks.build.dependsOn packForXCode \ No newline at end of file +// Run packForXcode when building. +tasks.build.dependsOn packForXcode \ No newline at end of file diff --git a/ui/fints4kBankingClient/build.gradle b/ui/fints4kBankingClient/build.gradle index e1ac3ae0..93fcd262 100644 --- a/ui/fints4kBankingClient/build.gradle +++ b/ui/fints4kBankingClient/build.gradle @@ -58,7 +58,7 @@ kotlin { // Task to generate iOS framework for xcode projects. -task packForXCode(type: Sync) { +task packForXcode(type: Sync) { final File frameworkDir = new File(buildDir, "xcode-frameworks") final String mode = project.findProperty("XCODE_CONFIGURATION")?.toUpperCase() ?: 'DEBUG' @@ -79,8 +79,8 @@ task packForXCode(type: Sync) { } } -// Run packForXCode when building. -tasks.build.dependsOn packForXCode +// Run packForXcode when building. +tasks.build.dependsOn packForXcode android {