Skip to content

Commit 03f9ff8

Browse files
committed
Move navigation and di packages inside core.
1 parent 83023e4 commit 03f9ff8

File tree

16 files changed

+21
-21
lines changed

16 files changed

+21
-21
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ xmlns:android="http://schemas.android.com/apk/res/android">
1717

1818
<!--Activities-->
1919
<activity
20-
android:name=".navigation.RouteActivity"
20+
android:name="com.fernandocejas.sample.core.navigation.RouteActivity"
2121
android:noHistory="true"
2222
android:theme="@style/AppTheme.Translucent">
2323
<intent-filter>

app/src/main/kotlin/com/fernandocejas/sample/AndroidApplication.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
package com.fernandocejas.sample
1717

1818
import android.app.Application
19-
import com.fernandocejas.sample.di.ApplicationComponent
20-
import com.fernandocejas.sample.di.ApplicationModule
21-
import com.fernandocejas.sample.di.DaggerApplicationComponent
19+
import com.fernandocejas.sample.core.di.ApplicationComponent
20+
import com.fernandocejas.sample.core.di.ApplicationModule
21+
import com.fernandocejas.sample.core.di.DaggerApplicationComponent
2222
import com.squareup.leakcanary.LeakCanary
2323

2424
class AndroidApplication : Application() {

app/src/main/kotlin/com/fernandocejas/sample/BaseFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import android.support.v4.content.ContextCompat
2424
import android.view.LayoutInflater
2525
import android.view.View
2626
import android.view.ViewGroup
27-
import com.fernandocejas.sample.di.ApplicationComponent
27+
import com.fernandocejas.sample.core.di.ApplicationComponent
2828
import com.fernandocejas.sample.core.extension.appContext
2929
import com.fernandocejas.sample.core.extension.viewContainer
3030
import kotlinx.android.synthetic.main.toolbar.progress

app/src/main/kotlin/com/fernandocejas/sample/di/ApplicationComponent.kt renamed to app/src/main/kotlin/com/fernandocejas/sample/core/di/ApplicationComponent.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.fernandocejas.sample.di
16+
package com.fernandocejas.sample.core.di
1717

1818
import com.fernandocejas.sample.AndroidApplication
19-
import com.fernandocejas.sample.di.viewmodel.ViewModelModule
19+
import com.fernandocejas.sample.core.di.viewmodel.ViewModelModule
2020
import com.fernandocejas.sample.features.movies.MovieDetailsFragment
2121
import com.fernandocejas.sample.features.movies.MoviesFragment
22-
import com.fernandocejas.sample.navigation.RouteActivity
22+
import com.fernandocejas.sample.core.navigation.RouteActivity
2323
import dagger.Component
2424
import javax.inject.Singleton
2525

app/src/main/kotlin/com/fernandocejas/sample/di/ApplicationModule.kt renamed to app/src/main/kotlin/com/fernandocejas/sample/core/di/ApplicationModule.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.fernandocejas.sample.di
16+
package com.fernandocejas.sample.core.di
1717

1818
import android.content.Context
1919
import com.fernandocejas.sample.AndroidApplication

app/src/main/kotlin/com/fernandocejas/sample/di/viewmodel/ViewModelFactory.kt renamed to app/src/main/kotlin/com/fernandocejas/sample/core/di/viewmodel/ViewModelFactory.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.fernandocejas.sample.di.viewmodel
16+
package com.fernandocejas.sample.core.di.viewmodel
1717

1818
import android.arch.lifecycle.ViewModel
1919
import android.arch.lifecycle.ViewModelProvider

app/src/main/kotlin/com/fernandocejas/sample/di/viewmodel/ViewModelKey.kt renamed to app/src/main/kotlin/com/fernandocejas/sample/core/di/viewmodel/ViewModelKey.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.fernandocejas.sample.di.viewmodel
16+
package com.fernandocejas.sample.core.di.viewmodel
1717

1818
import android.arch.lifecycle.ViewModel
1919
import dagger.MapKey

app/src/main/kotlin/com/fernandocejas/sample/di/viewmodel/ViewModelModule.kt renamed to app/src/main/kotlin/com/fernandocejas/sample/core/di/viewmodel/ViewModelModule.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.fernandocejas.sample.di.viewmodel
16+
package com.fernandocejas.sample.core.di.viewmodel
1717

1818
import android.arch.lifecycle.ViewModel
1919
import android.arch.lifecycle.ViewModelProvider

app/src/main/kotlin/com/fernandocejas/sample/navigation/Navigator.kt renamed to app/src/main/kotlin/com/fernandocejas/sample/core/navigation/Navigator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.fernandocejas.sample.navigation
16+
package com.fernandocejas.sample.core.navigation
1717

1818
import android.content.ActivityNotFoundException
1919
import android.content.Context

app/src/main/kotlin/com/fernandocejas/sample/navigation/RouteActivity.kt renamed to app/src/main/kotlin/com/fernandocejas/sample/core/navigation/RouteActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.fernandocejas.sample.navigation
16+
package com.fernandocejas.sample.core.navigation
1717

1818
import android.os.Bundle
1919
import android.support.v7.app.AppCompatActivity
2020
import com.fernandocejas.sample.AndroidApplication
21-
import com.fernandocejas.sample.di.ApplicationComponent
21+
import com.fernandocejas.sample.core.di.ApplicationComponent
2222
import javax.inject.Inject
2323

2424
class RouteActivity : AppCompatActivity() {

0 commit comments

Comments
 (0)