diff --git a/LICENSE b/LICENSE index 261eeb9..0f529ac 100644 --- a/LICENSE +++ b/LICENSE @@ -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. diff --git a/README.md b/README.md index a2b6d58..130085c 100644 --- a/README.md +++ b/README.md @@ -1,64 +1,18 @@ # 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>) - - // List all meals by first letter - fun listAllMeal(firstLetter: String, callback: MealResultCallback>) - - // Lookup full meal details by id - fun lookupFullMeal(idMeal: String, callback: MealResultCallback>) - - // Lookup a single random meal - fun lookupRandomMeal(callback: MealResultCallback>) - - // List all meal categories - fun listMealCategories(callback: MealResultCallback) - - // List all Categories - fun listAllCateories(callback: MealResultCallback>) - - // List all Area - fun listAllArea(callback: MealResultCallback>) - - // List all Ingredients - fun listAllIngredients(callback: MealResultCallback>) - - // Filter by main ingredient - fun filterByIngredient(ingredient: String, callback: MealResultCallback>) - - // Filter by Category - fun filterByCategory(category: String, callback: MealResultCallback>) - - // Filter by Area - fun filterByArea(area: String, callback: MealResultCallback>) - +# Screen Shoot Apps + + + # 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 @@ -66,7 +20,7 @@ https://www.themealdb.com/api.php # Version Release This Is Latest Release - $version_release = 1.0.1 + $version_release = 1.0.2 What's New?? @@ -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' }

Step 3. Declaration ConsumeTheMealDbApi

@@ -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>) + + // List all meals by first letter + fun listAllMeal(firstLetter: String, callback: MealResultCallback>) + + // Lookup full meal details by id + fun lookupFullMeal(idMeal: String, callback: MealResultCallback>) + + // Lookup a single random meal + fun lookupRandomMeal(callback: MealResultCallback>) + + // List all meal categories + fun listMealCategories(callback: MealResultCallback) + + // List all Categories + fun listAllCateories(callback: MealResultCallback>) + + // List all Area + fun listAllArea(callback: MealResultCallback>) + + // List all Ingredients + fun listAllIngredients(callback: MealResultCallback>) + + // Filter by main ingredient + fun filterByIngredient(ingredient: String, callback: MealResultCallback>) + + // Filter by Category + fun filterByCategory(category: String, callback: MealResultCallback>) + + // Filter by Area + fun filterByArea(area: String, callback: MealResultCallback>) + +# 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 diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..9b3ca78 --- /dev/null +++ b/action.yml @@ -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 }} \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index 1d9bbd5..da57e91 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -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" diff --git a/docs/image/ss_chuck_1.png b/docs/image/ss_chuck_1.png new file mode 100644 index 0000000..e70c0a3 Binary files /dev/null and b/docs/image/ss_chuck_1.png differ diff --git a/docs/image/ss_chuck_2.png b/docs/image/ss_chuck_2.png new file mode 100644 index 0000000..0ad3999 Binary files /dev/null and b/docs/image/ss_chuck_2.png differ diff --git a/docs/image/ss_main.png b/docs/image/ss_main.png new file mode 100644 index 0000000..ff0cbed Binary files /dev/null and b/docs/image/ss_main.png differ diff --git a/frogothemealdbapi/build.gradle b/frogothemealdbapi/build.gradle index 9df13b1..dfa9fb3 100644 --- a/frogothemealdbapi/build.gradle +++ b/frogothemealdbapi/build.gradle @@ -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"