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

feat(fdc): Updated to allow for sdktype to be set (core vs gen) #13392

Merged
merged 8 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ part 'dataconnect_options.dart';
enum CallerSDKType { core, generated }

String getGoogApiVal(CallerSDKType sdkType, String packageVersion) {
String apiClientValue = 'gl-dart/flutter fire/$packageVersion';
String apiClientValue = 'gl-dart/$packageVersion fire/$packageVersion';
maneesht marked this conversation as resolved.
Show resolved Hide resolved
if (sdkType == CallerSDKType.generated) {
apiClientValue += ' dart/gen';
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ void main() {
test('should return no codegen suffix if using core sdk', () {
final packageVersion = "1.0.0";
expect(getGoogApiVal(CallerSDKType.core, packageVersion),
'gl-dart/flutter fire/$packageVersion');
'gl-dart/$packageVersion fire/$packageVersion');
});
test('should return codegen suffix if using gen sdk', () {
final packageVersion = "1.0.0";
expect(getGoogApiVal(CallerSDKType.generated, packageVersion),
'gl-dart/flutter fire/$packageVersion dart/gen');
'gl-dart/$packageVersion fire/$packageVersion dart/gen');
});
});
group('TransportOptions', () {
Expand Down
Loading