-
Notifications
You must be signed in to change notification settings - Fork 26
feat(clients): add new abtesting-v3 package to clients + stabilize alpha js package #5157
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
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
e5f2b94
feat(clients): add new abtesting-v3 package to clients + stabilize al…
leonardogavaudan 9f139a3
remove format date
leonardogavaudan 721348b
fix: javascript
shortcuts 80c06af
chore: bump abtestingv3 to stable
shortcuts 37a1b25
Merge branch 'main' into feat/abtests/add-abtestingv3-to-clients
shortcuts 909738b
fix: javascript
shortcuts 6202cac
fix: javascript
shortcuts 91caee6
fix: swift
shortcuts 8c11420
fix: dart
shortcuts 05d58e9
fix: swift
shortcuts caf8227
fix: unit
shortcuts d438893
fix: unit
shortcuts 8c0f3e0
fix: dart
shortcuts 1bb00e0
fix: dart generation
shortcuts 7a7b1cc
fix: pubspec
shortcuts b04562f
fix: dart generation
shortcuts 86ec9a1
chore: size
shortcuts 2ce4e3c
chore: review
shortcuts 28d3235
Merge branch 'main' into feat/abtests/add-abtestingv3-to-clients
shortcuts 2cc3604
Merge branch 'main' into feat/abtests/add-abtestingv3-to-clients
shortcuts File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
clients/algoliasearch-client-dart/packages/client_abtesting_v3/build.yaml
This file contains hidden or 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,14 @@ | ||
targets: | ||
$default: | ||
builders: | ||
json_serializable: | ||
options: | ||
any_map: false | ||
checked: true | ||
create_factory: true | ||
create_to_json: true | ||
disallow_unrecognized_keys: false | ||
explicit_to_json: true | ||
field_rename: none | ||
ignore_unannotated: false | ||
include_if_null: false |
17 changes: 17 additions & 0 deletions
17
clients/algoliasearch-client-dart/packages/client_abtesting_v3/example/example.dart
This file contains hidden or 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,17 @@ | ||
import 'package:algolia_client_abtesting_v3/algolia_client_abtesting_v3.dart'; | ||
|
||
void main() async { | ||
// Creating an instance of the Abtesting V3 client with the provided App ID and API key. | ||
final abtesting = AbtestingV3Client( | ||
appId: 'latency', | ||
apiKey: '6be0576ff61c053d5f9a3225e2a90f76', | ||
region: 'us', | ||
); | ||
|
||
await abtesting.getABTest( | ||
id: 123, | ||
); | ||
|
||
// Close the client and dispose of all underlying resources. | ||
abtesting.dispose(); | ||
} |
1 change: 1 addition & 0 deletions
1
clients/algoliasearch-client-dart/packages/client_abtesting_v3/lib/src/extension.dart
This file contains hidden or 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 @@ | ||
|
18 changes: 18 additions & 0 deletions
18
clients/algoliasearch-client-dart/packages/client_abtesting_v3/test/version_test.dart
This file contains hidden or 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,18 @@ | ||
import 'dart:io'; | ||
|
||
import 'package:algolia_client_abtesting_v3/src/version.dart'; | ||
import 'package:test/test.dart'; | ||
|
||
void main() { | ||
if (Directory.current.path.endsWith('/test')) { | ||
Directory.current = Directory.current.parent; | ||
} | ||
test('package version matches pubspec', () { | ||
final pubspecPath = '${Directory.current.path}/pubspec.yaml'; | ||
final pubspec = File(pubspecPath).readAsStringSync(); | ||
final regex = RegExp('version:s*(.*)'); | ||
final match = regex.firstMatch(pubspec); | ||
expect(match, isNotNull); | ||
expect(packageVersion, match?.group(1)?.trim()); | ||
}); | ||
} |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
|
@@ -12,6 +12,7 @@ | |
"type": "string", | ||
"enum": [ | ||
"abtesting", | ||
"abtesting-v3", | ||
"analytics", | ||
"composition", | ||
"ingestion", | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
File renamed without changes.
14 changes: 10 additions & 4 deletions
14
templates/dart/snippets/pubspec.mustache → templates/dart/pubspec.tests.mustache
This file contains hidden or 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,23 @@ | ||
name: algolia_snippets | ||
name: algolia_{{#isSnippet}}snippets{{/isSnippet}}{{^isSnippet}}test{{/isSnippet}} | ||
version: 1.0.0 | ||
|
||
environment: | ||
sdk: ^3.0.0 | ||
|
||
dependencies: | ||
algoliasearch: ^1.0.0 | ||
algolia_client_search: ^1.0.0 | ||
algolia_client_abtesting_v3: ^1.0.0 | ||
algolia_client_composition: ^1.0.0 | ||
algolia_client_insights: ^1.0.0 | ||
algolia_client_recommend: ^1.0.0 | ||
algolia_client_composition: ^1.0.0 | ||
algolia_client_search: ^1.0.0 | ||
algoliasearch: ^1.0.0 | ||
collection: ^1.17.2 | ||
dotenv: ^4.1.0 | ||
http: ^1.2.2 | ||
test: ^1.25.8 | ||
test_api: ^0.7.3 | ||
|
||
algolia_client_core: any | ||
|
||
dev_dependencies: | ||
lints: ^6.0.0 |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.