Skip to content

Commit

Permalink
added some stuff for new platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierlacot committed Nov 15, 2013
1 parent bef4258 commit 0a13def
Show file tree
Hide file tree
Showing 17 changed files with 177 additions and 12 deletions.
Binary file added Resources/iphone/Default-568h@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/mobileweb/appicon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions Resources/mobileweb/apple_startup_images/README
@@ -0,0 +1,8 @@
These startup images are used by iPhone and iPad apps that are installed to the
home screen. These images are displayed before the splash screen is displayed.

If you want to create a new splash screen, it is recommended that you start by
modifying the files in the adjacent "splash" folder, then take screenshots of
device, crop, and save into this directory. This is the best way to avoid visual
artifacts when the app transitions from the Apple startup images to the splash
screen assets.
49 changes: 49 additions & 0 deletions Resources/mobileweb/splash/README
@@ -0,0 +1,49 @@
This folder contains assets to make the startup splash screen assets. Splash
screens are made up of HTML and CSS. This allows you the flexibility to
customize your splash screen to fit a variety of screen sizes and orientations.


splash.html
-----------
Contains an HTML fragment that is inserted into a div tag with an id="splash".
You can choose to leave this file empty. You can put <script> tags in this file,
though it is not recommended.

Currently, the HTML code is NOT minified before being inserted into the page.


splash.css
----------
Contains the styles used to control the display of the HTML. In addition to
styling the default splash div, you can style other HTML elements.

One advantage of using CSS background images in your splash screen is the images
will be inlined in the CSS using data: URIs. It's best to keep the size of your
images as small as possible. You can use PNG, JPG, or GIF images. You should use
an image optimization tool to remove unnecessary meta data from the images such
as smushit.com or crushpng.

It is recommended that you develop your splash screen on an iPhone-sized screen
so that you make your splash screen look good on small screens.

Additionally, it is recommended that you use CSS media queries to tweak the
layout for various screen sizes.

The CSS code is minified when your mobile web application is packaged.


Apple Startup Images
--------------------
After crafting your startup screen, it is recommended that you:

1) Create a sample application with an empty app.js
2) Run your sample app in both the iphone and ipad simulator
3) Take screenshots of your splash screen in both portrait and landscape
4) Crop the screenshots to remove the status bar from the top
5) Save the images in the Resources/mobileweb/apple_startup_images directory

These steps are the best way to avoid visual artifacts when the app transitions
from the Apple startup images to the splash screen assets.

It is recommended you save these images in the JPG format so that these images
download faster.
Binary file added Resources/mobileweb/splash/appc.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 60 additions & 0 deletions Resources/mobileweb/splash/splash.css
@@ -0,0 +1,60 @@
#splash {
background: #9a0707;
background: -moz-linear-gradient(top,#9a0707 0%,#5c0404 100%);
background: -webkit-gradient(linear,left top,left bottom,color-stop(0%,#9a0707),color-stop(100%,#5c0404));
background: -webkit-linear-gradient(top,#9a0707 0%,#5c0404 100%);
background: -o-linear-gradient(top,#9a0707 0%,#5c0404 100%);
background: -ms-linear-gradient(top,#9a0707 0%,#5c0404 100%);
background: linear-gradient(top,#9a0707 0%,#5c0404 100%);
-webkit-box-shadow: inset 0px 0px 15px 6px rgba(0,0,0,0.5);
-moz-box-shadow: inset 0px 0px 15px 6px rgba(0,0,0,0.5);
box-shadow: inset 0px 0px 15px 6px rgba(0,0,0,0.5);
bottom: 0;
min-height: 300px;
left: 0;
position: fixed;
right: 0;
top: 0;
}

#splash:before {
background: url(appc.png) no-repeat 0 0;
content: "";
height: 150px;
left: 50%;
margin-left: -85px;
position: absolute;
top: 22%;
width: 170px;
}

#splash:after {
background: url(titanium.png) no-repeat 0 0;
content: "";
height: 48px;
left: 50%;
margin-left: -105px;
position: absolute;
bottom: 15%;
width: 200px;
}

@media all and (max-height: 320px) {
#splash:before {
top: 15%;
}

#splash:after {
bottom: 12%;
}
}

@media all and (min-height: 699px) {
#splash:before {
top: 25%;
}

#splash:after {
bottom: 25%;
}
}
Empty file.
Binary file added Resources/mobileweb/splash/titanium.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/tizen/appicon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 8 additions & 8 deletions manifest
@@ -1,8 +1,8 @@
#appname: joliDemo
#publisher: xavier
#url: http://lacot.org/
#image: appicon.png
#appid: com.jolijs.demo
#desc: undefined
#type: mobile
#guid: 53f55927-68cb-4e07-b056-83d5c7d04800
#appname:joliDemo
#publisher:xavier
#url:http://lacot.org/
#image:appicon.png
#appid:com.jolijs.demo
#desc:No description provided
#type:ipad
#guid:53f55927-68cb-4e07-b056-83d5c7d04800
56 changes: 52 additions & 4 deletions tiapp.xml
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<ti:app xmlns:ti="http://ti.appcelerator.org">
<?xml version="1.0" encoding="UTF-8"?><ti:app xmlns:ti="http://ti.appcelerator.org">
<sdk-version>3.1.1.GA</sdk-version>
<deployment-targets>
<target device="tizen">false</target>
<target device="tizen">true</target>
<target device="mobileweb">true</target>
<target device="iphone">true</target>
<target device="ipad">true</target>
Expand Down Expand Up @@ -38,4 +37,53 @@
</iphone>
<android xmlns:android="http://schemas.android.com/apk/res/android"/>
<modules/>
</ti:app>
<tizen xmlns:tizen="http://ti.appcelerator.org" appid="1pd9UaEoU7">
<tizen:privilege name="http://tizen.org/privilege/system"/>
<tizen:privilege name="http://tizen.org/privilege/tizen"/>
<tizen:privilege name="http://tizen.org/privilege/systeminfo"/>
<tizen:privilege name="http://tizen.org/privilege/system"/>
<tizen:privilege name="http://tizen.org/privilege/setting"/>
<tizen:privilege name="http://tizen.org/privilege/secureelement"/>
<tizen:privilege name="http://tizen.org/privilege/push"/>
<tizen:privilege name="http://tizen.org/privilege/power"/>
<tizen:privilege name="http://tizen.org/privilege/package.info"/>
<tizen:privilege name="http://tizen.org/privilege/notification.write"/>
<tizen:privilege name="http://tizen.org/privilege/notification.read"/>
<tizen:privilege name="http://tizen.org/privilege/notification"/>
<tizen:privilege name="http://tizen.org/privilege/nfc.tag"/>
<tizen:privilege name="http://tizen.org/privilege/nfc.p2p"/>
<tizen:privilege name="http://tizen.org/privilege/nfc.common"/>
<tizen:privilege name="http://tizen.org/privilege/nfc.admin"/>
<tizen:privilege name="http://tizen.org/privilege/networkbearerselection"/>
<tizen:privilege name="http://tizen.org/privilege/messaging.write"/>
<tizen:privilege name="http://tizen.org/privilege/messaging.write"/>
<tizen:privilege name="http://tizen.org/privilege/messaging.send"/>
<tizen:privilege name="http://tizen.org/privilege/messaging.read"/>
<tizen:privilege name="http://tizen.org/privilege/filesystem.write"/>
<tizen:privilege name="http://tizen.org/privilege/filesystem.read"/>
<tizen:privilege name="http://tizen.org/privilege/download"/>
<tizen:privilege name="http://tizen.org/privilege/datasync"/>
<tizen:privilege name="http://tizen.org/privilege/datacontrol.consumer"/>
<tizen:privilege name="http://tizen.org/privilege/content.write"/>
<tizen:privilege name="http://tizen.org/privilege/content.read"/>
<tizen:privilege name="http://tizen.org/privilege/contact.write"/>
<tizen:privilege name="http://tizen.org/privilege/contact.read"/>
<tizen:privilege name="http://tizen.org/privilege/callhistory.write"/>
<tizen:privilege name="http://tizen.org/privilege/callhistory.read"/>
<tizen:privilege name="http://tizen.org/privilege/calendar.write"/>
<tizen:privilege name="http://tizen.org/privilege/calendar.read"/>
<tizen:privilege name="http://tizen.org/privilege/bluetooth.spp"/>
<tizen:privilege name="http://tizen.org/privilege/bluetooth.gap"/>
<tizen:privilege name="http://tizen.org/privilege/bluetooth.admin"/>
<tizen:privilege name="http://tizen.org/privilege/appmanager.kill"/>
<tizen:privilege name="http://tizen.org/privilege/appmanager.certificate"/>
<tizen:privilege name="http://tizen.org/privilege/application.read"/>
<tizen:privilege name="http://tizen.org/privilege/application.launch"/>
<tizen:privilege name="http://tizen.org/privilege/alarm"/>
<tizen:privilege name="http://tizen.org/privilege/fullscreen"/>
<tizen:privilege name="http://tizen.org/privilege/location"/>
<tizen:privilege name="http://tizen.org/privilege/mediacapture"/>
<tizen:privilege name="http://tizen.org/privilege/unlimitedstorage"/>
<access origin="*" subdomains="true"/>

</tizen></ti:app>

0 comments on commit 0a13def

Please sign in to comment.