Releases: amirisback/consumable-code-news-api
Release v1.0.7
* Update Build Gradle *
* Enhance Performance *
Remove Unused Dependencies
* Fixing CLEARTEXT security policy issue *
* Update build.gradle *
* Fixing Bug *
* Enhance Performance *
* Remove Kotlin Android Extension *
Bug-Fixed
- update build.gradle *
- fixing CLEARTEXT security policy issue *
updating gradle version
- adding LICENSE
- update build.gradle version
- adding sample code resource
add: constant value country
add: all constant value country available
add: constant value
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"
}
Remove Unused Dependencies
update: Build. Gradle
Consumable-code-news-api
Retrofit has been Handled !! || Consumable code for request API (News API) || Link https://newsapi.org/
// 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
)