Skip to content

Commit 09dbc8c

Browse files
committed
edit android icon name
1 parent 7c66205 commit 09dbc8c

File tree

2 files changed

+30
-28
lines changed

2 files changed

+30
-28
lines changed

platform/android/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def build(app, title, release):
1313
print("Failed to create android app")
1414
return
1515
os.system('rsync -a ./ %s/www --exclude=%s ' %(app,app))
16-
os.system('cp androidIcon.png %s' %(app))
16+
os.system('cp icon.png %s' %(app))
1717
os.system('cp config.xml %s' %(app))
1818
os.chdir(app)
1919

platform/android/dist/config.xml

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,33 @@
11
<?xml version='1.0' encoding='utf-8'?>
2-
<widget id="{{ domain | default('com.pureqml.app') }}" version="{{ version | default('1.0.0') }}" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
3-
<name>{{ title }}</name>
4-
<description>
2+
<widget id="{{ domain | default('com.pureqml.app') }}" version="{{ version | default('1.0.0') }}"
3+
xmlns="http://www.w3.org/ns/widgets"
4+
xmlns:cdv="http://cordova.apache.org/ns/1.0">
5+
<name>{{ title }}</name>
6+
<description>
57
{{ description | default('Override app description in manifest') }}
6-
</description>
7-
<author email="{{ author.email | default('[email protected]') if author is defined else '[email protected]' }}" href="{{ author.site | default('http://pureqml.com') if author is defined else 'http://pureqml.com' }}">
8+
</description>
9+
<author email="{{ author.email | default('[email protected]') if author is defined else '[email protected]' }}" href="{{ author.site | default('http://pureqml.com') if author is defined else 'http://pureqml.com' }}">
810
{{ author.name | default('John Doe') if author is defined else 'John Doe' }}
9-
</author>
10-
<content src="index.html" />
11-
<access origin="*" />
12-
<allow-intent href="http://*/*" />
13-
<allow-intent href="https://*/*" />
14-
<allow-intent href="tel:*" />
15-
<allow-intent href="sms:*" />
16-
<allow-intent href="mailto:*" />
17-
<allow-intent href="geo:*" />
18-
<platform name="android">
19-
<allow-intent href="market:*" />
20-
<icon src="{{ androidIcon.ldpi | default('androidIcon.png') if androidIcon is defined else 'androidIcon.png' }}" density="ldpi" />
21-
<icon src="{{ androidIcon.mdpi | default('androidIcon.png') if androidIcon is defined else 'androidIcon.png' }}" density="mdpi" />
22-
<icon src="{{ androidIcon.hdpi | default('androidIcon.png') if androidIcon is defined else 'androidIcon.png' }}" density="hdpi" />
23-
<icon src="{{ androidIcon.xhdpi | default('androidIcon.png') if androidIcon is defined else 'androidIcon.png' }}" density="xhdpi" />
24-
</platform>
25-
<platform name="ios">
26-
<allow-intent href="itms:*" />
27-
<allow-intent href="itms-apps:*" />
28-
</platform>
29-
<engine name="android" spec="^6.2.3" />
30-
<plugin name="cordova-plugin-whitelist" spec="^1.3.2" />
11+
</author>
12+
<content src="index.html" />
13+
<access origin="*" />
14+
<allow-intent href="http://*/*" />
15+
<allow-intent href="https://*/*" />
16+
<allow-intent href="tel:*" />
17+
<allow-intent href="sms:*" />
18+
<allow-intent href="mailto:*" />
19+
<allow-intent href="geo:*" />
20+
<platform name="android">
21+
<allow-intent href="market:*" />
22+
<icon src="{{ icon.ldpi | default('icon.png') if icon is defined else 'icon.png' }}" density="ldpi" />
23+
<icon src="{{ icon.mdpi | default('icon.png') if icon is defined else 'icon.png' }}" density="mdpi" />
24+
<icon src="{{ icon.hdpi | default('icon.png') if icon is defined else 'icon.png' }}" density="hdpi" />
25+
<icon src="{{ icon.xhdpi | default('icon.png') if icon is defined else 'icon.png' }}" density="xhdpi" />
26+
</platform>
27+
<platform name="ios">
28+
<allow-intent href="itms:*" />
29+
<allow-intent href="itms-apps:*" />
30+
</platform>
31+
<engine name="android" spec="^6.2.3" />
32+
<plugin name="cordova-plugin-whitelist" spec="^1.3.2" />
3133
</widget>

0 commit comments

Comments
 (0)