Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contemplando projeto com upgrade de frameworks #4

Open
wants to merge 6 commits into
base: 1.1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries

# For the full list of supported browsers by the Angular framework, please see:
# https://angular.io/guide/browser-support

# You can see what browsers were selected by your queries by running:
# npx browserslist

Chrome >=79
ChromeAndroid >=79
Firefox >=70
Edge >=79
Safari >=14
iOS >=14
17 changes: 8 additions & 9 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
# EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs
# editorconfig.org

# Editor configuration, see https://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2

# We recommend you to keep these unchanged
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
trim_trailing_whitespace = true

[*.ts]
quote_type = single

[*.md]
trim_trailing_whitespace = false
max_line_length = off
trim_trailing_whitespace = false
46 changes: 46 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"root": true,
"ignorePatterns": ["projects/**/*"],
"overrides": [
{
"files": ["*.ts"],
"parserOptions": {
"project": ["tsconfig.json"],
"createDefaultProgram": true
},
"extends": [
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"@angular-eslint/component-class-suffix": [
"error",
{
"suffixes": ["Page", "Component"]
}
],
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "app",
"style": "kebab-case"
}
],
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "app",
"style": "camelCase"
}
]
}
},
{
"files": ["*.html"],
"extends": ["plugin:@angular-eslint/template/recommended"],
"rules": {}
}
]
}
75 changes: 54 additions & 21 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,67 @@

*~
*.sw[mnpcod]
*.log
.tmp
*.tmp
*.keystore
*.tmp.*
UserInterfaceState.xcuserstate
$RECYCLE.BIN/

*.log
log.txt
/.vscode

/.sourcemaps
/.versions
/coverage

# Ionic
/.ionic
/www
/platforms
/plugins
/android

# Compiled output
/dist
/tmp
/out-tsc
/bazel-out

# Node
/node_modules
npm-debug.log
yarn-error.log

# IDEs and editors
.idea/
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-project
*.sublime-workspace
.vscode/
npm-debug.log*

.sourcemaps
.idea/
# Visual Studio Code
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history/*


# Miscellaneous
/.angular
/.angular/cache
.sass-cache/
.tmp/
.versions/
coverage/
dist/
node_modules/
tmp/
temp/
hooks/
platforms/
plugins/
plugins/android.json
plugins/ios.json
www/
$RECYCLE.BIN/
/connect.lock
/coverage
/libpeerconnection.log
testem.log
/typings

# System files
.DS_Store
Thumbs.db
UserInterfaceState.xcuserstate
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Aplicativo para o professor com lançamento de frequência e registro de conteú

## Pré requisitos

- node.js
- node.js (20+)
- npm


Expand All @@ -13,7 +13,7 @@ Aplicativo para o professor com lançamento de frequência e registro de conteú
- Instalar a biblioteca do ionic

```bash
$ npm install -g ionic
$ npm install -g @ionic/cli
```

- Baixar o i-Diário App:
Expand All @@ -37,25 +37,25 @@ $ ionic serve

## Publicações na loja do Android e iOS

Seguir os passos na [documentação](https://ionicframework.com/docs/v1/guide/publishing.html) do framework
Seguir os passos na [documentação](https://ionicframework.com/docs/angular/your-first-app/deploying-mobile) do framework

## Sincronização com i-Diário

- Criar um usuário do tipo servidor, vinculado com um professor e com turmas no ano letivo atual
- Realizar login com o professor no aplicativo
- Clicar no ícone de sincronização

# Primeira instalação MacOS

Caso você esteja com a versão mais atual do `node`, `npm` e `node-gyp` é necessário instalar `npm install [email protected]` para funcionar corretamente.
# Build Capacitor

Instalei a versão `4.12.12` do `node-sass` como dependência do projeto para evitar problemas futuros.


# Build iOS

Como o projeto é antigo, foi necessário adicionar a plataforma com uma versão maior do iOS

> ionic cordova platform add [email protected]

Depois de adicionado, basta abrir o arquivo `platforms/ios/Portabilis Diário.xcodeproj` no XCode e assinar com o certificado correto em `Signing & Capabilities`
```bash
$ ionic build
$ npx capacitor-assets generate
$ ionic cap add ios
$ ionic cap add android
$ ionic cap copy
$ ionic cap sync
$ ionic cap open ios
$ ionic cap open android
```
O projeto foi atualizado para `@ionic/angular": "^7.0.0"` e `"@angular/common": "^17.0.2"`.
1 change: 0 additions & 1 deletion _tools/.gitignore

This file was deleted.

88 changes: 0 additions & 88 deletions _tools/build.sh

This file was deleted.

Loading