chachako / conductor

A small, yet full-featured framework that allows building View-based Android applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Conductor Travis Build

原 Conductor 做了部分修改以更贴合 Kotlin 和 Mars 相关项目的开发

Installation

for build.gradle.kts (recommended)

repositories {
  // add Mars maven-repository
  maven(url = "https://dl.bintray.com/oh-rin/Mars")
  // or use jcenter-repository
  // jcenter()
  ....
}

dependencies {
  // add Conductor newest dependency
  implementation("com.mars.library:conductor:${LATEST_VERSION}")
  ....
}
or build.gradle
repositories {
  // add Mars maven-repository
  maven {
    url 'https://dl.bintray.com/oh-rin/Mars'
  }
  // or use jcenter-repository
  // jcenter()
  ....
}

dependencies {
  // add Conductor newest dependency
  implementation "com.mars.library:conductor:${LATEST_VERSION}"
  ....
}

Changes

  • migrated all .gradle file to .kts file
  • merge the lifecycle-component
  • Controller.java converted to Controller.kt
  • added some like Activity api to Controller
  • added a lifecycle onInitialized(), to support callbacks after the constructor(...) before onCreateView()
  • added ComponentController, just like ComponentActivity, to support jetpack
  • ...

Lifecyle list

  • constructor
  • onInitialized (new)
  • onCreateView
  • onAttach
  • onDetach
  • onDestroyView
  • onDestroy

About

A small, yet full-featured framework that allows building View-based Android applications

License:Apache License 2.0


Languages

Language:Java 77.3%Language:Kotlin 22.7%