Skip to content

Commit

Permalink
feat: add ios (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-gustafsson committed Mar 29, 2024
1 parent 2482616 commit 32ac0ff
Show file tree
Hide file tree
Showing 30 changed files with 777 additions and 36 deletions.
2 changes: 1 addition & 1 deletion android/app/src/main/assets/capacitor.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"appName": "Drinkable",
"webDir": "dist",
"bundledWebRuntime": false,
"backgroundColor": "#161212"
"backgroundColor": "#161314"
}
2 changes: 1 addition & 1 deletion capacitor.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const config: CapacitorConfig = {
appName: 'Drinkable',
webDir: 'dist',
bundledWebRuntime: false,
backgroundColor: '#161212'
backgroundColor: '#161314'
};

export default config;
35 changes: 24 additions & 11 deletions index.ejs
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>Drinkable</title>
<meta name="viewport" content="initial-scale=1, width=device-width, user-scalable=no" />
<base href="<%- htmlWebpackPlugin.options.metadata.baseUrl %>" />
<link rel="icon" href="static/favicon.ico" />

<head>
<meta charset="utf-8">
<title>Aurelia Navigation Skeleton</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<base href="<%- htmlWebpackPlugin.options.metadata.baseUrl %>">
<link rel="icon" href="static/favicon.ico">
</head>
<style>
:root {
--bottom-safe-area: 0em;
--top-safe-area: 0em;
}
</style>

<body aurelia-app="main"></body>

</html>
<% if (htmlWebpackPlugin.options.metadata.store === 'appstore') { %>
<style>
:root {
--bottom-safe-area: 1em;
--top-safe-area: 3em;
}
</style>
<% } %>
</head>
<body aurelia-app="main"></body>
</html>
13 changes: 13 additions & 0 deletions ios/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
App/build
App/Pods
App/output
App/App/public
DerivedData
xcuserdata

# Cordova plugins for Capacitor
capacitor-cordova-ios-plugins

# Generated Config files
App/App/capacitor.config.json
App/App/config.xml
Loading

0 comments on commit 32ac0ff

Please sign in to comment.