Skip to content

Commit 1db53e1

Browse files
committed
try adding dependencies
1 parent 16587f0 commit 1db53e1

File tree

7 files changed

+99
-0
lines changed

7 files changed

+99
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Files and directories created by pub
2+
.dart_tool/
3+
.buildlog
4+
.packages
5+
.project
6+
.pub/
7+
build/
8+
9+
# Files created by dart2js
10+
*.dart.js
11+
*.part.js
12+
*.js.deps
13+
*.js.map
14+
*.info.json
15+
16+
# Directory created by dartdoc
17+
doc/api/
18+
19+
# Don't commit pubspec lock file
20+
pubspec.lock
21+
22+
# IntelliJ
23+
*.iml
24+
*.ipr
25+
*.iws
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include: package:lints/recommended.yaml
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import '{{{import}}}';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
final client = {{client}}(appId: 'ALGOLIA_APPLICATION_ID', apiKey: 'ALGOLIA_API_KEY'{{#hasRegionalHost}}, region: 'ALGOLIA_APPLICATION_REGION'{{/hasRegionalHost}});
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
// {{generationBanner}}
2+
// >IMPORT
3+
{{> snippets/import}}
4+
// IMPORT<
5+
6+
{{#blocksRequests}}
7+
{{#snippets}}
8+
// Snippet for the {{{method}}} method.
9+
//
10+
// {{{description}}}
11+
void snippetFor{{method}}{{testIndex}}() async {
12+
// >SEPARATOR {{method}} {{{testName}}}
13+
// Initialize the client
14+
{{> snippets/init}}
15+
16+
// Call the API
17+
{{#hasResponse}}final response = {{/hasResponse}}{{#isAsyncMethod}}await {{/isAsyncMethod}}client.{{method}}(
18+
{{#parametersWithDataType}}
19+
{{> tests/request_param}}
20+
{{/parametersWithDataType}}
21+
{{#hasRequestOptions}}
22+
requestOptions : RequestOptions(
23+
{{#requestOptions.headers}}
24+
headers: {
25+
{{#parametersWithDataType}}
26+
'{{{key}}}' : '{{value}}',
27+
{{/parametersWithDataType}}
28+
},
29+
{{/requestOptions.headers}}
30+
{{#requestOptions.queryParameters}}
31+
urlParameters: {
32+
{{#parametersWithDataType}}
33+
'{{{key}}}' : {{> tests/param_value}},
34+
{{/parametersWithDataType}}
35+
},
36+
{{/requestOptions.queryParameters}}
37+
),
38+
{{/hasRequestOptions}}
39+
);
40+
// >LOG
41+
// SEPARATOR<
42+
}
43+
44+
{{/snippets}}
45+
{{/blocksRequests}}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: algolia_snippets
2+
version: 1.0.0
3+
4+
environment:
5+
sdk: ^3.0.0
6+
7+
dependencies:
8+
algoliasearch: ^1.0.0
9+
algolia_client_search: ^1.0.0
10+
algolia_client_insights: ^1.0.0
11+
algolia_client_recommend: ^1.0.0
12+
dotenv: ^4.1.0
13+
14+
dev_dependencies:
15+
lints: ^5.0.0
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
dependency_overrides:
2+
algoliasearch:
3+
path: ../../../clients/algoliasearch-client-dart/packages/algoliasearch
4+
algolia_client_core:
5+
path: ../../../clients/algoliasearch-client-dart/packages/client_core
6+
algolia_client_search:
7+
path: ../../../clients/algoliasearch-client-dart/packages/client_search
8+
algolia_client_insights:
9+
path: ../../../clients/algoliasearch-client-dart/packages/client_insights
10+
algolia_client_recommend:
11+
path: ../../../clients/algoliasearch-client-dart/packages/client_recommend

0 commit comments

Comments
 (0)