.PHONY: all clean compile dryRelease checkFormat checkApi buildAppleSamples generateDokka detekt format stop createCoverageReports all: stop clean compile createCoverageReports # deep clean clean: ./gradlew clean rm -rf distributions # local deploy dryRelease: ./gradlew publishToMavenLocal --no-daemon --no-parallel # Run detekt detekt: ./gradlew detekt # Generate Dokka generateDokka: ./gradlew dokkaHtmlMultiModule # Check API checkApi: ./gradlew apiCheck # Spotless check's code checkFormat: ./gradlew spotlessKotlinCheck # Spotless format's code format: ./gradlew spotlessApply # Builds the project and run tests buildProject: ./gradlew build # Build Apple Samples buildAppleSamples: ./gradlew build -p sentry-samples cd ./sentry-samples/kmp-app-cocoapods/iosApp/iosApp && touch iosApp.xcconfig # cd ./sentry-samples/kmp-app-mvvm-di/iosApp && touch iosApp.xcconfig sudo xcode-select --switch /Applications/Xcode.app && /usr/bin/xcodebuild -version ./gradlew ":sentry-samples:kmp-app-cocoapods:shared:podInstall" cd ./sentry-samples/kmp-app-cocoapods/iosApp; pod update; xcodebuild -workspace ./sentry-samples/kmp-app-cocoapods/iosApp/iosApp.xcworkspace -scheme iosApp -configuration Debug -sdk iphonesimulator -arch arm64 # xcodebuild -project ./sentry-samples/kmp-app-mvvm-di/iosApp.xcodeproj -scheme iosApp -configuration Debug -sdk iphonesimulator -arch arm64 # Build all targets, run tests and checks api compile: checkApi detekt buildProject buildAppleSamples # We stop gradle at the end to make sure the cache folders # don't contain any lock files and are free to be cached. stop: ./gradlew --stop # Create coverage reports createCoverageReports: ./gradlew koverXmlReport