Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
markgravity committed Aug 23, 2023
1 parent 9ae8585 commit 39fc9b9
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ios_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,11 @@ jobs:
${{ runner.os }}-pods-
- name: Generate KMM frameworks for Cocoapods
run: ./gradlew generateDummyFramework
working-directory: ./sample
run: |
pwd
cd ..
pwd
./gradlew generateDummyFramework
- name: Install Pods Dependencies
run: bundle exec pod install
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
kotlin(Plugins.ANDROID)
}

val keystoreProperties = loadProperties("signing.properties")
val keystoreProperties = rootDir.loadGradleProperties("signing.properties")

android {
namespace = "co.nimblehq.kmm.template.android"
Expand Down
12 changes: 12 additions & 0 deletions buildSrc/src/main/java/FileExt.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import java.io.File
import java.util.*

fun File.loadGradleProperties(fileName: String): Properties {
val properties = Properties()
val signingProperties = File(this, fileName)

if (signingProperties.isFile) {
properties.load(signingProperties.inputStream())
}
return properties
}
2 changes: 1 addition & 1 deletion make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,5 @@ rsync -av \
--exclude '.git' \
--exclude '.gitmodules' \
--exclude 'make.sh' \
--exclude 'sample' \
--exclude './sample' \
./ sample/
2 changes: 2 additions & 0 deletions make_ios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ cd ios

echo "=> Removing unnecessary files and folders"
rm -rf {PROJECT_NAME}/sources/data
rm -f {PROJECT_NAME}KIFUITests/Sources/Specs/Application/ApplicationSpec.swift
rm -f {PROJECT_NAME}Tests/Sources/Specs/Supports/Extensions/Foundation/OptionalUnwrapSpec.swift

# Because iOS-template is a submodule of the KKM-template, there is no .git directory.
sed -i '' "/rm -f .git*/d" make.sh
Expand Down

0 comments on commit 39fc9b9

Please sign in to comment.