@@ -13,7 +13,7 @@ source 'https://github.com/CocoaPods/Specs.git' # Default Cocoapods URL
1313source ' https://github.com/hove-io/Podspecs.git' # Around Me podspec URL
1414
1515target ' YOUR_PROJECT_SCHEME' do
16- pod ' AroundMeSDK' , ' 3.10.2 ' # Around Me Pod definition
16+ pod ' AroundMeSDK' , ' 4.1.0 ' # Around Me Pod definition
1717end
1818
1919# Required for XCFramework
@@ -39,15 +39,19 @@ This module is set up by calling `AroundMe.shared.initialize()` method which tak
3939| Name | Required | Description | Type | Example
4040| --- | :---:| --- | :---: | :---: |
4141| ` coverage ` | :material-check: | Navitia coverage | ` String ` | ` fr-idf ` |
42+ | ` token ` | :material-check: | Navitia token | ` String ` | ` ABCD-1234-... ` |
43+ | ` timeZone ` | :material-check: | Time zone | ` String ` | ` Europe/Paris ` |
4244| ` env ` | :material-check: | Navitia environment | ` String ` | ` PROD ` |
4345| ` colors ` | :material-check: | Define the custom colors | [ ` AroundMeColorsConfiguration ` ] ( ../../getting_started/#around-me-color ) | - |
46+ | ` unifiedColors ` | :material-close: | Define the custom colors | [ ` UnifiedColorsConfiguration ` ] ( ../../getting_started/#unified-colors ) | - |
4447| ` fonts ` | :material-close: | Use custom fonts | [ ` AroundMeFontsConfiguration ` ] ( ../../getting_started/#custom-font ) | - |
4548| ` lineResources ` | :material-close: | List of transport lines resource IDs | [ ` [LineResource] ` ] ( ../../getting_started/#line-resource ) | - |
4649| ` modeResources ` | :material-close: | List of transport modes resource IDs | [ ` [ModeResource] ` ] ( ../../getting_started/#mode-resource ) | - |
47- | ` transportCategories ` | :material-check: | List of supported transport modes | [ ` [TransportCategory] ` ] ( ../../getting_started/#transport-category ) | - |
4850| ` poiCategories ` | :material-close: | List of available POIs | [ ` [PoiCategory] ` ] ( ../../getting_started/#poi-category ) | - |
4951| ` providerResources ` | :material-close: | Transport providers configuration | [ ` [ProviderResource] ` ] ( ../../getting_started/#provider-resource ) | - |
5052| ` titleResources ` | :material-close: | Screens titles customization | [ ` AroundMeTitlesResources ` ] ( ../../getting_started/#around-me-title-resource ) | - |
53+ | ` iconsResources ` | :material-close: | List of icon resource names | [ ` AroundMeIconsResources ` ] ( ../../getting_started/#icon-resource ) | - |
54+ | ` transportCategories ` | :material-close: | List of supported transport modes | [ ` [TransportCategory] ` ] ( ../../getting_started/#transport-category ) | - |
5155| ` features ` | :material-close: | Enable/disable some features | [ ` AroundMeFeaturesConfiguration ` ] ( ../../getting_started/#around-me-features ) | - |
5256
5357You can also call the ` initialize() ` method with the global JSON configuration file added to your application bundle:
@@ -100,14 +104,24 @@ You can also call the `initialize()` method with the global JSON configuration f
100104 primaryColor: "#88819f",
101105 secondaryColor: "#8faa96"
102106 )
103-
107+ let disruptionsColorsConfiguration = DisruptionsColorsConfiguration(
108+ information: "#22a824",
109+ nonBlocking: "#faa12d",
110+ blocking: "#e62c29"
111+ )
112+ let unifiedColorsConfiguration = UnifiedColorsConfiguration(
113+ disruptions: disruptionsColorsConfiguration
114+ )
115+
104116 try AroundMe.shared.initialize(
105117 coverage: "fr-idf",
106118 token: "your_token",
119+ timeZone: "your_contry",
107120 env: "PROD",
108121 colors: aroundmeColorsConfiguration,
109- transportCategories: transportCategories
110- )
122+ unifiedColors: unifiedColorsConfiguration,
123+ transportCategories: transportCategories,
124+ )
111125 } catch {
112126 Logger.error("%@", String(
113127 format: "Around Me SDK cannot be initialized! %@",
@@ -141,7 +155,7 @@ If you want to use the `rootViewController` as a `ChildViewController` of your `
141155
142156 ```swift
143157 navigationController?.pushViewController(
144- trafficViewController ,
158+ aroundMeViewController ,
145159 animated: false
146160 )
147161 ```
@@ -150,7 +164,7 @@ If you want to use the `rootViewController` as a `ChildViewController` of your `
150164
151165 ```swift
152166 yourViewController.addChild(UINavigationController(
153- rootViewController: trafficViewController
167+ rootViewController: aroundMeViewController
154168 ))
155169 ```
156170
0 commit comments