-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Makefile
60 lines (46 loc) · 1.68 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
.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