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

Commit

Permalink
Release v1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
amirisback committed May 16, 2020
1 parent a6a25a6 commit afcf8d3
Show file tree
Hide file tree
Showing 8 changed files with 73 additions and 58 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]
Copyright 2020 Muhammad Faisal Amir

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
112 changes: 57 additions & 55 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,72 +1,26 @@
# consumable-code-the-meal-db-api By AmirIsBack
- v1.0.1 - Development
- v1.0.2 - Development
- Stable Version

# About This Project
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

# Special From This Project
Simple code and reusable data

# Fecthing Data Library
- Retrofit
- RxJava
- OkHttp
- Chuck Interceptor

# Documentation The Meal Db Api
https://www.themealdb.com/api.php

# Function Main From This Project

// Switch For Using Chuck Interceptor
fun usingChuckInterceptor(context: Context)

// Search meal by name
fun searchMeal(mealName: String, callback: MealResultCallback<MealResponse<Meal>>)

// List all meals by first letter
fun listAllMeal(firstLetter: String, callback: MealResultCallback<MealResponse<Meal>>)

// Lookup full meal details by id
fun lookupFullMeal(idMeal: String, callback: MealResultCallback<MealResponse<Meal>>)

// Lookup a single random meal
fun lookupRandomMeal(callback: MealResultCallback<MealResponse<Meal>>)

// List all meal categories
fun listMealCategories(callback: MealResultCallback<CategoryResponse>)

// List all Categories
fun listAllCateories(callback: MealResultCallback<MealResponse<Category>>)

// List all Area
fun listAllArea(callback: MealResultCallback<MealResponse<Area>>)

// List all Ingredients
fun listAllIngredients(callback: MealResultCallback<MealResponse<Ingredient>>)

// Filter by main ingredient
fun filterByIngredient(ingredient: String, callback: MealResultCallback<MealResponse<MealFilter>>)

// Filter by Category
fun filterByCategory(category: String, callback: MealResultCallback<MealResponse<MealFilter>>)

// Filter by Area
fun filterByArea(area: String, callback: MealResultCallback<MealResponse<MealFilter>>)

# Screen Shoot Apps
<span align="center"><img width="200px" height="360px" src="docs/image/ss_main.png"></span>
<span align="center"><img width="200px" height="360px" src="docs/image/ss_chuck_1.png"></span>
<span align="center"><img width="200px" height="360px" src="docs/image/ss_chuck_2.png"></span>

# Android Library Version (build.gradle)
- ext.kotlin_version = '1.3.70'
- classpath 'com.android.tools.build:gradle:3.6.1'
- ext.kotlin_version = '1.3.72'
- classpath 'com.android.tools.build:gradle:3.6.3'
- compileSdkVersion 29
- buildToolsVersion "29.0.3"
- minSdkVersion 21

# Version Release
This Is Latest Release

$version_release = 1.0.1
$version_release = 1.0.2

What's New??

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

dependencies {
// library consumable code the meal db api
implementation 'com.github.amirisback:consumable-code-the-meal-db-api:$version_release'
implementation 'com.github.amirisback:consumable-code-the-meal-db-api:1.0.2'
}

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


# Function Main From This Project

// Switch For Using Chuck Interceptor
fun usingChuckInterceptor(context: Context)

// Search meal by name
fun searchMeal(mealName: String, callback: MealResultCallback<MealResponse<Meal>>)

// List all meals by first letter
fun listAllMeal(firstLetter: String, callback: MealResultCallback<MealResponse<Meal>>)

// Lookup full meal details by id
fun lookupFullMeal(idMeal: String, callback: MealResultCallback<MealResponse<Meal>>)

// Lookup a single random meal
fun lookupRandomMeal(callback: MealResultCallback<MealResponse<Meal>>)

// List all meal categories
fun listMealCategories(callback: MealResultCallback<CategoryResponse>)

// List all Categories
fun listAllCateories(callback: MealResultCallback<MealResponse<Category>>)

// List all Area
fun listAllArea(callback: MealResultCallback<MealResponse<Area>>)

// List all Ingredients
fun listAllIngredients(callback: MealResultCallback<MealResponse<Ingredient>>)

// Filter by main ingredient
fun filterByIngredient(ingredient: String, callback: MealResultCallback<MealResponse<MealFilter>>)

// Filter by Category
fun filterByCategory(category: String, callback: MealResultCallback<MealResponse<MealFilter>>)

// Filter by Area
fun filterByArea(area: String, callback: MealResultCallback<MealResponse<MealFilter>>)

# Fecthing Data Library
- Retrofit
- RxJava
- OkHttp
- Chuck Interceptor

# Documentation The Meal Db Api
https://www.themealdb.com/api.php

# Colaborator
Very open to anyone, I'll write your name under this, please contribute by sending an email to me

Expand Down
13 changes: 13 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: 'Consumable Code The Meal DB API'
description: 'Retrofit has been Handled, Consumable code for request Public API (The Meal DB API)'
author: 'Muhammad Faisal Amir'
inputs:
myInput:
description: 'Input to use'
required: false
default: 'world'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.myInput }}
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ android {

def versionMajor = 1
def versionMinor = 0
def versionPatch = 1
def versionPatch = 2

def projectVersionCode = (versionMajor*100) + (versionMinor*10) + (versionPatch*1)
def projectVersionName = "$versionMajor.$versionMinor.$versionPatch"
Expand Down
Binary file added docs/image/ss_chuck_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/image/ss_chuck_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/image/ss_main.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion frogothemealdbapi/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ android {

def versionMajor = 1
def versionMinor = 0
def versionPatch = 1
def versionPatch = 2

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

0 comments on commit afcf8d3

Please sign in to comment.