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

Add Capacitor 4 support #131

Merged
merged 22 commits into from
Aug 25, 2022
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.idea
node_modules
/lib
/lib
*.tgz
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Ionic App Auth is a implementation of the [AppAuth-JS](https://github.com/openid
It includes code extensions for core cordova plugins to run the Ionic app such as [Advanced HTTP](https://github.com/silkimen/cordova-plugin-advanced-http) and [SafariViewController](https://github.com/EddyVerbruggen/cordova-plugin-safariviewcontroller).

The cordova plugins are optional and can be replaced with Angular/React/Vue http handlers and/or Capacitor Plugins.
This library is intended to be as flexible with compatiblity as Ionic V5 is attempting to be.
This library is intended to be as flexible with compatibility as Ionic v6 is attempting to be.

## Installation

Expand All @@ -24,7 +24,7 @@ Demos have been moved into the main repository to centralise issues.
- Vanilla: (To Be Completed)
- Ionic V3: (To Be Completed)

**NOTE**: You can use [OktaDev Schematics](https://github.com/oktadev/schematics#ionic) to install the code from the Angular examples above. Cordova and Capacitor are both supported. The installation isn't Okta-specific, it just prompts you for an `issuer` and `clientId`.
**NOTE**: You can use [OktaDev Schematics](https://github.com/oktadev/schematics#ionic) to install the code from the Angular examples above. Only Capacitor is supported. The installation isn't Okta-specific, it just prompts you for an `issuer` and `clientId` and works with Auth0 too!

## Contributing

Expand Down
3 changes: 3 additions & 0 deletions demos/angular-capacitor/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,15 @@
Thumbs.db
UserInterfaceState.xcuserstate
$RECYCLE.BIN/
.angular

*.log
log.txt
npm-debug.log*

/.idea
/ios
/android
/.ionic
/.sass-cache
/.sourcemaps
Expand Down
24 changes: 0 additions & 24 deletions demos/angular-capacitor/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,30 +145,6 @@
"devServerTarget": "app:serve:ci"
}
}
},
"ionic-cordova-build": {
"builder": "@ionic/angular-toolkit:cordova-build",
"options": {
"browserTarget": "app:build"
},
"configurations": {
"production": {
"browserTarget": "app:build:production"
}
}
},
"ionic-cordova-serve": {
"builder": "@ionic/angular-toolkit:cordova-serve",
"options": {
"cordovaBuildTarget": "app:ionic-cordova-build",
"devServerTarget": "app:serve"
},
"configurations": {
"production": {
"cordovaBuildTarget": "app:ionic-cordova-build:production",
"devServerTarget": "app:serve:production"
}
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion demos/angular-capacitor/capacitor.config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"appId": "com.appauth.demo",
"appName": "com.appauth.demo",
"appName": "Angular Demo",
"bundledWebRuntime": false,
"npmClient": "npm",
"webDir": "www",
Expand Down
Loading