-
Notifications
You must be signed in to change notification settings - Fork 3
/
include.nmml
37 lines (30 loc) · 2.53 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
<?xml version="1.0" encoding="utf-8"?>
<project>
<ndll name="hypnotif" if="mobile"/>
<classpath name="src" />
<!-- android -->
<java path="/project/android" if="android"/>
<template path="/templates/android/libs/gcm.jar" rename="libs/gcm.jar" if="android"/>
<template path="/templates/android/libs/android-support-v4.jar" rename="libs/android-support-v4.jar" if="android"/>
<echo value='|----------------------------------------------------------------------------|' if="android"/>
<echo value='| /!\ [HypNotif] /!\ |' if="android"/>
<echo value='|----------------------------------------------------------------------------|' if="android"/>
<echo value='| Add icon named "icon_notification.png" in res/drawable template folder: |' if="android"/>
<echo value='| Add "hypnotif_strings.xml" in res/values with sender id for GCM, |' if="android"/>
<echo value='| and add this line to your nmml : |' if="android"/>
<echo value='| <template path="templates/android/res" rename="res" if="android"/> |' if="android"/>
<echo value='| See the res folder in the extension templates. |' if="android"/>
<echo value="|----------------------------------------------------------------------------|" if="android"/>
<echo value='| Also mind to change permissions, |' if="android"/>
<echo value='| and add the receiver and service in your AndroidManifest.xml. |' if="android"/>
<echo value='| See example manifest in the templates folder. |' 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/MainActivityHypNotif.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="MainActivityHypNotif.java" if="android"/>
<!-- ios -->
</project>