From f86ccb7967cb4a580c2da56f0ef3f45bef1b22ee Mon Sep 17 00:00:00 2001 From: amirisback Date: Wed, 13 May 2020 19:30:46 +0700 Subject: [PATCH] Release v1.0.4 --- README.md | 141 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 72 insertions(+), 69 deletions(-) diff --git a/README.md b/README.md index af2ad58..8eca2c8 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # consumable-code-news-api By AmirIsBack -- v1.0.3 - Development +- v1.0.4 - Development - Stable version # About This Project @@ -8,83 +8,20 @@ Eliminates the method of retrieving json data using retrofit repeatedly. so this # Special From This Project Simple code and reusable data -# Fecthing Data Library -- Retrofit -- RxJava -- OkHttp -- Chuck Interceptor - # Documentation The News API https://newsapi.org/ -# Function Main From This Project - // Switch For Using Chuck Interceptor - fun usingChuckInterceptor(context: Context) - - // Get Top Headline - fun getTopHeadline( - q: String?, - sources: String?, - category: String?, - country: String?, - pageSize: Int?, - page: Int?, - callback: NewsResultCallback - ) - - // Get Everythings - fun getEverythings( - q: String?, - from: String?, - to: String?, - qInTitle: String?, - sources: String?, - domains: String?, - excludeDomains: String?, - language: String?, - sortBy: String?, - pageSize: Int?, - page: Int?, - callback: NewsResultCallback - ) - - // Get Sources - fun getSources( - language: String, - country: String, - category: String, - callback: NewsResultCallback - ) - -# Contant Value Category - - object NewsConstant { - - const val CATEGORY_BUSINESS = "business" - const val CATEGORY_ENTERTAIMENT = "entertainment" - const val CATEGORY_GENERAL = "general" - const val CATEGORY_HEALTH = "health" - const val CATEGORY_SCIENCE = "science" - const val CATEGORY_SPORTS = "sports" - const val CATEGORY_TECHNOLOGY = "technology" - - } - -# Android Library Version (build.gradle) -- ext.kotlin_version = '1.3.71' -- classpath 'com.android.tools.build:gradle:3.6.1' -- compileSdkVersion 29 -- buildToolsVersion "29.0.3" -- minSdkVersion 21 +# Screenshoot Apps + # Version Release This Is Latest Release - $version_release = 1.0.3 + $version_release = 1.0.4 What's New?? - * Remove Unused Dependencies * + * update build.gradle, adding sample code * # How To Use This Project

Step 1. Add the JitPack repository to your build file

@@ -103,7 +40,7 @@ Add it in your root build.gradle at the end of repositories: dependencies { // library consumable code news api - implementation 'com.github.amirisback:consumable-code-news-api:$version_release' + implementation 'com.github.amirisback:consumable-code-news-api:1.0.4' }

Step 3. Declaration ConsumeNewsApi

@@ -137,6 +74,72 @@ Add it in your root build.gradle at the end of repositories: }) +# Contant Value Category + + object NewsConstant { + + const val CATEGORY_BUSINESS = "business" + const val CATEGORY_ENTERTAIMENT = "entertainment" + const val CATEGORY_GENERAL = "general" + const val CATEGORY_HEALTH = "health" + const val CATEGORY_SCIENCE = "science" + const val CATEGORY_SPORTS = "sports" + const val CATEGORY_TECHNOLOGY = "technology" + + } + +# Function Main From This Project + // Switch For Using Chuck Interceptor + fun usingChuckInterceptor(context: Context) + + // Get Top Headline + fun getTopHeadline( + q: String?, + sources: String?, + category: String?, + country: String?, + pageSize: Int?, + page: Int?, + callback: NewsResultCallback + ) + + // Get Everythings + fun getEverythings( + q: String?, + from: String?, + to: String?, + qInTitle: String?, + sources: String?, + domains: String?, + excludeDomains: String?, + language: String?, + sortBy: String?, + pageSize: Int?, + page: Int?, + callback: NewsResultCallback + ) + + // Get Sources + fun getSources( + language: String, + country: String, + category: String, + callback: NewsResultCallback + ) + +# Fecthing Data Library +- Retrofit +- RxJava +- OkHttp +- Chuck Interceptor + +# Android Library Version (build.gradle) +- ext.kotlin_version = '1.3.72' +- classpath 'com.android.tools.build:gradle:3.6.3' +- compileSdkVersion 29 +- buildToolsVersion "29.0.3" +- minSdkVersion 21 + # Colaborator Very open to anyone, I'll write your name under this, please contribute by sending an email to me