forked from jboss/ticket-monster
-
Notifications
You must be signed in to change notification settings - Fork 461
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Hybrid Mobile documentation for using linked folders.
Also updated Cordova plugins used as a result. The project structure now uses a Linked Folder, instead of a symbolic link.
- Loading branch information
1 parent
dfb3b59
commit 9814ec0
Showing
97 changed files
with
8,577 additions
and
534 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 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 @@ | ||
{"source":{"type":"registry","id":"org.apache.cordova.device"}} |
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,37 @@ | ||
<!-- | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
--> | ||
|
||
# Contributing to Apache Cordova | ||
|
||
Anyone can contribute to Cordova. And we need your contributions. | ||
|
||
There are multiple ways to contribute: report bugs, improve the docs, and | ||
contribute code. | ||
|
||
For instructions on this, start with the | ||
[contribution overview](http://cordova.apache.org/#contribute). | ||
|
||
The details are explained there, but the important items are: | ||
- Sign and submit an Apache ICLA (Contributor License Agreement). | ||
- Have a Jira issue open that corresponds to your contribution. | ||
- Run the tests so your patch doesn't break existing functionality. | ||
|
||
We look forward to your contributions! |
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 @@ | ||
Apache Cordova | ||
Copyright 2012 The Apache Software Foundation | ||
|
||
This product includes software developed at | ||
The Apache Software Foundation (http://www.apache.org/). |
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
206 changes: 206 additions & 0 deletions
206
cordova/plugins/org.apache.cordova.device/doc/de/index.md
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,206 @@ | ||
<!--- | ||
Licensed to the Apache Software Foundation (ASF) under one | ||
or more contributor license agreements. See the NOTICE file | ||
distributed with this work for additional information | ||
regarding copyright ownership. The ASF licenses this file | ||
to you under the Apache License, Version 2.0 (the | ||
"License"); you may not use this file except in compliance | ||
with the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, | ||
software distributed under the License is distributed on an | ||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations | ||
under the License. | ||
--> | ||
|
||
# org.apache.cordova.device | ||
|
||
Dieses Plugin definiert eine globale `device` -Objekt, das des Geräts Hard- und Software beschreibt. Das Objekt im globalen Gültigkeitsbereich ist es zwar nicht verfügbar bis nach dem `deviceready` Ereignis. | ||
|
||
document.addEventListener("deviceready", onDeviceReady, false); | ||
function onDeviceReady() { | ||
console.log(device.cordova); | ||
} | ||
|
||
|
||
## Installation | ||
|
||
cordova plugin add org.apache.cordova.device | ||
|
||
|
||
## Eigenschaften | ||
|
||
* device.cordova | ||
* device.model | ||
* device.platform | ||
* device.uuid | ||
* device.version | ||
|
||
## device.cordova | ||
|
||
Rufen Sie die Version von Cordova, die auf dem Gerät ausgeführt. | ||
|
||
### Unterstützte Plattformen | ||
|
||
* Amazon Fire OS | ||
* Android | ||
* BlackBerry 10 | ||
* Browser | ||
* Firefox OS | ||
* iOS | ||
* Tizen | ||
* Windows Phone 7 und 8 | ||
* Windows 8 | ||
|
||
## device.model | ||
|
||
Die `device.model` gibt den Namen der Modell- oder des Geräts zurück. Der Wert wird vom Gerätehersteller festgelegt und kann zwischen den Versionen des gleichen Produkts unterschiedlich sein. | ||
|
||
### Unterstützte Plattformen | ||
|
||
* Android | ||
* BlackBerry 10 | ||
* Browser | ||
* iOS | ||
* Tizen | ||
* Windows Phone 7 und 8 | ||
* Windows 8 | ||
|
||
### Kleines Beispiel | ||
|
||
// Android: Nexus One returns "Passion" (Nexus One code name) | ||
// Motorola Droid returns "voles" | ||
// BlackBerry: Torch 9800 returns "9800" | ||
// Browser: Google Chrome returns "Chrome" | ||
// Safari returns "Safari" | ||
// iOS: for the iPad Mini, returns iPad2,5; iPhone 5 is iPhone 5,1. Finden Sie unter http://theiphonewiki.com/wiki/index.php?title=Models / / Var-Modell = device.model; | ||
|
||
|
||
### Android Macken | ||
|
||
* Ruft den [Produktname][1] anstelle des [Modellnamens][2], das ist oft der Codename für die Produktion. Beispielsweise das Nexus One gibt `Passion` , und Motorola Droid gibt`voles`. | ||
|
||
[1]: http://developer.android.com/reference/android/os/Build.html#PRODUCT | ||
[2]: http://developer.android.com/reference/android/os/Build.html#MODEL | ||
|
||
### Tizen Macken | ||
|
||
* Gibt z. B. das Gerätemodell von dem Kreditor zugeordnet,`TIZEN` | ||
|
||
### Windows Phone 7 und 8 Macken | ||
|
||
* Gibt das vom Hersteller angegebenen Gerätemodell zurück. Beispielsweise gibt der Samsung-Fokus`SGH-i917`. | ||
|
||
## device.platform | ||
|
||
Name des Betriebssystems des Geräts zu erhalten. | ||
|
||
var string = device.platform; | ||
|
||
|
||
### Unterstützte Plattformen | ||
|
||
* Android | ||
* BlackBerry 10 | ||
* Browser4 | ||
* Firefox OS | ||
* iOS | ||
* Tizen | ||
* Windows Phone 7 und 8 | ||
* Windows 8 | ||
|
||
### Kleines Beispiel | ||
|
||
// Depending on the device, a few examples are: | ||
// - "Android" | ||
// - "BlackBerry 10" | ||
// - Browser: returns "MacIntel" on Mac | ||
// returns "Win32" on Windows | ||
// - "iOS" | ||
// - "WinCE" | ||
// - "Tizen" | ||
var devicePlatform = device.platform; | ||
|
||
|
||
### Windows Phone 7 Macken | ||
|
||
Windows Phone 7 Geräte melden die Plattform als`WinCE`. | ||
|
||
### Windows Phone 8 Macken | ||
|
||
Windows Phone 8 Geräte melden die Plattform als`Win32NT`. | ||
|
||
## device.uuid | ||
|
||
Des Geräts Universally Unique Identifier ([UUID][3] zu erhalten). | ||
|
||
[3]: http://en.wikipedia.org/wiki/Universally_Unique_Identifier | ||
|
||
var string = device.uuid; | ||
|
||
|
||
### Beschreibung | ||
|
||
Die Details wie eine UUID generiert wird werden vom Gerätehersteller und beziehen sich auf die Plattform oder das Modell des Geräts. | ||
|
||
### Unterstützte Plattformen | ||
|
||
* Android | ||
* BlackBerry 10 | ||
* iOS | ||
* Tizen | ||
* Windows Phone 7 und 8 | ||
* Windows 8 | ||
|
||
### Kleines Beispiel | ||
|
||
/ / Android: wird eine zufällige 64-Bit-Ganzzahl (als Zeichenfolge, wieder!) / / die ganze Zahl wird beim ersten Start des Geräts erzeugt / / / / BlackBerry: gibt die PIN-Nummer des Gerätes / / Dies ist eine neunstellige eindeutige Ganzzahl (als String, obwohl!) / / / / iPhone: (paraphrasiert aus der Dokumentation zur UIDevice-Klasse) / / liefert eine Reihe von Hash-Werte, die aus mehreren Hardware erstellt identifiziert. | ||
/ / Es ist gewährleistet, dass für jedes Gerät eindeutig sein und kann nicht gebunden werden / / an den Benutzer weitergeleitet. | ||
/ / Windows Phone 7: gibt einen Hash des Gerät + aktueller Benutzer, / / wenn der Benutzer nicht definiert ist, eine Guid generiert und wird weiter bestehen, bis die app deinstalliert wird / / Tizen: gibt das Gerät IMEI (International Mobile Equipment Identity oder IMEI ist eine Zahl / / einzigartig für jedes GSM- und UMTS-Handy. | ||
var deviceID = device.uuid; | ||
|
||
|
||
### iOS Quirk | ||
|
||
Die `uuid` auf iOS ist nicht eindeutig zu einem Gerät, aber für jede Anwendung, für jede Installation variiert. Es ändert sich, wenn Sie löschen und neu die app installieren, und möglicherweise auch beim iOS zu aktualisieren, oder auch ein Upgrade möglich die app pro Version (scheinbaren in iOS 5.1). Die `uuid` ist kein zuverlässiger Wert. | ||
|
||
### Windows Phone 7 und 8 Macken | ||
|
||
Die `uuid` für Windows Phone 7 die Berechtigung erfordert `ID_CAP_IDENTITY_DEVICE` . Microsoft wird diese Eigenschaft wahrscheinlich bald abzuschaffen. Wenn die Funktion nicht verfügbar ist, generiert die Anwendung eine persistente Guid, die für die Dauer der Installation der Anwendung auf dem Gerät gewährleistet ist. | ||
|
||
## device.version | ||
|
||
Version des Betriebssystems zu erhalten. | ||
|
||
var string = device.version; | ||
|
||
|
||
### Unterstützte Plattformen | ||
|
||
* Android 2.1 + | ||
* BlackBerry 10 | ||
* Browser | ||
* iOS | ||
* Tizen | ||
* Windows Phone 7 und 8 | ||
* Windows 8 | ||
|
||
### Kleines Beispiel | ||
|
||
// Android: Froyo OS would return "2.2" | ||
// Eclair OS would return "2.1", "2.0.1", or "2.0" | ||
// Version can also return update level "2.1-update1" | ||
// | ||
// BlackBerry: Torch 9800 using OS 6.0 would return "6.0.0.600" | ||
// | ||
// Browser: Returns version number for the browser | ||
// | ||
// iPhone: iOS 3.2 returns "3.2" | ||
// | ||
// Windows Phone 7: returns current OS version number, ex. on Mango returns 7.10.7720 | ||
// Tizen: returns "TIZEN_20120425_2" | ||
var deviceVersion = device.version; |
Oops, something went wrong.