-
Notifications
You must be signed in to change notification settings - Fork 824
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed 'web' demo, added VSCode projects, added launch screens, upda…
…ted README files of samples, added icon to 'demo' project
- Loading branch information
1 parent
4c87713
commit 37ee17b
Showing
113 changed files
with
305 additions
and
594 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Debug (Android device)", | ||
"type": "swf", | ||
"request": "attach", | ||
"platform": "android", | ||
"connect": true, | ||
"preLaunchTask": "Adobe AIR: package Android debug - asconfig.json" | ||
}, | ||
{ | ||
"name": "Debug (iOS device)", | ||
"type": "swf", | ||
"request": "attach", | ||
"platform": "ios", | ||
"connect": true, | ||
"preLaunchTask": "Adobe AIR: package iOS debug - asconfig.json" | ||
}, | ||
{ | ||
"name": "Debug (AIR Simulator)", | ||
"type": "swf", | ||
"request": "launch", | ||
"profile": "mobileDevice", | ||
"screensize": "640x960:640x960", // iPhone 4S, a modern classic! ;) | ||
"screenDPI": 326, | ||
"versionPlatform": "IOS", | ||
"preLaunchTask": "ActionScript: compile debug - asconfig.json" | ||
}, | ||
{ | ||
"name": "Debug (iOS Simulator)", | ||
"type": "swf", | ||
"request": "attach", | ||
"platform": "ios_simulator", | ||
"preLaunchTask": "Adobe AIR: package iOS simulator debug - asconfig.json" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
How to build this Sample | ||
======================== | ||
About this Demo | ||
=============== | ||
|
||
The mobile demo shows some of the features of Starling. It runs on both iOS and Android devices. | ||
The mobile demo showcases some of the features of Starling. It runs on both iOS and Android devices. | ||
|
||
This folder contains just the Startup-code and AIR settings. The rest of the code, as well as the assets, are found in the "demo" folder, and needs to be referenced in your project. | ||
## Building the project | ||
|
||
If you are working with Flash Builder, you can import the project using "File - Import Flash Builder Project". However, the project requires you to set up an Eclipse workspace path pointing to Starling. To do that, enter "Preferences - General - Workspace - Linked Resources" and add a new path variable called STARLING_FRAMEWORK that points to the root of the Starling-Framework directory. | ||
Users of "IntelliJ IDEA" can open the project that's stored in `starling/build/idea`. | ||
It has everything set up. | ||
|
||
If you are using another IDE, it might unfortunately be a little more complicated. You have to create a project that is based in this folder and add the following source paths to your project: | ||
Users of "Visual Studio Code" can run this demo like this: | ||
|
||
* '../demo/src' -> the actual code of the demo | ||
* '../demo/media' -> the assets of the demo | ||
* '../demo/system' -> the system graphics (icons, launch images) of the demo | ||
1. Install the "ActionScript & MXML" extension from Josh Tynjala and point it to the latest AIR SDK. | ||
2. Open the project folder in Visual Studio Code. | ||
3. (Optional) To run on an actual device, adapt the "signingOptions" in `asconfig.json` so that they point to your local development keys from Apple and Google. | ||
4. Enter the "Run and Debug" menu in the sidebar and start of one of the available configurations. | ||
|
||
Starling itself can either be linked via a source path, or by referencing its swc file. | ||
|
||
If your IDE doesn't allow adding source paths outside the project root, I recommend you create a new folder where you manually merge the "demo" and "demo_web" folders together. Then add just the "media" and "system" folders to your source paths (that's required so that their contents is added to the compiled application package). | ||
|
||
**Note:** You need at least AIR 3.2 to deploy AIR applications on a mobile device. Furthermore, you need the development certificates and profiles (provided by Apple or Google). | ||
All others, please refer to the documentation of their respective IDE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"config": "airmobile", | ||
"compilerOptions": { | ||
"output": "out/demo.swf", | ||
"source-path": [ | ||
"src", | ||
"../../starling/src" | ||
] | ||
}, | ||
"mainClass": "Demo", | ||
"application": "src/Demo-app.xml", | ||
"airOptions": { | ||
"android": { | ||
"output": "out/demo.apk", | ||
"listen": true, | ||
"signingOptions": { | ||
"storetype": "JKS", | ||
"keystore": "../../../library/android/dev-key.keystore" | ||
}, | ||
"resdir": "system/res" | ||
}, | ||
"ios": { | ||
"output": "out/demo.ipa", | ||
"listen": true, | ||
"signingOptions": { | ||
"storetype": "pkcs12", | ||
"keystore": "../../../library/ios/daniel_dev_certificate.p12", | ||
"provisioning-profile": "../../../library/ios/ios_dev_profile.mobileprovision" | ||
} | ||
}, | ||
"ios_simulator": { | ||
"output": "out/demo-simulator.ipa", | ||
"platformsdk": "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk", | ||
"target": "ipa-debug-interpreter-simulator", | ||
"signingOptions": { | ||
"storetype": "pkcs12", | ||
"keystore": "../../../library/ios/daniel_dev_certificate.p12", | ||
"provisioning-profile": "../../../library/ios/ios_dev_profile.mobileprovision" | ||
} | ||
}, | ||
"files": [ | ||
{ | ||
"file": "assets", | ||
"path": "assets" | ||
}, | ||
{ | ||
"file": "system", | ||
"path": "" | ||
} | ||
] | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file added
BIN
+1.95 KB
samples/demo_mobile/system/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+896 Bytes
samples/demo_mobile/system/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<background android:drawable="@mipmap/icon_background"/> | ||
<foreground android:drawable="@mipmap/icon_foreground"/> | ||
</adaptive-icon> |
5 changes: 5 additions & 0 deletions
5
samples/demo_mobile/system/res/mipmap-anydpi-v26/icon_round.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<background android:drawable="@mipmap/icon_background"/> | ||
<foreground android:drawable="@mipmap/icon_foreground"/> | ||
</adaptive-icon> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.