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.3
Browse files Browse the repository at this point in the history
  • Loading branch information
amirisback committed Apr 2, 2020
1 parent 040560e commit b8d6ad0
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# consumable-code-news-api By AmirIsBack
- v1.0.2 - Development
- v1.0.3 - Development
- Stable version

# About This Project
Expand Down Expand Up @@ -80,7 +80,7 @@ https://newsapi.org/
# Version Release
This Is Latest Release

$version_release = 1.0.2
$version_release = 1.0.3

What's New??

Expand Down Expand Up @@ -113,8 +113,8 @@ Add it in your root build.gradle at the end of repositories:
consumeNewsApi.getTopHeadline( // Adding Base Parameter on main function
null,
null,
null,
"id",
CATEGORY_HEALTH,
COUNTRY_ID,
null,
null,
object : NewsResultCallback<ArticleResponse> {
Expand Down
6 changes: 4 additions & 2 deletions app/src/main/java/com/frogobox/newsapi/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import androidx.appcompat.app.AppCompatActivity
import com.frogobox.frogonewsapi.ConsumeNewsApi
import com.frogobox.frogonewsapi.callback.NewsResultCallback
import com.frogobox.frogonewsapi.data.response.ArticleResponse
import com.frogobox.frogonewsapi.util.NewsConstant.CATEGORY_HEALTH
import com.frogobox.frogonewsapi.util.NewsConstant.COUNTRY_ID
import com.frogobox.frogonewsapi.util.NewsUrl

class MainActivity : AppCompatActivity() {
Expand All @@ -18,8 +20,8 @@ class MainActivity : AppCompatActivity() {
consumeNewsApi.getTopHeadline(
null,
null,
null,
"id",
CATEGORY_HEALTH,
COUNTRY_ID,
null,
null,
object : NewsResultCallback<ArticleResponse> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,59 @@ object NewsConstant {
const val CATEGORY_SPORTS = "sports"
const val CATEGORY_TECHNOLOGY = "technology"

const val COUNTRY_AE = "ae"
const val COUNTRY_AR = "ar"
const val COUNTRY_AT = "at"
const val COUNTRY_AU = "au"
const val COUNTRY_BE = "be"
const val COUNTRY_BG = "bg"
const val COUNTRY_BR = "br"
const val COUNTRY_CA = "ca"
const val COUNTRY_CH = "ch"
const val COUNTRY_CN = "cn"
const val COUNTRY_CO = "co"
const val COUNTRY_CU = "cu"
const val COUNTRY_CZ = "cz"
const val COUNTRY_DE = "de"
const val COUNTRY_EG = "eg"
const val COUNTRY_FR = "fr"
const val COUNTRY_GB = "gb"
const val COUNTRY_GR = "gr"
const val COUNTRY_HK = "hk"
const val COUNTRY_HU = "hu"
const val COUNTRY_ID = "id"
const val COUNTRY_IE = "ie"
const val COUNTRY_IL = "il"
const val COUNTRY_IN = "in"
const val COUNTRY_IT = "it"
const val COUNTRY_JP = "jp"
const val COUNTRY_KR = "kr"
const val COUNTRY_LT = "lt"
const val COUNTRY_LV = "lv"
const val COUNTRY_MA = "ma"
const val COUNTRY_MX = "mx"
const val COUNTRY_MY = "my"
const val COUNTRY_NG = "ng"
const val COUNTRY_NL = "nl"
const val COUNTRY_NO = "no"
const val COUNTRY_NZ = "nz"
const val COUNTRY_PH = "ph"
const val COUNTRY_PL = "pl"
const val COUNTRY_PT = "pt"
const val COUNTRY_RO = "ro"
const val COUNTRY_RS = "rs"
const val COUNTRY_RU = "ru"
const val COUNTRY_SA = "sa"
const val COUNTRY_SE = "se"
const val COUNTRY_SG = "sg"
const val COUNTRY_SI = "si"
const val COUNTRY_SK = "sk"
const val COUNTRY_TH = "th"
const val COUNTRY_TR = "tr"
const val COUNTRY_TW = "tw"
const val COUNTRY_UA = "ua"
const val COUNTRY_US = "us"
const val COUNTRY_VE = "ve"
const val COUNTRY_ZA = "za"

}

0 comments on commit b8d6ad0

Please sign in to comment.