forked from adobe/react-native-acpmedia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (30 loc) · 1.25 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
PROJECT_NAME = ACPMedia
setup:
(npm install)
(cd ios && pod deintegrate || true && pod install)
clean:
(rm -rf android/build && rm -rf ios/build)
(cd android && ./gradlew clean)
(cd ios && xcodebuild clean -workspace RCT${PROJECT_NAME}.xcworkspace -scheme RCT${PROJECT_NAME})
build-android:
(cd android && ./gradlew build -x lint)
build-ios: setup
(cd ios && xcodebuild build -workspace RCT${PROJECT_NAME}.xcworkspace -scheme RCT${PROJECT_NAME})
build-sample-android:
(cd sample/ACP*SampleApp/android && ./gradlew clean assembleRelease -x bundleReleaseJsAndAssets)
build-sample-ios:
(cd sample/ACP*SampleApp/ios && pod update)
(cd sample/ACP*SampleApp && npx react-native run-ios)
run-tests:
jest --testPathIgnorePatterns sample/ node_modules/ --modulePathIgnorePatterns sample/ --runInBand
run-tests-locally: setup
./node_modules/.bin/jest --testPathIgnorePatterns sample/ node_modules/ --modulePathIgnorePatterns sample/
copy-to-sample:
(cd sample/ACP*SampleApp/ && make sync)
# fetches the latest iOS & Android SDK and put them in the project
update-libs:
rm -rf acp-sdks # clean if needed
git clone https://github.com/Adobe-Marketing-Cloud/acp-sdks
cp -a acp-sdks/iOS/${PROJECT_NAME}/ ios/libs/ # copy iOS lib
sh update-android-sdk.sh
rm -rf acp-sdks