forked from forcedotcom/SalesforceMobileSDK-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrebuild.sh
executable file
·55 lines (44 loc) · 1.37 KB
/
rebuild.sh
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
#!/bin/bash
# The goal here is to clean all binaries
# and to rebuild the main SDK binaries and dependencies
CURRENT_DIR=`pwd`
echo "Clean OAuth library..."
cd $CURRENT_DIR/native/SalesforceOAuth/sfdc_build
ant clean
echo "Clean external libs..."
cd $CURRENT_DIR/external/RestKit/sfdc_build
ant clean
cd $CURRENT_DIR/external/callback-ios/sfdc_build
ant clean
echo "Clean Native and Hybrid SDK..."
cd $CURRENT_DIR/hybrid/sfdc_build
ant clean.full
cd $CURRENT_DIR/native/sfdc_build
ant clean.full
echo "Clean sample apps..."
cd $CURRENT_DIR/native/SampleApps/RestAPIExplorer/sfdc_build
ant clean
cd $CURRENT_DIR/hybrid/SampleApps/ContactExplorer/sfdc_build
ant clean
cd $CURRENT_DIR/hybrid/SampleApps/VFConnector/sfdc_build
ant clean
echo "Rebuilding OAuth library..."
cd $CURRENT_DIR/native/SalesforceOAuth/sfdc_build
ant clean all
echo "Rebuilding SalesforceSDK..."
cd $CURRENT_DIR/native/SalesforceSDK/sfdc_build
ant clean buildDist
echo "Building and installing Hybrid SDK..."
cd $CURRENT_DIR/hybrid/sfdc_build
ant install
echo "Building and installing Native SDK..."
cd $CURRENT_DIR/native/sfdc_build
ant install
# build sample apps with dependencies
echo "Building sample apps with dependencies..."
cd $CURRENT_DIR/native/SampleApps/RestAPIExplorer/sfdc_build
ant
cd $CURRENT_DIR/hybrid/SampleApps/ContactExplorer/sfdc_build
ant
cd $CURRENT_DIR/hybrid/SampleApps/VFConnector/sfdc_build
ant