-
Notifications
You must be signed in to change notification settings - Fork 0
/
NOTES
62 lines (40 loc) · 1.98 KB
/
NOTES
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
61
==Setup Your Repository==
The main foursquared repo is at http://joelapenna.com/git/foursquared.git
*Some files must be created in order for the tests and source to build.*
Templates are available in examples/
+ Create: main/res/values/credentials.xml
+ Create: tests/src/com/joelapenna/foursquared/test/TestConstants.java
+ Create: main/src/com/joelapenna/foursquard/FoursquaredSettings.java
Optional if using ant to build instead of Eclipse:
+ Create: main/local.properties
==Setting up Eclipse==
Step Zero:
Install some eclipse/ant/sdk awesomeness.
http://developer.android.com/sdk/index.html
Then, you have to make sure some eclipse build settings are exactly correct. From preferences:
Java > Compiler > Compiler Compliance Level - Set to "1.6"
Java > Installed JREs - Should list only something Java6/1.6 related.
Java > Installed JREs > Execution Environment - Set compatible JRE for
"JavaSE-1.6"
===Eclipse Preferences===
Use the files in examples/eclipse to set up your import order formatting and cleanup. You should enable auto-clean-up on save as well.
Java > Code Style > Cleanup - Import examples/eclipse/cleanup.xml
Java > Code Style > Formatter - Import examples/eclipse/formatting.xml
Java > Code Style > Organize Imports - Import examples/eclipse/importorder
In general, we follow the android style guide:
http://source.android.com/submit-patches/code-style-guide
===Setting up foursqure projects===
====Real foursquare projects====
File > Import > Existing project - Browse to $foursquared/main
File > Import > Existing project - Browse to $foursquared/tests
Next, you'll want to set up your project's formatting and import settings using the files in examples/eclipse
=== Building a release ===
Update credentials.xml
google_maps_api_key
dumpcatcher_product_name
dumpcatcher_product_key
dumpcatcher_secret
Update FoursquaredSettings.java
Disable all debugging DEBUG_*
Disable using the debug_server USE_DEBUG_SERVER
enable using dumpcatcher USE_DUMPCATCHER