Commit 9518fee9 authored by Benoit Lavenier's avatar Benoit Lavenier

Merge branch 'feature/ios-support' into 'master'

Feature/ios support

See merge request clients/cesium-grp/cesium!568
parents 7f12124b 2235dd92
......@@ -29,11 +29,9 @@
<preference name="xwalkMultipleApk" value="false" />
<preference name="android-minSdkVersion" value="16" />
<preference name="android-targetSdkVersion" value="26" />
<!-- issue #833 -->
<preference name="StatusBarOverlaysWebView" value="false" />
<preference name="StatusBarBackgroundColor" value="#000" />
<preference name="StatusBarStyle" value="lightcontent" />
<allow-navigation href="*" />
<feature name="StatusBar">
<param name="ios-package" onload="true" value="CDVStatusBar" />
......
......@@ -102,7 +102,7 @@ ionic state reset
ionic run ios
```
6. Build binaries :
6. Build binaries for emulator :
```bash
ionic build ios
......@@ -111,4 +111,54 @@ ionic build ios
## Publishing to Apple store
- Follow this steps (section `iOS Publishing`): https://ionicframework.com/docs/v1/guide/publishing.html
\ No newline at end of file
### Pre-requisite
Ensure you have a valid Certificate (with your private key)
and Distribution Provisioning Profile associated to it in the OSX Keychain.
See: https://help.apple.com/developer-account/#/devbfa00fef7
### Archive and upload to Apple Store Connect
1. Prepare for iOS in release mode:
```bash
ionic prepare ios --release --prod
```
2. Generate archive for iOS generic device
```bash
cd platforms/ios
mkdir build
xcodebuild -workspace Cesium.xcworkspace -scheme Cesium -sdk iphoneos -configuration AppStoreDistribution archive -archivePath $PWD/build/Cesium.xcarchive
```
4. Create an `export.plist` file with the following content
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>method</key>
<string>app-store</string>
<key>teamID</key>
<string>YOUR_TEAM_ID</string>
</dict>
</plist>
```
Replace `YOUR_TEAM_ID` by the Team ID associated to your Apple Developer Account (see Membership section on https://developer.apple.com/account/)
3. generate IPA for Apple Store
```bash
xcodebuild -exportArchive -archivePath $PWD/build/Cesium.xcarchive -exportOptionsPlist $PWD/export.plist -exportPath $PWD/build
```
4. Upload to Apple Store Connect:
```bash
/Applications/Xcode.app/Contents/Applications/Application\ Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Support/altool --upload-app -f $PWD/build/Cesium.ipa -u YOUR_APPLE_ID
```
The command will prompt for your password, if you use two-factor authentication, you'll need to generate an application specific password for this command (see: https://appleid.apple.com/account/manage)
5. Go to `https://appstoreconnect.apple.com/`, then `My Apps` and publish your App from there.
\ No newline at end of file
......@@ -30,7 +30,7 @@
"new": "https://git.duniter.org/clients/cesium-grp/cesium/issues/new"
},
"dependencies": {
"cordova": "^6.5.0",
"cordova": "^7.1.0",
"cordova-android": "^6.2.3",
"cordova-ios": "^4.5.5",
"cordova-plugin-camera": "^2.4.1",
......
......@@ -1866,16 +1866,16 @@ $ionicon-var-badge-editable: $ionicon-var-edit + "\00a0";
height: 150px;
padding-right: 0px !important;
.platform-ios & {
height: 180px;
.platform-ios.platform-cordova & {
height: calc(env(safe-area-inset-top) + 160px);
}
.hero {
height: 150px;
box-shadow: none; // not need (define in bar-header)
.platform-ios & {
height: 160px;
.platform-ios.platform-cordova & {
height: calc(env(safe-area-inset-top) + 160px);
}
.content {
......@@ -1887,8 +1887,8 @@ $ionicon-var-badge-editable: $ionicon-var-edit + "\00a0";
.has-header {
top: 150px;
.platform-ios & {
top: 180px;
.platform-ios.platform-cordova & {
top: calc(env(safe-area-inset-top) + 160px);
}
}
}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -97,4 +97,4 @@ angular.module("cesium.config", [])
"newIssueUrl": "https://git.duniter.org/clients/cesium-grp/cesium/issues/new"
})
;
\ No newline at end of file
;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment