Skip to content
This repository was archived by the owner on Aug 18, 2021. It is now read-only.

Commit afcf8d3

Browse files
committed
Release v1.0.2
1 parent a6a25a6 commit afcf8d3

File tree

8 files changed

+73
-58
lines changed

8 files changed

+73
-58
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright [yyyy] [name of copyright owner]
189+
Copyright 2020 Muhammad Faisal Amir
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README.md

Lines changed: 57 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,26 @@
11
# consumable-code-the-meal-db-api By AmirIsBack
2-
- v1.0.1 - Development
2+
- v1.0.2 - Development
33
- Stable Version
44

55
# About This Project
66
Eliminates the method of retrieving json data using retrofit repeatedly. so this project has a set of functions to retrieve data without the need for fetching data using the retrofit of the API
77

8-
# Special From This Project
9-
Simple code and reusable data
10-
11-
# Fecthing Data Library
12-
- Retrofit
13-
- RxJava
14-
- OkHttp
15-
- Chuck Interceptor
16-
17-
# Documentation The Meal Db Api
18-
https://www.themealdb.com/api.php
19-
20-
# Function Main From This Project
21-
22-
// Switch For Using Chuck Interceptor
23-
fun usingChuckInterceptor(context: Context)
24-
25-
// Search meal by name
26-
fun searchMeal(mealName: String, callback: MealResultCallback<MealResponse<Meal>>)
27-
28-
// List all meals by first letter
29-
fun listAllMeal(firstLetter: String, callback: MealResultCallback<MealResponse<Meal>>)
30-
31-
// Lookup full meal details by id
32-
fun lookupFullMeal(idMeal: String, callback: MealResultCallback<MealResponse<Meal>>)
33-
34-
// Lookup a single random meal
35-
fun lookupRandomMeal(callback: MealResultCallback<MealResponse<Meal>>)
36-
37-
// List all meal categories
38-
fun listMealCategories(callback: MealResultCallback<CategoryResponse>)
39-
40-
// List all Categories
41-
fun listAllCateories(callback: MealResultCallback<MealResponse<Category>>)
42-
43-
// List all Area
44-
fun listAllArea(callback: MealResultCallback<MealResponse<Area>>)
45-
46-
// List all Ingredients
47-
fun listAllIngredients(callback: MealResultCallback<MealResponse<Ingredient>>)
48-
49-
// Filter by main ingredient
50-
fun filterByIngredient(ingredient: String, callback: MealResultCallback<MealResponse<MealFilter>>)
51-
52-
// Filter by Category
53-
fun filterByCategory(category: String, callback: MealResultCallback<MealResponse<MealFilter>>)
54-
55-
// Filter by Area
56-
fun filterByArea(area: String, callback: MealResultCallback<MealResponse<MealFilter>>)
57-
8+
# Screen Shoot Apps
9+
<span align="center"><img width="200px" height="360px" src="docs/image/ss_main.png"></span>
10+
<span align="center"><img width="200px" height="360px" src="docs/image/ss_chuck_1.png"></span>
11+
<span align="center"><img width="200px" height="360px" src="docs/image/ss_chuck_2.png"></span>
5812

5913
# Android Library Version (build.gradle)
60-
- ext.kotlin_version = '1.3.70'
61-
- classpath 'com.android.tools.build:gradle:3.6.1'
14+
- ext.kotlin_version = '1.3.72'
15+
- classpath 'com.android.tools.build:gradle:3.6.3'
6216
- compileSdkVersion 29
6317
- buildToolsVersion "29.0.3"
6418
- minSdkVersion 21
6519

6620
# Version Release
6721
This Is Latest Release
6822

69-
$version_release = 1.0.1
23+
$version_release = 1.0.2
7024

7125
What's New??
7226

@@ -89,7 +43,7 @@ Add it in your root build.gradle at the end of repositories:
8943

9044
dependencies {
9145
// library consumable code the meal db api
92-
implementation 'com.github.amirisback:consumable-code-the-meal-db-api:$version_release'
46+
implementation 'com.github.amirisback:consumable-code-the-meal-db-api:1.0.2'
9347
}
9448

9549
<h3>Step 3. Declaration ConsumeTheMealDbApi</h3>
@@ -117,6 +71,54 @@ Add it in your root build.gradle at the end of repositories:
11771
11872
})
11973

74+
75+
# Function Main From This Project
76+
77+
// Switch For Using Chuck Interceptor
78+
fun usingChuckInterceptor(context: Context)
79+
80+
// Search meal by name
81+
fun searchMeal(mealName: String, callback: MealResultCallback<MealResponse<Meal>>)
82+
83+
// List all meals by first letter
84+
fun listAllMeal(firstLetter: String, callback: MealResultCallback<MealResponse<Meal>>)
85+
86+
// Lookup full meal details by id
87+
fun lookupFullMeal(idMeal: String, callback: MealResultCallback<MealResponse<Meal>>)
88+
89+
// Lookup a single random meal
90+
fun lookupRandomMeal(callback: MealResultCallback<MealResponse<Meal>>)
91+
92+
// List all meal categories
93+
fun listMealCategories(callback: MealResultCallback<CategoryResponse>)
94+
95+
// List all Categories
96+
fun listAllCateories(callback: MealResultCallback<MealResponse<Category>>)
97+
98+
// List all Area
99+
fun listAllArea(callback: MealResultCallback<MealResponse<Area>>)
100+
101+
// List all Ingredients
102+
fun listAllIngredients(callback: MealResultCallback<MealResponse<Ingredient>>)
103+
104+
// Filter by main ingredient
105+
fun filterByIngredient(ingredient: String, callback: MealResultCallback<MealResponse<MealFilter>>)
106+
107+
// Filter by Category
108+
fun filterByCategory(category: String, callback: MealResultCallback<MealResponse<MealFilter>>)
109+
110+
// Filter by Area
111+
fun filterByArea(area: String, callback: MealResultCallback<MealResponse<MealFilter>>)
112+
113+
# Fecthing Data Library
114+
- Retrofit
115+
- RxJava
116+
- OkHttp
117+
- Chuck Interceptor
118+
119+
# Documentation The Meal Db Api
120+
https://www.themealdb.com/api.php
121+
120122
# Colaborator
121123
Very open to anyone, I'll write your name under this, please contribute by sending an email to me
122124

action.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: 'Consumable Code The Meal DB API'
2+
description: 'Retrofit has been Handled, Consumable code for request Public API (The Meal DB API)'
3+
author: 'Muhammad Faisal Amir'
4+
inputs:
5+
myInput:
6+
description: 'Input to use'
7+
required: false
8+
default: 'world'
9+
runs:
10+
using: 'docker'
11+
image: 'Dockerfile'
12+
args:
13+
- ${{ inputs.myInput }}

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ android {
77

88
def versionMajor = 1
99
def versionMinor = 0
10-
def versionPatch = 1
10+
def versionPatch = 2
1111

1212
def projectVersionCode = (versionMajor*100) + (versionMinor*10) + (versionPatch*1)
1313
def projectVersionName = "$versionMajor.$versionMinor.$versionPatch"

docs/image/ss_chuck_1.png

57.7 KB
Loading

docs/image/ss_chuck_2.png

302 KB
Loading

docs/image/ss_main.png

1.73 MB
Loading

frogothemealdbapi/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ android {
77

88
def versionMajor = 1
99
def versionMinor = 0
10-
def versionPatch = 1
10+
def versionPatch = 2
1111

1212
def projectVersionCode = (versionMajor*100) + (versionMinor*10) + (versionPatch*1)
1313
def projectVersionName = "$versionMajor.$versionMinor.$versionPatch"

0 commit comments

Comments
 (0)