Skip to content

Commit

Permalink
[Chore] Generate & update sample project
Browse files Browse the repository at this point in the history
  • Loading branch information
bot-nimble committed Aug 29, 2023
1 parent 10326df commit a526a92
Show file tree
Hide file tree
Showing 20 changed files with 143 additions and 143 deletions.
4 changes: 2 additions & 2 deletions sample/android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ plugins {
val keystoreProperties = loadProperties("$rootDir/signing.properties")

android {
namespace = "co.nimblehq.kmm.template.android"
namespace = "co.nimblehq.kmm.template"
compileSdk = Versions.ANDROID_COMPILE_SDK
defaultConfig {
applicationId = "co.nimblehq.kmm.template.android"
applicationId = "co.nimblehq.kmm.template"
minSdk = Versions.ANDROID_MIN_SDK
targetSdk = Versions.ANDROID_TARGET_SDK
versionCode = Versions.ANDROID_VERSION_CODE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package co.nimblehq.kmm.template.android.util
package co.nimblehq.kmm.template.util

import timber.log.Timber

Expand Down
4 changes: 2 additions & 2 deletions sample/android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="co.nimblehq.kmm.template.android">
package="co.nimblehq.kmm.template">

<uses-permission android:name="android.permission.INTERNET"/>

<application
android:name=".MyApplication"
android:name=".MainApplication"
android:allowBackup="false"
android:label="@string/app_name"
android:supportsRtl="true"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package co.nimblehq.kmm.template.android
package co.nimblehq.kmm.template

import android.app.Application
import co.nimblehq.kmm.template.android.di.androidViewModelModule
import co.nimblehq.kmm.template.android.util.LogUtil
import co.nimblehq.kmm.template.di.androidViewModelModule
import co.nimblehq.kmm.template.util.LogUtil
import co.nimblehq.kmm.template.di.initKoin
import org.koin.android.ext.koin.androidContext

class MyApplication : Application() {
class MainApplication : Application() {

override fun onCreate() {
super.onCreate()
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package co.nimblehq.kmm.template.android.di
package co.nimblehq.kmm.template.di

import org.koin.core.module.Module
import org.koin.dsl.module
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package co.nimblehq.kmm.template.lib

typealias IsLoading = Boolean
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package co.nimblehq.kmm.template.android.ui.base
package co.nimblehq.kmm.template.ui.base

import androidx.compose.runtime.*
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.flow.*
import kotlinx.coroutines.launch
import co.nimblehq.kmm.template.android.lib.IsLoading
import co.nimblehq.kmm.template.android.ui.navigation.AppDestination
import co.nimblehq.kmm.template.lib.IsLoading
import co.nimblehq.kmm.template.ui.navigation.AppDestination

@Suppress("PropertyName")
abstract class BaseViewModel : ViewModel() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package co.nimblehq.kmm.template.android.ui.navigation
package co.nimblehq.kmm.template.ui.navigation

import androidx.navigation.NamedNavArgument

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package co.nimblehq.kmm.template.android.ui.navigation
package co.nimblehq.kmm.template.ui.navigation

import androidx.compose.runtime.Composable
import androidx.navigation.*
import androidx.navigation.compose.*
import co.nimblehq.kmm.template.android.ui.screens.home.HomeScreen
import co.nimblehq.kmm.template.ui.screens.home.HomeScreen

@Composable
fun AppNavigation(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package co.nimblehq.kmm.template.android.ui.screens
package co.nimblehq.kmm.template.ui.screens

import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import co.nimblehq.kmm.template.android.ui.navigation.AppNavigation
import co.nimblehq.kmm.template.android.ui.theme.ComposeTheme
import co.nimblehq.kmm.template.ui.navigation.AppNavigation
import co.nimblehq.kmm.template.ui.theme.ComposeTheme

class MainActivity : ComponentActivity() {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package co.nimblehq.kmm.template.android.ui.screens.home
package co.nimblehq.kmm.template.ui.screens.home

import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.tooling.preview.Preview
import co.nimblehq.kmm.template.Greeting
import co.nimblehq.kmm.template.android.ui.theme.ComposeTheme
import co.nimblehq.kmm.template.ui.theme.ComposeTheme

@Composable
fun HomeScreen() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package co.nimblehq.kmm.template.android.ui.theme
package co.nimblehq.kmm.template.ui.theme

import androidx.compose.material.*
import androidx.compose.runtime.staticCompositionLocalOf
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package co.nimblehq.kmm.template.android.ui.theme
package co.nimblehq.kmm.template.ui.theme

import androidx.compose.runtime.staticCompositionLocalOf

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package co.nimblehq.kmm.template.android.ui.theme
package co.nimblehq.kmm.template.ui.theme

import androidx.compose.runtime.staticCompositionLocalOf

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@file:Suppress("MatchingDeclarationName")
package co.nimblehq.kmm.template.android.ui.theme
package co.nimblehq.kmm.template.ui.theme

import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.shape.RoundedCornerShape
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package co.nimblehq.kmm.template.android.util
package co.nimblehq.kmm.template.util

import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Dispatchers
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package co.nimblehq.kmm.template.android.util
package co.nimblehq.kmm.template.util

import timber.log.Timber

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package co.nimblehq.kmm.template.android.test
package co.nimblehq.kmm.template.test

import kotlinx.coroutines.*
import kotlinx.coroutines.test.*
Expand Down
Loading

0 comments on commit a526a92

Please sign in to comment.