-
Notifications
You must be signed in to change notification settings - Fork 17
/
include.nmml
70 lines (58 loc) · 4.8 KB
/
include.nmml
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
62
63
64
65
66
67
68
69
70
<?xml version="1.0" encoding="utf-8"?>
<project>
<classpath name="src" />
<!-- android -->
<java path="project/android" if="android"/>
<ndll name="HypFacebook" if="android"/>
<echo value='|----------------------------------------------------------------------------|' if="android"/>
<echo value='| /!\ [HypFacebook] /!\ |' if="android"/>
<echo value='|----------------------------------------------------------------------------|' if="android"/>
<echo value='| Add the LoginActivity to your AndroidManifest.xml |' if="android"/>
<echo value="|----------------------------------------------------------------------------|" if="android"/>
<echo value='| Copy the MainActivity.java to the java src folder with your package name. |' if="android"/>
<echo value='| Merge if needed with other extensions. |' if="android"/>
<echo value='| Example with the template tag in the nmml file : |' if="android"/>
<echo value='| <template path="Export/android/bin/MainActivityFacebook.java" |' if="android"/>
<echo value='| rename="src/my/package/name/MainActivity.java"/> |' if="android"/>
<echo value="|----------------------------------------------------------------------------|" if="android"/>
<template path="/templates/android/MainActivity.java" rename="MainActivityFacebook.java" if="android"/>
<template path="/templates/android/libs/android-support-v4.jar" rename="libs/android-support-v4.jar" if="android"/>
<template path="/templates/android/res" rename="res" if="android"/>
<!-- ios -->
<ndll name="HypFacebook" if="ios"/>
<section if="ios">
<echo value='|----------------------------------------------------------------------------|' if="ios"/>
<echo value='| /!\ [HypFacebook] /!\ |' if="ios"/>
<echo value='|----------------------------------------------------------------------------|' if="ios"/>
<echo value='| Add a FacebookDisplayName key in your app-Info.plist with your app name: |' if="ios"/>
<echo value='| <key>FacebookDisplayName</key> |' if="ios"/>
<echo value='| <string>_________</string> |' if="ios"/>
<echo value='| Add a CFBundleURLTypes key in your app-Info.plist with "fb<appid>": |' if="ios"/>
<echo value='| <key>CFBundleURLTypes</key> |' if="ios"/>
<echo value='| <array> |' if="ios"/>
<echo value='| <dict> |' if="ios"/>
<echo value='| <key>CFBundleURLSchemes</key> |' if="ios"/>
<echo value='| <array> |' if="ios"/>
<echo value='| <string>fb_______________</string> |' if="ios"/>
<echo value='| </array> |' if="ios"/>
<echo value='| </dict> |' if="ios"/>
<echo value='| </array> |' if="ios"/>
<echo value="|----------------------------------------------------------------------------|" if="ios"/>
<echo value='| Also mind to add the FacebookSDK.framework and the bundles, |' if="ios"/>
<echo value='| to the framework folder in XCode before building. Check that you |' if="ios"/>
<echo value='| choose "Create groups for any added folders" |' if="ios"/>
<echo value="| and deselect 'Copy items into destination group's folder (if needed)'. |" if="ios"/>
<echo value="|----------------------------------------------------------------------------|" if="ios"/>
<echo value="| Check Other Linker Flags that you have -fobjc-arc and -ObjC |" if="ios"/>
<echo value="|----------------------------------------------------------------------------|" if="ios"/>
<echo value="| If you target ios < 6, toggle Security, Social, Accounts and AdSupport |" if="ios"/>
<echo value="| to optional. |" if="ios"/>
<echo value="|----------------------------------------------------------------------------|" if="ios"/>
<ios linker-flags="-fobjc-arc -ObjC" />
<dependency name="Security.framework" />
<dependency name="Social.framework" />
<dependency name="Accounts.framework" />
<dependency name="AdSupport.framework"/>
<dependency name="sqlite3"/>
</section>
</project>