Skip to content
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
12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,6 @@ The official [Clerk](https://clerk.com) Flutter/Dart client library.
* [clerk_flutter](./packages/clerk_flutter): Flutter SDK


### Note

This repo uses symbolic links to enable test code to be shared but not published.
You might need to enable this git config parameter.

`git config core.symlinks true`

or clone with it on

`git clone -c core.symlinks=true https://github.com/clerk/clerk-sdk-flutter.git`


### License

These SDKs are licensed under the MIT license found in the [LICENSE](./LICENSE) file.
17 changes: 16 additions & 1 deletion packages/clerk_auth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
## 0.0.13-beta

* change: session token polling now defaults to ON (previous versions had it defaulting to OFF)
* feat: make test helpers globally available [#292]
* fix: make updates only happen when details change [#286]
* fix: accept 'required' fields [#285]
* fix: test framework [#281]
* fix: set polling periods to zero for testing [#283]
* feat: improve email link sign in up [#267]
* fix: only poll when signed in [#275]
* fix: add housekeeping where missing [#279]
* fix: move session token polling from api to auth for better error reporting [#244]
* feat: bring sign up ux in line with other sdks [#246]
* fix: force org creation when needed [#271]
* change: session token polling now defaults to ON (previous versions had it defaulting to OFF) [#263]
* fix: bring session token polling with orgs inline with other SDKs [#263]
* fix: remove unnecessary email etc update [#265]
* feat: enable sign up with enterprise sso [#247]
* fix: enable sign in using enterprise sso [#248]

## 0.0.12-beta

Expand Down
2 changes: 1 addition & 1 deletion packages/clerk_auth/lib/src/_version.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/clerk_auth/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: clerk_auth
description: Package that will allow you to authenticate and use Clerk from Dart code.
version: 0.0.12-beta
version: 0.0.13-beta
homepage: https://clerk.com/docs
repository: https://github.com/clerk/clerk-sdk-flutter/tree/main/packages/clerk_auth
issue_tracker: https://github.com/clerk/clerk-sdk-flutter/labels/clerk_auth
Expand All @@ -24,4 +24,4 @@ dev_dependencies:
json_serializable: ^6.8.0
lints: ^3.0.0
mocktail: ^1.0.4
test: ^1.25.5
test: ^1.25.5
1 change: 0 additions & 1 deletion packages/clerk_auth/test/test_support

This file was deleted.

4 changes: 4 additions & 0 deletions packages/clerk_backend_api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.0.13-beta

* chore: align release version with `clerk_auth` package

## 0.0.12-beta

* chore: align release version with `clerk_auth` package
Expand Down
2 changes: 1 addition & 1 deletion packages/clerk_backend_api/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#

name: 'clerk_backend_api'
version: '0.0.12-beta'
version: '0.0.13-beta'
description: 'The Clerk REST Backend API, meant to be accessed by backend servers.'
homepage: 'https://clerk.com/docs'
repository: https://github.com/clerk/clerk-sdk-flutter/tree/main/packages/clerk_backend_api
Expand Down
13 changes: 13 additions & 0 deletions packages/clerk_flutter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
## 0.0.13-beta

* feat: make test helpers globally available [#292]
* feat: improve email link sign in up [#267]
* fix: move session token polling from api to auth for better error reporting [#244]
* feat: bring sign up ux in line with other sdks [#246]
* fix: force org creation when needed [#271]
* change: session token polling now defaults to ON (previous versions had it defaulting to OFF) [#263]
* fix: bring session token polling with orgs inline with other SDKs [#263]
* fix: enable re-initialisation of clerksdkgrammar [#261]
* feat: enable sign up with enterprise sso [#247]
* fix: enable sign in using enterprise sso [#248]

## 0.0.12-beta

* chore: align release version with `clerk_auth` 0.0.12-beta package
Expand Down
4 changes: 2 additions & 2 deletions packages/clerk_flutter/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ environment:
dependencies:
flutter:
sdk: flutter
clerk_flutter: '>=0.0.12-beta'
clerk_auth: '>=0.0.12-beta'
clerk_flutter: '>=0.0.13-beta'
clerk_auth: '>=0.0.13-beta'
app_links: ^3.5.1
url_launcher_ios: 6.2.0
google_sign_in: ^7.1.0
Expand Down
39 changes: 18 additions & 21 deletions packages/clerk_flutter/lib/generated/clerk_sdk_localizations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,15 @@ import 'clerk_sdk_localizations_en.dart';
/// be consistent with the languages listed in the ClerkSdkLocalizations.supportedLocales
/// property.
abstract class ClerkSdkLocalizations {
ClerkSdkLocalizations(String locale)
: localeName = intl.Intl.canonicalizedLocale(locale.toString());
ClerkSdkLocalizations(String locale) : localeName = intl.Intl.canonicalizedLocale(locale.toString());

final String localeName;

static ClerkSdkLocalizations? of(BuildContext context) {
return Localizations.of<ClerkSdkLocalizations>(
context, ClerkSdkLocalizations);
return Localizations.of<ClerkSdkLocalizations>(context, ClerkSdkLocalizations);
}

static const LocalizationsDelegate<ClerkSdkLocalizations> delegate =
_ClerkSdkLocalizationsDelegate();
static const LocalizationsDelegate<ClerkSdkLocalizations> delegate = _ClerkSdkLocalizationsDelegate();

/// A list of this localizations delegate along with the default localizations
/// delegates.
Expand All @@ -85,16 +82,17 @@ abstract class ClerkSdkLocalizations {
/// Additional delegates can be added by appending to this list in
/// MaterialApp. This list does not have to be used at all if a custom list
/// of delegates is preferred or required.
static const List<LocalizationsDelegate<dynamic>> localizationsDelegates =
<LocalizationsDelegate<dynamic>>[
static const List<LocalizationsDelegate<dynamic>> localizationsDelegates = <LocalizationsDelegate<dynamic>>[
delegate,
GlobalMaterialLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
];

/// A list of this localizations delegate's supported locales.
static const List<Locale> supportedLocales = <Locale>[Locale('en')];
static const List<Locale> supportedLocales = <Locale>[
Locale('en')
];

/// No description provided for @aLengthOfBetweenMINAndMAX.
///
Expand Down Expand Up @@ -925,34 +923,33 @@ abstract class ClerkSdkLocalizations {
String get welcomePleaseFillInTheDetailsToGetStarted;
}

class _ClerkSdkLocalizationsDelegate
extends LocalizationsDelegate<ClerkSdkLocalizations> {
class _ClerkSdkLocalizationsDelegate extends LocalizationsDelegate<ClerkSdkLocalizations> {
const _ClerkSdkLocalizationsDelegate();

@override
Future<ClerkSdkLocalizations> load(Locale locale) {
return SynchronousFuture<ClerkSdkLocalizations>(
lookupClerkSdkLocalizations(locale));
return SynchronousFuture<ClerkSdkLocalizations>(lookupClerkSdkLocalizations(locale));
}

@override
bool isSupported(Locale locale) =>
<String>['en'].contains(locale.languageCode);
bool isSupported(Locale locale) => <String>['en'].contains(locale.languageCode);

@override
bool shouldReload(_ClerkSdkLocalizationsDelegate old) => false;
}

ClerkSdkLocalizations lookupClerkSdkLocalizations(Locale locale) {


// Lookup logic when only language code is specified.
switch (locale.languageCode) {
case 'en':
return ClerkSdkLocalizationsEn();
case 'en': return ClerkSdkLocalizationsEn();
}

throw FlutterError(
'ClerkSdkLocalizations.delegate failed to load unsupported locale "$locale". This is likely '
'an issue with the localizations generation tool. Please file an issue '
'on GitHub with a reproducible sample app and the gen-l10n configuration '
'that was used.');
'ClerkSdkLocalizations.delegate failed to load unsupported locale "$locale". This is likely '
'an issue with the localizations generation tool. Please file an issue '
'on GitHub with a reproducible sample app and the gen-l10n configuration '
'that was used.'
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,10 @@ class ClerkSdkLocalizationsEn extends ClerkSdkLocalizations {
String get abandoned => 'abandoned';

@override
String get acceptTerms =>
'I agree to the Terms of Service and Privacy Policy';
String get acceptTerms => 'I agree to the Terms of Service and Privacy Policy';

@override
String get actionNotTimely =>
'Awaited user action not completed in required timeframe';
String get actionNotTimely => 'Awaited user action not completed in required timeframe';

@override
String get active => 'active';
Expand Down Expand Up @@ -144,8 +142,7 @@ class ClerkSdkLocalizationsEn extends ClerkSdkLocalizations {
String get enterTheCodeSentToYou => 'Enter the code sent to you';

@override
String get enterYourOrganizationDetailsToContinue =>
'Enter your organization details to continue';
String get enterYourOrganizationDetailsToContinue => 'Enter your organization details to continue';

@override
String get expired => 'expired';
Expand Down Expand Up @@ -282,15 +279,13 @@ class ClerkSdkLocalizationsEn extends ClerkSdkLocalizations {
String get password => 'Password';

@override
String get passwordAndPasswordConfirmationMustMatch =>
'Password and password confirmation must match';
String get passwordAndPasswordConfirmationMustMatch => 'Password and password confirmation must match';

@override
String get passwordConfirmation => 'confirm password';

@override
String get passwordMatchError =>
'Password and password confirmation must match';
String get passwordMatchError => 'Password and password confirmation must match';

@override
String get passwordMustBeSupplied => 'A password must be supplied';
Expand All @@ -311,12 +306,10 @@ class ClerkSdkLocalizationsEn extends ClerkSdkLocalizations {
String get phoneNumberConcise => 'phone';

@override
String get pleaseAddRequiredInformation =>
'Something seems to be missing. Please add the required information';
String get pleaseAddRequiredInformation => 'Something seems to be missing. Please add the required information';

@override
String get pleaseChooseAnAccountToConnect =>
'Please choose an account to connect';
String get pleaseChooseAnAccountToConnect => 'Please choose an account to connect';

@override
String get pleaseEnterYourIdentifier => 'Please enter your identifier';
Expand Down Expand Up @@ -346,15 +339,13 @@ class ClerkSdkLocalizationsEn extends ClerkSdkLocalizations {
String get resend => 'Resend';

@override
String get resetFailed =>
'That password reset attempt failed. A new code has been sent.';
String get resetFailed => 'That password reset attempt failed. A new code has been sent.';

@override
String get resetPassword => 'Reset password and sign in';

@override
String get selectAccount =>
'Select the account with which you wish to continue';
String get selectAccount => 'Select the account with which you wish to continue';

@override
String get sendMeTheCode => 'Send me the reset code';
Expand All @@ -366,16 +357,13 @@ class ClerkSdkLocalizationsEn extends ClerkSdkLocalizations {
String get signIn => 'Sign in';

@override
String get signInByClickingALinkSentToYouByEmail =>
'Sign in by clicking a link sent to you by email';
String get signInByClickingALinkSentToYouByEmail => 'Sign in by clicking a link sent to you by email';

@override
String get signInByEnteringACodeSentToYouByEmail =>
'Sign in by entering a code sent to you by email';
String get signInByEnteringACodeSentToYouByEmail => 'Sign in by entering a code sent to you by email';

@override
String get signInByEnteringACodeSentToYouByTextMessage =>
'Sign in by entering a code sent to you by text message';
String get signInByEnteringACodeSentToYouByTextMessage => 'Sign in by entering a code sent to you by text message';

@override
String signInError(String arg) {
Expand Down Expand Up @@ -471,10 +459,8 @@ class ClerkSdkLocalizationsEn extends ClerkSdkLocalizations {
String get web3Wallet => 'web3 wallet';

@override
String get welcomeBackPleaseSignInToContinue =>
'Welcome back! Please sign in to continue';
String get welcomeBackPleaseSignInToContinue => 'Welcome back! Please sign in to continue';

@override
String get welcomePleaseFillInTheDetailsToGetStarted =>
'Welcome! Please fill in the details to get started';
String get welcomePleaseFillInTheDetailsToGetStarted => 'Welcome! Please fill in the details to get started';
}
4 changes: 2 additions & 2 deletions packages/clerk_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: clerk_flutter
description: Package that will allow you to authenticate and use Clerk from Flutter code.
version: 0.0.12-beta
version: 0.0.13-beta
homepage: https://clerk.com/docs
repository: https://github.com/clerk/clerk-sdk-flutter/tree/main/packages/clerk_flutter
issue_tracker: https://github.com/clerk/clerk-sdk-flutter/labels/clerk_flutter
Expand All @@ -17,7 +17,7 @@ dependencies:
sdk: flutter
flutter_localizations:
sdk: flutter
clerk_auth: '>=0.0.12-beta <1.0.0'
clerk_auth: '>=0.0.13-beta <1.0.0'
collection: '>=1.17.1 <2.0.0'
email_validator: ^3.0.0
flutter_svg: ^2.0.10+1
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: clerk_sdk
version: 0.0.12-beta
version: 0.0.13-beta
description: >
Clerk SDK containing all packages that define use of Clerk
services for Dart and Flutter code.
Expand Down
4 changes: 0 additions & 4 deletions test_support/analysis_options.yaml

This file was deleted.

17 changes: 0 additions & 17 deletions test_support/pubspec.yaml

This file was deleted.