Skip to content

Commit

Permalink
fix(ios): ios 13 compatibility and css issues
Browse files Browse the repository at this point in the history
  • Loading branch information
azarz committed Dec 8, 2023
1 parent ec83b78 commit ca28e06
Show file tree
Hide file tree
Showing 11 changed files with 85 additions and 8 deletions.
2 changes: 2 additions & 0 deletions ios/App/App/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,7 @@
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<true/>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Votre position est nécessaire pour vous positionner sur la carte et calculer des itinéraires et isochrones à partir de votre position</string>
</dict>
</plist>
46 changes: 46 additions & 0 deletions ios/App/Podfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
PODS:
- Capacitor (5.2.2):
- CapacitorCordova
- CapacitorApp (5.0.6):
- Capacitor
- CapacitorCordova (5.2.2)
- CapacitorGeolocation (5.0.6):
- Capacitor
- CapacitorStatusBar (5.0.6):
- Capacitor
- CapacitorToast (5.0.6):
- Capacitor

DEPENDENCIES:
- "Capacitor (from `../../node_modules/@capacitor/ios`)"
- "CapacitorApp (from `../../node_modules/@capacitor/app`)"
- "CapacitorCordova (from `../../node_modules/@capacitor/ios`)"
- "CapacitorGeolocation (from `../../node_modules/@capacitor/geolocation`)"
- "CapacitorStatusBar (from `../../node_modules/@capacitor/status-bar`)"
- "CapacitorToast (from `../../node_modules/@capacitor/toast`)"

EXTERNAL SOURCES:
Capacitor:
:path: "../../node_modules/@capacitor/ios"
CapacitorApp:
:path: "../../node_modules/@capacitor/app"
CapacitorCordova:
:path: "../../node_modules/@capacitor/ios"
CapacitorGeolocation:
:path: "../../node_modules/@capacitor/geolocation"
CapacitorStatusBar:
:path: "../../node_modules/@capacitor/status-bar"
CapacitorToast:
:path: "../../node_modules/@capacitor/toast"

SPEC CHECKSUMS:
Capacitor: 070b18988e0f566728ae9a5eb3a7a974595f1626
CapacitorApp: 963d90cb449803d58efc33bb515c81151e69159d
CapacitorCordova: 3773395d5331add072300ff6041ca2cf7b93cb0b
CapacitorGeolocation: c8f9b46f96e0b6cc80a6c7ff48a37cfc44ad2198
CapacitorStatusBar: a73a9ae0dd2ca30ee429782d5d3ae82dcfa80207
CapacitorToast: 61a9bec819ad3aeccc1ebe3fcbff565c22969c71

PODFILE CHECKSUM: 1f1188b35f849cc64d1d49736ae417a835c88123

COCOAPODS: 1.14.3
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@
"maplibre-gl": "^3.3.1"
},
"devDependencies": {
"@babel/core": "^7.23.5",
"@babel/preset-env": "^7.23.5",
"@capacitor/assets": "^2.0.4",
"@capacitor/cli": "5.2.2",
"babel-loader": "^9.1.3",
"css-loader": "^6.8.1",
"css-minimizer-webpack-plugin": "^5.0.1",
"dotenv-webpack": "^8.0.1",
Expand All @@ -43,7 +46,7 @@
"sass": "^1.66.1",
"sass-loader": "^13.3.2",
"sortablejs": "^1.15.0",
"webpack": "5.88.2",
"webpack": "^5.88.2",
"webpack-cli": "5.1.4",
"webpack-dev-server": "4.15.1"
}
Expand Down
3 changes: 2 additions & 1 deletion src/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ h3 {
input[type="range"] {
-webkit-appearance: none;
appearance: none;
background: transparent;
background: #f4f6f8;
cursor: pointer;
width: 130px;
overflow: hidden;
Expand Down Expand Up @@ -228,6 +228,7 @@ input[type="range"]::-webkit-slider-thumb {
width: 16px;
border: #3F4A55 6px solid;
box-sizing: border-box;
box-shadow: unset;
}

/*********** Firefox styles ***********/
Expand Down
2 changes: 1 addition & 1 deletion src/css/layer-catalogue.css
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
right: 0;
width: 20px;
height: 100%;
background: linear-gradient(90deg,transparent,#fff);
background: linear-gradient(90deg,#fff0,#f4f6f8 );
opacity: 1;
visibility: visible;
flex-shrink: 0;
Expand Down
2 changes: 1 addition & 1 deletion src/css/map.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
height: 20px;
display: flex;
flex-direction: column;
justify-content: end;
justify-content: flex-end;
}

.maplibregl-ctrl-scale {
Expand Down
2 changes: 1 addition & 1 deletion src/css/my-position.css
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
right: 0;
width: 20px;
height: 45px;
background: linear-gradient(90deg,transparent,#fff);
background: linear-gradient(90deg,#f4f6f8,#fff);
opacity: 1;
visibility: visible;
flex-shrink: 0;
Expand Down
3 changes: 1 addition & 2 deletions src/css/nav.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
margin: 0;
flex-direction: column;
align-items: center;
height: 60px;
height: 64px;
justify-content: center;
}

Expand Down Expand Up @@ -82,7 +82,6 @@
transition: transform 0.2s;
transition-timing-function: ease-out;
width: 97%;
height: fit-content;
color: #3f4a55;
padding: 0px 24px 30px 24px;
align-items: center;
Expand Down
2 changes: 1 addition & 1 deletion src/css/search.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
right: 33px;
width: 20px;
height: 32px;
background: linear-gradient(90deg, transparent, #fff);
background: linear-gradient(90deg, #fff0, #fff);
opacity: 1;
visibility: visible;
}
Expand Down
13 changes: 13 additions & 0 deletions webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,19 @@ module.exports = {
],
module: {
rules: [
{
test: /\.(?:js|mjs|cjs)$/,
use: {
loader: 'babel-loader',
options: {
presets: [
['@babel/preset-env', { targets: {
"ios": "13"
}}]
]
}
}
},
{
test: /\.(scss|css)$/,
use: [
Expand Down
13 changes: 13 additions & 0 deletions webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,19 @@ module.exports = {
],
module: {
rules: [
{
test: /\.(?:js|mjs|cjs)$/,
use: {
loader: 'babel-loader',
options: {
presets: [
['@babel/preset-env', { targets: {
"ios": "13"
}}]
]
}
}
},
{
test: /\.(scss|css)$/,
use: [
Expand Down

0 comments on commit ca28e06

Please sign in to comment.