Skip to content
This repository was archived by the owner on Sep 14, 2024. It is now read-only.

Commit ea28dd1

Browse files
committed
Merge branch 'release/0.7.8'
2 parents fa3837e + e7a1679 commit ea28dd1

File tree

11 files changed

+16
-14
lines changed

11 files changed

+16
-14
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
with:
1212
java-version: '12.x'
1313
distribution: 'adopt'
14-
- uses: subosito/[email protected].0
14+
- uses: subosito/[email protected].1
1515
with:
1616
flutter-version: '3.3.0'
1717
- run: flutter pub get

docker/data/Recipes/problem/recipe.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@
2727
"dateModified": "2021-10-30T16:02:47+0000",
2828
"dateCreated": "2021-10-30T16:02:22+0000",
2929
"printImage": false,
30-
"imageUrl": "\/apps\/cookbook\/recipes\/128051\/image?size=full"
30+
"imageUrl": "\/index.php\/apps\/cookbook\/recipes\/128051\/image?size=full"
3131
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Bugfixes

lib/src/services/authentication_provider.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ class AuthenticationProvider {
168168
String basicAuth,
169169
bool isSelfSignedCertificate,
170170
) async {
171-
String urlAuthCheck = serverUrl + '/apps/cookbook/categories';
171+
String urlAuthCheck =
172+
serverUrl + '/index.php/apps/cookbook/api/v1/categories';
172173

173174
dio.Response response;
174175
try {

lib/src/services/categories_provider.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class CategoriesProvider {
1111
UserRepository().getCurrentAppAuthentication();
1212

1313
final String url =
14-
"${appAuthentication.server}/apps/cookbook/categories";
14+
"${appAuthentication.server}/index.php/apps/cookbook/api/v1/categories";
1515

1616
// Parse categories
1717
try {

lib/src/services/category_recipes_short_provider.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ class CategoryRecipesShortProvider {
1313
UserRepository().getCurrentAppAuthentication();
1414

1515
String url =
16-
"${appAuthentication.server}/index.php/apps/cookbook/category/$category";
16+
"${appAuthentication.server}/apps/cookbook/api/v1/category/$category";
1717
if (androidApiVersion != AndroidApiVersion.BEFORE_API_ENDPOINT) {
1818
category = category == "*"
1919
? "_"
2020
: category; // Mapping from * to _ for recipes without a category!
2121
url =
22-
"${appAuthentication.server}/apps/cookbook/api/v1/category/$category";
22+
"${appAuthentication.server}/index.php/apps/cookbook/api/v1/category/$category";
2323
}
2424

2525
// Parse categories

lib/src/services/recipe_provider.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class RecipeProvider {
1212
UserRepository().getCurrentAppAuthentication();
1313

1414
final String url =
15-
"${appAuthentication.server}/apps/cookbook/api/v1/recipes/$id";
15+
"${appAuthentication.server}/index.php/apps/cookbook/api/v1/recipes/$id";
1616
// Parse categories
1717
try {
1818
String contents = await Network().get(url);
@@ -29,7 +29,7 @@ class RecipeProvider {
2929

3030
try {
3131
final String url =
32-
"${appAuthentication.server}/apps/cookbook/api/v1/recipes/${recipe.id}";
32+
"${appAuthentication.server}/index.php/apps/cookbook/api/v1/recipes/${recipe.id}";
3333
var response = await client.put(url,
3434
data: recipe.toJson(),
3535
options: new Options(
@@ -50,7 +50,7 @@ class RecipeProvider {
5050

5151
try {
5252
var response = await client.post(
53-
"${appAuthentication.server}/apps/cookbook/api/v1/recipes",
53+
"${appAuthentication.server}/index.php/apps/cookbook/api/v1/recipes",
5454
data: recipe.toJson(),
5555
options: new Options(
5656
contentType: "application/json;charset=UTF-8",
@@ -68,7 +68,7 @@ class RecipeProvider {
6868

6969
try {
7070
var response = await client.post(
71-
"${appAuthentication.server}/apps/cookbook/import",
71+
"${appAuthentication.server}/index.php/apps/cookbook/api/v1/import",
7272
data: {"url": url},
7373
options: new Options(
7474
contentType: "application/json;charset=UTF-8",

lib/src/services/recipes_short_provider.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class RecipesShortProvider {
1010
AppAuthentication appAuthentication =
1111
UserRepository().getCurrentAppAuthentication();
1212

13-
final String url = "${appAuthentication.server}/apps/cookbook/api/v1/recipes";
13+
final String url = "${appAuthentication.server}/index.php/apps/cookbook/api/v1/recipes";
1414
try {
1515
String contents = await Network().get(url);
1616
return RecipeShort.parseRecipesShort(contents);

lib/src/services/version_provider.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class VersionProvider {
1414
UserRepository().getCurrentAppAuthentication();
1515

1616
var response = await appAuthentication.authenticatedClient
17-
.get("${appAuthentication.server}/apps/cookbook/api/version");
17+
.get("${appAuthentication.server}/index.php/apps/cookbook/api/version");
1818

1919
if (response.statusCode == 200 &&
2020
!response.data.toString().startsWith("<!DOCTYPE html>")) {

lib/src/widget/authentication_cached_network_recipe_image.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class AuthenticationCachedNetworkRecipeImage extends StatelessWidget {
2828

2929
return AuthenticationCachedNetworkImage(
3030
url:
31-
'${appAuthentication.server}/apps/cookbook/api/v1/recipes/$recipeId/image?size=$settings',
31+
'${appAuthentication.server}/index.php/apps/cookbook/api/v1/recipes/$recipeId/image?size=$settings',
3232
width: width,
3333
height: height,
3434
boxFit: boxFit,

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ description: A new Flutter application.
1111
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
1212
# Read more about iOS versioning at
1313
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
14-
version: 0.7.7+22
14+
version: 0.7.8+23
1515

1616
environment:
1717
sdk: ">=2.10.0 <3.0.0"

0 commit comments

Comments
 (0)