Skip to content

Commit

Permalink
Fix build scan
Browse files Browse the repository at this point in the history
  • Loading branch information
gchristov committed Mar 21, 2024
1 parent 6ffccef commit 0cf707a
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Unit test
run: |
set -o pipefail &&
./gradlew --no-daemon --continue testDebugUnitTest --scan
./gradlew --no-daemon --continue testDebugUnitTest
- name: Generate test report
uses: mikepenz/action-junit-report@v4
if: always() # Ensure all test reports are collected, even after errors
Expand Down Expand Up @@ -176,7 +176,7 @@ jobs:
- name: Compile Android app
run: |
set -o pipefail &&
./gradlew android:app:assembleDebug --scan
./gradlew android:app:assembleDebug
- name: Artifacts
uses: actions/upload-artifact@v4
if: always() # Ensure all artifacts are collected, even after errors
Expand Down Expand Up @@ -237,7 +237,7 @@ jobs:
force-avd-creation: false
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
script: set -o pipefail && ./gradlew connectedAndroidTest --scan
script: set -o pipefail && ./gradlew connectedAndroidTest
- name: Artifacts
uses: actions/upload-artifact@v4
if: always() # Ensure all artifacts are collected, even after errors
Expand Down
2 changes: 1 addition & 1 deletion appIos/appIos.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "# Compile shared KMM code from the main app to so that its signature is valid\necho \"Signing shared KMM module with $TARGET_NAME's signature\"\ncd \"$SRCROOT/..\"\n./gradlew :multiplatform:umbrella:embedAndSignAppleFrameworkForXcode --scan\n";
shellScript = "# Compile shared KMM code from the main app to so that its signature is valid\necho \"Signing shared KMM module with $TARGET_NAME's signature\"\ncd \"$SRCROOT/..\"\n./gradlew :multiplatform:umbrella:embedAndSignAppleFrameworkForXcode\n";
};
/* End PBXShellScriptBuildPhase section */

Expand Down
2 changes: 1 addition & 1 deletion appIos/feed/feed.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "# Shared KMM compilation needed here in addition to the main app because Xcode compiles \n# projects based on dependencies so this module might be compiled before anything else, \n# in which case we might get Xcode errors about missing KMM modules\necho \"Building shared KMM module for target $TARGET_NAME\"\ncd \"$SRCROOT/../..\"\n./gradlew :multiplatform:umbrella:embedAndSignAppleFrameworkForXcode --scan\n";
shellScript = "# Shared KMM compilation needed here in addition to the main app because Xcode compiles \n# projects based on dependencies so this module might be compiled before anything else, \n# in which case we might get Xcode errors about missing KMM modules\necho \"Building shared KMM module for target $TARGET_NAME\"\ncd \"$SRCROOT/../..\"\n./gradlew :multiplatform:umbrella:embedAndSignAppleFrameworkForXcode\n";
};
/* End PBXShellScriptBuildPhase section */

Expand Down
2 changes: 1 addition & 1 deletion appIos/post/post.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "# Shared KMM compilation needed here in addition to the main app because Xcode compiles \n# projects based on dependencies so this module might be compiled before anything else, \n# in which case we might get Xcode errors about missing KMM modules\necho \"Building shared KMM module for target $TARGET_NAME\"\ncd \"$SRCROOT/../..\"\n./gradlew :multiplatform:umbrella:embedAndSignAppleFrameworkForXcode --scan\n";
shellScript = "# Shared KMM compilation needed here in addition to the main app because Xcode compiles \n# projects based on dependencies so this module might be compiled before anything else, \n# in which case we might get Xcode errors about missing KMM modules\necho \"Building shared KMM module for target $TARGET_NAME\"\ncd \"$SRCROOT/../..\"\n./gradlew :multiplatform:umbrella:embedAndSignAppleFrameworkForXcode\n";
};
/* End PBXShellScriptBuildPhase section */

Expand Down
12 changes: 12 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ pluginManagement {
}
}

plugins {
id("com.gradle.enterprise") version("3.16.2")
}

dependencyResolutionManagement {
repositories {
google()
Expand All @@ -17,6 +21,14 @@ dependencyResolutionManagement {
}
}

gradleEnterprise {
buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
publishAlways()
}
}

rootProject.name = "newsfeed-kotlin-multiplatform"

// Multiplatform
Expand Down

0 comments on commit 0cf707a

Please sign in to comment.