-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[various] added formatting workflow to fire on push (#545)
* added formatting workflow that fires on push * Google Java Format * updated formatting workflow to be able to run on workflow_dispatch * Clang Format --------- Co-authored-by: github-actions <> Co-authored-by: Anka <[email protected]>
- Loading branch information
Showing
19 changed files
with
2,732 additions
and
1,298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: format | ||
|
||
on: | ||
- push | ||
- workflow_dispatch | ||
|
||
jobs: | ||
java_format: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: axel-op/googlejavaformat-action@v3 | ||
with: | ||
args: '--skip-sorting-imports --replace' | ||
|
||
objc_format: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Test | ||
run: | | ||
which clang-format || brew install clang-format | ||
find . -name '*.m' -exec clang-format -i {} \; | ||
find . -path '*/ios/**/*.h' -exec clang-format -i {} \; | ||
find . -path '*/macos/**/*.h' -exec clang-format -i {} \; | ||
git diff --exit-code || (git commit --all -m "Clang Format" && git push) | ||
swift_format: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Test | ||
run: | | ||
which swiftlint || brew install swiftlint | ||
swiftlint --fix | ||
git diff --exit-code || (git commit --all -m "Swift Format" && git push) |
1,406 changes: 813 additions & 593 deletions
1,406
...auth/android/src/main/java/io/crossingthestreams/flutterappauth/FlutterAppauthPlugin.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
#import <TargetConditionals.h> | ||
|
||
#if TARGET_OS_OSX | ||
#import <FlutterMacOS/FlutterMacOS.h> | ||
#import "AppAuthMacOSAuthorization.h" | ||
#import <FlutterMacOS/FlutterMacOS.h> | ||
#else | ||
#import <Flutter/Flutter.h> | ||
#import "AppAuthIOSAuthorization.h" | ||
#import <Flutter/Flutter.h> | ||
#endif | ||
|
||
#import <AppAuth/AppAuth.h> | ||
|
||
@interface FlutterAppauthPlugin : NSObject<FlutterPlugin> | ||
@interface FlutterAppauthPlugin : NSObject <FlutterPlugin> | ||
|
||
@property(nonatomic, strong, nullable) id<OIDExternalUserAgentSession> currentAuthorizationFlow; | ||
@property(nonatomic, strong, nullable) id<OIDExternalUserAgentSession> | ||
currentAuthorizationFlow; | ||
|
||
@end |
Oops, something went wrong.