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

Due to the old version of http, the Algolia package can't be added to Flutter projects that have http updates. So, I updated all dependencies. #129

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion lib/src/algolia.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of algolia;
part of '../algolia.dart';

enum ApiRequestType {
get,
Expand Down
2 changes: 1 addition & 1 deletion lib/src/batch.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of algolia;
part of '../algolia.dart';

/// **AlgoliaBatch**
/// A [AlgoliaBatch] is a series of write operations to be performed as one unit.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/error.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of algolia;
part of '../algolia.dart';

class AlgoliaError {
final Map _message;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/event_snapshot.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of algolia;
part of '../algolia.dart';

enum AlgoliaEventType {
click,
Expand Down
2 changes: 1 addition & 1 deletion lib/src/facet_value_snapshot.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of algolia;
part of '../algolia.dart';

class AlgoliaFacetValueSnapshot {
final Algolia algolia;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/index_reference.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of algolia;
part of '../algolia.dart';

/// Scopes of the data to copy when copying an index.
/// When copying, you may specify optional scopes to the operation. Doing
Expand Down
5 changes: 2 additions & 3 deletions lib/src/index_settings.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of algolia;
part of '../algolia.dart';

///
/// **AlgoliaIndexSettings**
Expand Down Expand Up @@ -59,8 +59,7 @@ class AlgoliaSettings {
@override
String toString() {
return {
'url': '${algolia._host}indexes' +
(_index.isNotEmpty ? '/' + Uri.encodeFull(_index) : ''),
'url': '${algolia._host}indexes${_index.isNotEmpty ? '/${Uri.encodeFull(_index)}' : ''}',
'headers': algolia._headers,
'parameters': _parameters,
}.toString();
Expand Down
2 changes: 1 addition & 1 deletion lib/src/index_snapshot.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of algolia;
part of '../algolia.dart';

class AlgoliaIndexesSnapshot {
AlgoliaIndexesSnapshot._(this.algolia, Map<String, dynamic> map)
Expand Down
2 changes: 1 addition & 1 deletion lib/src/object_reference.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of algolia;
part of '../algolia.dart';

class AlgoliaObjectReference {
AlgoliaObjectReference._(this.algolia, String? index, String? objectId)
Expand Down
2 changes: 1 addition & 1 deletion lib/src/object_snapshot.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of algolia;
part of '../algolia.dart';

// Implementation & bug solved by https://github.com/franvera
// - highlightResult [Bug] (commit ref: 0d76d24fe8aa347a0933920afe5ded43bdcbd68b)
Expand Down
5 changes: 2 additions & 3 deletions lib/src/query.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of algolia;
part of '../algolia.dart';

enum AlgoliaSortFacetValuesBy {
alpha,
Expand Down Expand Up @@ -49,8 +49,7 @@ class AlgoliaQuery {
@override
String toString() {
return {
'url': '${algolia._host}indexes' +
(encodedIndex.isNotEmpty ? '/' + encodedIndex : ''),
'url': '${algolia._host}indexes${encodedIndex.isNotEmpty ? '/$encodedIndex' : ''}',
'headers': algolia._headers,
'parameters': _parameters,
}.toString();
Expand Down
2 changes: 1 addition & 1 deletion lib/src/query_snapshot.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of algolia;
part of '../algolia.dart';

class AlgoliaQuerySnapshot {
AlgoliaQuerySnapshot._(this.algolia, this.index, Map<String, dynamic> map)
Expand Down
2 changes: 1 addition & 1 deletion lib/src/synonyms_reference.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of algolia;
part of '../algolia.dart';

enum SynonymsType {
synonym,
Expand Down
2 changes: 1 addition & 1 deletion lib/src/task.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of algolia;
part of '../algolia.dart';

class AlgoliaTask {
AlgoliaTask._(this.algolia, String? index, Map<String, dynamic> data)
Expand Down
2 changes: 1 addition & 1 deletion lib/src/util/enum_util.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of algolia;
part of '../../algolia.dart';

class EnumUtil {
static T fromStringEnum<T>(Iterable<T> values, String stringType) {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/util/json_encode.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of algolia;
part of '../../algolia.dart';

dynamic jsonEncodeHelper(dynamic item) {
if (item is DateTime) {
Expand Down
Loading