Skip to content

Commit

Permalink
Move android-app sample and change its package name
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisCAD committed Apr 28, 2019
1 parent c977dd6 commit 56388e0
Show file tree
Hide file tree
Showing 76 changed files with 141 additions and 125 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ kotlin {
}
getByName("commonMain").dependencies {
api(kotlin("stdlib-common"))
implementation(project(":samples:base-app"))
}
getByName("androidMain").dependencies {
implementation(project(":fun-packs:android-material-components-with-views-dsl"))
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
<!--
~ Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
-->
<manifest package="com.louiscad.splittiessample"
<manifest package="com.example.splitties"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

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

<application
android:name=".DemoApp"
android:name="com.example.splitties.DemoApp"
android:allowBackup="true"
android:directBootAware="true"
android:fullBackupContent="true"
Expand All @@ -20,7 +20,7 @@
android:theme="@style/AppTheme.NoActionBar"
tools:ignore="GoogleAppIndexingWarning,UnusedAttribute">
<activity
android:name=".main.MainActivity"
android:name="com.example.splitties.main.MainActivity"
android:configChanges="orientation|screenSize|screenLayout|keyboard|keyboardHidden"
android:label="@string/app_name"
android:launchMode="singleTop">
Expand All @@ -30,53 +30,53 @@
</intent-filter>
</activity>
<activity
android:name=".demo.DemoActivity"
android:name="com.example.splitties.demo.DemoActivity"
android:configChanges="orientation|screenSize|screenLayout|keyboard|keyboardHidden"
android:label="@string/title_activity_demo"
android:launchMode="singleTop"
android:parentActivityName=".main.MainActivity">
android:parentActivityName="com.example.splitties.main.MainActivity">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.louiscad.splittiessample.main.MainActivity"/>
android:value="com.example.splitties.main.MainActivity"/>
</activity>
<activity
android:name=".about.AboutActivity"
android:name="com.example.splitties.about.AboutActivity"
android:configChanges="orientation|screenSize|screenLayout|keyboard|keyboardHidden"
android:label="@string/title_activity_about"
android:launchMode="singleTop"
android:parentActivityName=".main.MainActivity">
android:parentActivityName="com.example.splitties.main.MainActivity">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.louiscad.splittiessample.main.MainActivity"/>
android:value="com.example.splitties.main.MainActivity"/>
</activity>
<activity
android:name=".sayhello.SayHelloActivity"
android:name="com.example.splitties.sayhello.SayHelloActivity"
android:label="@string/say_hello"
android:launchMode="singleTop"
android:parentActivityName=".main.MainActivity">
android:parentActivityName="com.example.splitties.main.MainActivity">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.louiscad.splittiessample.main.MainActivity"/>
android:value="com.example.splitties.main.MainActivity"/>
</activity>
<activity
android:name=".preview.permissions.PermissionsExampleActivity"
android:name="com.example.splitties.preview.permissions.PermissionsExampleActivity"
android:configChanges="orientation|screenSize|screenLayout|keyboard|keyboardHidden"
android:label="Permissions request example"
android:launchMode="singleTop"
android:parentActivityName=".main.MainActivity">
android:parentActivityName="com.example.splitties.main.MainActivity">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.louiscad.splittiessample.main.MainActivity"/>
android:value="com.example.splitties.main.MainActivity"/>
</activity>

<provider
android:name=".AppInitProvider"
android:name="com.example.splitties.AppInitProvider"
android:authorities="${applicationId}.init"
android:exported="false"
android:initOrder="899"/>

<provider
android:name=".SecondProcessInitProvider"
android:name="com.example.splitties.SecondProcessInitProvider"
android:authorities="${applicationId}.appctxinitprovider.second_process"
android:exported="false"
android:initOrder="900"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/

package com.louiscad.splittiessample
package com.example.splitties

import android.app.Application
import android.content.ContentProvider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/

package com.louiscad.splittiessample
package com.example.splitties

import splitties.initprovider.InitProvider

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/

package com.louiscad.splittiessample
package com.example.splitties

import android.app.Application
import androidx.appcompat.app.AppCompatDelegate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/

package com.louiscad.splittiessample
package com.example.splitties

import splitties.init.AppCtxInitProvider
import splitties.init.appCtx
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/
package com.louiscad.splittiessample.about
package com.example.splitties.about

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/

package com.louiscad.splittiessample.about
package com.example.splitties.about

import android.content.Context
import com.louiscad.splittiessample.R
import com.louiscad.splittiessample.extensions.ui.addDefaultAppBar
import com.example.splitties.R
import com.example.splitties.extensions.ui.addDefaultAppBar
import splitties.dimensions.dip
import splitties.views.centerText
import splitties.views.dsl.constraintlayout.*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/

package com.louiscad.splittiessample.about
package com.example.splitties.about

import android.annotation.SuppressLint
import android.content.Context
Expand All @@ -13,8 +13,8 @@ import androidx.constraintlayout.widget.Barrier
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.core.text.bold
import androidx.core.text.buildSpannedString
import com.louiscad.splittiessample.R
import com.louiscad.splittiessample.extensions.ui.addDefaultAppBar
import com.example.splitties.R
import com.example.splitties.extensions.ui.addDefaultAppBar
import splitties.dimensions.dip
import splitties.resources.txt
import splitties.views.dsl.constraintlayout.*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/

package com.louiscad.splittiessample.demo
package com.example.splitties.demo

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.louiscad.splittiessample.R
import com.example.splitties.R
import splitties.checkedlazy.mainThreadLazy
import splitties.snackbar.action
import splitties.snackbar.onDismiss
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/

package com.louiscad.splittiessample.demo
package com.example.splitties.demo

import android.content.Context
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.louiscad.splittiessample.R
import com.example.splitties.R
import splitties.experimental.ExperimentalSplittiesApi
import splitties.material.lists.IconTwoLinesSwitchListItem
import splitties.typesaferecyclerview.ItemViewHolder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/

package com.louiscad.splittiessample.demo
package com.example.splitties.demo

import androidx.annotation.DrawableRes
import androidx.annotation.StringRes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/

package com.louiscad.splittiessample.demo
package com.example.splitties.demo

import android.content.Context
import androidx.appcompat.app.AppCompatActivity
import com.louiscad.splittiessample.R
import com.example.splitties.R
import splitties.dimensions.dip
import splitties.resources.txt
import splitties.views.dsl.appcompat.toolbar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/

package com.louiscad.splittiessample.demo
package com.example.splitties.demo

import androidx.annotation.DrawableRes
import androidx.annotation.StringRes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/

package com.louiscad.splittiessample.examples
package com.example.splitties.examples

import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/
package com.louiscad.splittiessample.extensions
package com.example.splitties.extensions

import android.os.Build.VERSION.SDK_INT
import android.text.Html
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
@file:Suppress("NOTHING_TO_INLINE")

package com.louiscad.splittiessample.extensions
package com.example.splitties.extensions

import android.content.Intent
import splitties.init.appCtx
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/

package com.louiscad.splittiessample.extensions
package com.example.splitties.extensions

@PublishedApi
internal const val NO_GETTER = "Property does not have a getter"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/

package com.louiscad.splittiessample.extensions
package com.example.splitties.extensions

import android.app.UiModeManager
import android.content.res.Configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/

package com.louiscad.splittiessample.extensions.coroutines
package com.example.splitties.extensions.coroutines

import android.content.BroadcastReceiver
import android.content.Context
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/
package com.louiscad.splittiessample.extensions.coroutines
package com.example.splitties.extensions.coroutines

import kotlinx.coroutines.*
import kotlinx.coroutines.channels.ReceiveChannel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/

package com.louiscad.splittiessample.extensions.coroutines
package com.example.splitties.extensions.coroutines

import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.channels.Channel.Factory.CONFLATED
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/

package com.louiscad.splittiessample.extensions.coroutines
package com.example.splitties.extensions.coroutines

import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.LiveData
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/

package com.louiscad.splittiessample.extensions.coroutines
package com.example.splitties.extensions.coroutines

import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.CoroutineStart
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/

package com.louiscad.splittiessample.extensions.coroutines
package com.example.splitties.extensions.coroutines

import kotlin.coroutines.coroutineContext
import kotlinx.coroutines.ensureActive
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/

package com.louiscad.splittiessample.extensions.coroutines
package com.example.splitties.extensions.coroutines

import kotlinx.coroutines.channels.SendChannel

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/

package com.louiscad.splittiessample.extensions.coroutines
package com.example.splitties.extensions.coroutines

import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Dispatchers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/

package com.louiscad.splittiessample.extensions.coroutines
package com.example.splitties.extensions.coroutines

import androidx.room.RoomDatabase
import kotlinx.coroutines.Dispatchers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/

package com.louiscad.splittiessample.extensions.dialog
package com.example.splitties.extensions.dialog

import android.app.Dialog
import com.louiscad.splittiessample.extensions.coroutines.raceOf
import com.example.splitties.extensions.coroutines.raceOf
import kotlinx.coroutines.CoroutineStart
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.async
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/
package com.louiscad.splittiessample.extensions.drawables
package com.example.splitties.extensions.drawables

import android.graphics.drawable.GradientDrawable
import com.louiscad.splittiessample.extensions.NO_GETTER
import com.louiscad.splittiessample.extensions.noGetter
import com.example.splitties.extensions.NO_GETTER
import com.example.splitties.extensions.noGetter

inline fun gradientDrawable(
shape: Int = GradientDrawable.RECTANGLE,
Expand Down
Loading

0 comments on commit 56388e0

Please sign in to comment.