Skip to content

Commit

Permalink
Update API address and minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
levinli303 committed Oct 17, 2020
1 parent e934dd5 commit e65d5ef
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ class MainActivity : AppCompatActivity(R.layout.activity_main),

override fun onDestroy() {
AppStatusReporter.shared().unregister(this)
compositeDisposable.dispose()
compositeDisposable.clear()

super.onDestroy()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class SearchFragment : Fragment() {
}

override fun onDestroy() {
compositeDisposable.dispose()
compositeDisposable.clear()

super.onDestroy()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class ResultMap<T>(private val cls: Class<T>?) : Function<BaseResult, T?> {

object ShareAPI {
val shared: Retrofit = Retrofit.Builder()
.baseUrl("https://astroweather.cn/celestia/")
.baseUrl("https://celestia.mobi/api/")
.addCallAdapterFactory(RxJava3CallAdapterFactory.create())
.addConverterFactory(GsonConverterFactory.create())
.build()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ enum class ToolbarAction : Serializable {
Setting -> "Settings"
Home -> "Home (Sol)"
Event -> "Eclipse Finder"
Exit -> "Exit"
else -> this.toString()
}
return CelestiaString(orig, "")
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ buildscript {

}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.2'
classpath 'com.android.tools.build:gradle:4.1.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// NOTE: Do not place your application dependencies here; they belong
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip

0 comments on commit e65d5ef

Please sign in to comment.