Change package to com.wbrawner.budget

This commit is contained in:
William Brawner 2018-08-23 22:32:29 -05:00
parent 174364131a
commit 9cd1428db8
19 changed files with 52 additions and 51 deletions

View file

@ -17,7 +17,7 @@ android {
targetCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8
} }
defaultConfig { defaultConfig {
applicationId "com.wbrawner.myallowance" applicationId "com.wbrawner.budget"
minSdkVersion 23 minSdkVersion 23
targetSdkVersion 27 targetSdkVersion 27
versionCode 1 versionCode 1

View file

@ -1,4 +1,4 @@
package com.wbrawner.myallowance package com.wbrawner.budget
import android.support.test.InstrumentationRegistry import android.support.test.InstrumentationRegistry
import android.support.test.runner.AndroidJUnit4 import android.support.test.runner.AndroidJUnit4
@ -19,6 +19,6 @@ class ExampleInstrumentedTest {
fun useAppContext() { fun useAppContext() {
// Context of the app under test. // Context of the app under test.
val appContext = InstrumentationRegistry.getTargetContext() val appContext = InstrumentationRegistry.getTargetContext()
assertEquals("com.wbrawner.myallowance", appContext.packageName) assertEquals("com.wbrawner.budget", appContext.packageName)
} }
} }

View file

@ -1,16 +1,16 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.wbrawner.myallowance"> package="com.wbrawner.budget">
<application <application
android:name=".AllowanceApplication" android:name="com.wbrawner.budget.AllowanceApplication"
android:allowBackup="true" android:allowBackup="true"
android:icon="@mipmap/ic_launcher" android:icon="@mipmap/ic_launcher"
android:label="@string/app_name" android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round" android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true" android:supportsRtl="true"
android:theme="@style/AppTheme"> android:theme="@style/AppTheme">
<activity android:name=".transactions.TransactionListActivity"> <activity android:name="com.wbrawner.budget.transactions.TransactionListActivity">
<intent-filter android:label="@string/app_name_short"> <intent-filter android:label="@string/app_name_short">
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
@ -20,7 +20,7 @@
android:name="android.app.shortcuts" android:name="android.app.shortcuts"
android:resource="@xml/shortcuts" /> android:resource="@xml/shortcuts" />
</activity> </activity>
<activity android:name=".addedittransaction.AddEditTransactionActivity" /> <activity android:name="com.wbrawner.budget.addedittransaction.AddEditTransactionActivity" />
</application> </application>
</manifest> </manifest>

View file

@ -1,10 +1,11 @@
package com.wbrawner.myallowance package com.wbrawner.budget
import android.app.Application import android.app.Application
import android.arch.persistence.room.Room import android.arch.persistence.room.Room
import android.content.Context import android.content.Context
import com.wbrawner.myallowance.data.TransactionDao import com.wbrawner.budget.data.TransactionDao
import com.wbrawner.myallowance.data.TransactionsDatabase import com.wbrawner.budget.data.TransactionsDatabase
import com.wbrawner.budget.BuildConfig
import org.acra.ACRA import org.acra.ACRA
import org.acra.annotation.AcraCore import org.acra.annotation.AcraCore
import org.acra.annotation.AcraHttpSender import org.acra.annotation.AcraHttpSender

View file

@ -1,4 +1,4 @@
package com.wbrawner.myallowance.addedittransaction package com.wbrawner.budget.addedittransaction
import android.arch.lifecycle.Observer import android.arch.lifecycle.Observer
import android.arch.lifecycle.ViewModelProviders import android.arch.lifecycle.ViewModelProviders
@ -6,10 +6,10 @@ import android.os.Bundle
import android.support.v7.app.AppCompatActivity import android.support.v7.app.AppCompatActivity
import android.view.Menu import android.view.Menu
import android.view.MenuItem import android.view.MenuItem
import com.wbrawner.myallowance.R import com.wbrawner.budget.R
import com.wbrawner.myallowance.data.Transaction import com.wbrawner.budget.data.Transaction
import com.wbrawner.myallowance.data.TransactionType import com.wbrawner.budget.data.TransactionType
import com.wbrawner.myallowance.transactions.TransactionViewModel import com.wbrawner.budget.transactions.TransactionViewModel
import kotlinx.android.synthetic.main.activity_add_edit_transaction.* import kotlinx.android.synthetic.main.activity_add_edit_transaction.*
import java.util.* import java.util.*

View file

@ -1,4 +1,4 @@
package com.wbrawner.myallowance.data package com.wbrawner.budget.data
import android.arch.persistence.room.Entity import android.arch.persistence.room.Entity
import android.arch.persistence.room.PrimaryKey import android.arch.persistence.room.PrimaryKey

View file

@ -1,4 +1,4 @@
package com.wbrawner.myallowance.data package com.wbrawner.budget.data
import android.arch.lifecycle.LiveData import android.arch.lifecycle.LiveData
import android.arch.persistence.room.Dao import android.arch.persistence.room.Dao

View file

@ -1,4 +1,4 @@
package com.wbrawner.myallowance.data package com.wbrawner.budget.data
import android.arch.lifecycle.LiveData import android.arch.lifecycle.LiveData
import android.os.Handler import android.os.Handler

View file

@ -1,8 +1,8 @@
package com.wbrawner.myallowance.data package com.wbrawner.budget.data
import android.support.annotation.ColorRes import android.support.annotation.ColorRes
import android.support.annotation.StringRes import android.support.annotation.StringRes
import com.wbrawner.myallowance.R import com.wbrawner.budget.R
import java.io.Serializable import java.io.Serializable
enum class TransactionType( enum class TransactionType(

View file

@ -1,4 +1,4 @@
package com.wbrawner.myallowance.data package com.wbrawner.budget.data
import android.arch.persistence.room.Database import android.arch.persistence.room.Database
import android.arch.persistence.room.RoomDatabase import android.arch.persistence.room.RoomDatabase

View file

@ -1,4 +1,4 @@
package com.wbrawner.myallowance.data package com.wbrawner.budget.data
import java.text.SimpleDateFormat import java.text.SimpleDateFormat
import java.util.* import java.util.*

View file

@ -1,4 +1,4 @@
package com.wbrawner.myallowance.overview package com.wbrawner.budget.overview
import android.arch.lifecycle.Observer import android.arch.lifecycle.Observer
import android.arch.lifecycle.ViewModelProviders import android.arch.lifecycle.ViewModelProviders
@ -8,8 +8,8 @@ import android.view.LayoutInflater
import android.view.View import android.view.View
import android.view.ViewGroup import android.view.ViewGroup
import android.widget.TextView import android.widget.TextView
import com.wbrawner.myallowance.R import com.wbrawner.budget.R
import com.wbrawner.myallowance.transactions.TransactionViewModel import com.wbrawner.budget.transactions.TransactionViewModel
class OverviewFragment : Fragment() { class OverviewFragment : Fragment() {
lateinit var viewModel: TransactionViewModel lateinit var viewModel: TransactionViewModel

View file

@ -1,4 +1,4 @@
package com.wbrawner.myallowance.transactions package com.wbrawner.budget.transactions
import android.content.Intent import android.content.Intent
import android.support.v4.content.ContextCompat.startActivity import android.support.v4.content.ContextCompat.startActivity
@ -7,10 +7,10 @@ import android.view.LayoutInflater
import android.view.View import android.view.View
import android.view.ViewGroup import android.view.ViewGroup
import android.widget.TextView import android.widget.TextView
import com.wbrawner.myallowance.R import com.wbrawner.budget.R
import com.wbrawner.myallowance.addedittransaction.AddEditTransactionActivity import com.wbrawner.budget.addedittransaction.AddEditTransactionActivity
import com.wbrawner.myallowance.addedittransaction.AddEditTransactionActivity.Companion.EXTRA_TRANSACTION_ID import com.wbrawner.budget.addedittransaction.AddEditTransactionActivity.Companion.EXTRA_TRANSACTION_ID
import com.wbrawner.myallowance.data.Transaction import com.wbrawner.budget.data.Transaction
import java.text.SimpleDateFormat import java.text.SimpleDateFormat
class TransactionAdapter(private val data: List<Transaction>) class TransactionAdapter(private val data: List<Transaction>)

View file

@ -1,13 +1,13 @@
package com.wbrawner.myallowance.transactions package com.wbrawner.budget.transactions
import android.os.Bundle import android.os.Bundle
import android.support.annotation.StringRes import android.support.annotation.StringRes
import android.support.text.emoji.EmojiCompat import android.support.text.emoji.EmojiCompat
import android.support.text.emoji.bundled.BundledEmojiCompatConfig import android.support.text.emoji.bundled.BundledEmojiCompatConfig
import android.support.v7.app.AppCompatActivity import android.support.v7.app.AppCompatActivity
import com.wbrawner.myallowance.R import com.wbrawner.budget.R
import com.wbrawner.myallowance.data.TransactionType import com.wbrawner.budget.data.TransactionType
import com.wbrawner.myallowance.overview.OverviewFragment import com.wbrawner.budget.overview.OverviewFragment
import kotlinx.android.synthetic.main.activity_transaction_list.* import kotlinx.android.synthetic.main.activity_transaction_list.*
class TransactionListActivity : AppCompatActivity() { class TransactionListActivity : AppCompatActivity() {

View file

@ -1,4 +1,4 @@
package com.wbrawner.myallowance.transactions package com.wbrawner.budget.transactions
import android.arch.lifecycle.Observer import android.arch.lifecycle.Observer
import android.arch.lifecycle.ViewModelProviders import android.arch.lifecycle.ViewModelProviders
@ -12,11 +12,11 @@ import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater import android.view.LayoutInflater
import android.view.View import android.view.View
import android.view.ViewGroup import android.view.ViewGroup
import com.wbrawner.myallowance.R import com.wbrawner.budget.R
import com.wbrawner.myallowance.addedittransaction.AddEditTransactionActivity import com.wbrawner.budget.addedittransaction.AddEditTransactionActivity
import com.wbrawner.myallowance.addedittransaction.AddEditTransactionActivity.Companion.EXTRA_TYPE import com.wbrawner.budget.addedittransaction.AddEditTransactionActivity.Companion.EXTRA_TYPE
import com.wbrawner.myallowance.data.Transaction import com.wbrawner.budget.data.Transaction
import com.wbrawner.myallowance.data.TransactionType import com.wbrawner.budget.data.TransactionType
class TransactionListFragment : Fragment() { class TransactionListFragment : Fragment() {
lateinit var viewModel: TransactionViewModel lateinit var viewModel: TransactionViewModel

View file

@ -1,12 +1,12 @@
package com.wbrawner.myallowance.transactions package com.wbrawner.budget.transactions
import android.app.Application import android.app.Application
import android.arch.lifecycle.AndroidViewModel import android.arch.lifecycle.AndroidViewModel
import android.arch.lifecycle.LiveData import android.arch.lifecycle.LiveData
import com.wbrawner.myallowance.AllowanceApplication import com.wbrawner.budget.AllowanceApplication
import com.wbrawner.myallowance.data.Transaction import com.wbrawner.budget.data.Transaction
import com.wbrawner.myallowance.data.TransactionRepository import com.wbrawner.budget.data.TransactionRepository
import com.wbrawner.myallowance.data.TransactionType import com.wbrawner.budget.data.TransactionType
class TransactionViewModel(application: Application): AndroidViewModel(application) { class TransactionViewModel(application: Application): AndroidViewModel(application) {
private val transactionRepo = TransactionRepository((application as AllowanceApplication).dao) private val transactionRepo = TransactionRepository((application as AllowanceApplication).dao)

View file

@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context=".transactions.TransactionListActivity"> tools:context="com.wbrawner.budget.transactions.TransactionListActivity">
<android.support.v7.widget.Toolbar <android.support.v7.widget.Toolbar
android:id="@+id/action_bar" android:id="@+id/action_bar"

View file

@ -9,8 +9,8 @@
tools:ignore="UnusedAttribute"> tools:ignore="UnusedAttribute">
<intent <intent
android:action="android.intent.action.VIEW" android:action="android.intent.action.VIEW"
android:targetPackage="com.wbrawner.myallowance" android:targetPackage="com.wbrawner.budget"
android:targetClass="com.wbrawner.myallowance.addedittransaction.AddEditTransactionActivity"> android:targetClass="com.wbrawner.budget.addedittransaction.AddEditTransactionActivity">
<extra <extra
android:name="EXTRA_TRANSACTION_TYPE" android:name="EXTRA_TRANSACTION_TYPE"
android:value="EXPENSE" /> android:value="EXPENSE" />
@ -24,8 +24,8 @@
tools:ignore="UnusedAttribute"> tools:ignore="UnusedAttribute">
<intent <intent
android:action="android.intent.action.VIEW" android:action="android.intent.action.VIEW"
android:targetPackage="com.wbrawner.myallowance" android:targetPackage="com.wbrawner.budget"
android:targetClass="com.wbrawner.myallowance.addedittransaction.AddEditTransactionActivity"> android:targetClass="com.wbrawner.budget.addedittransaction.AddEditTransactionActivity">
<extra <extra
android:name="EXTRA_TRANSACTION_TYPE" android:name="EXTRA_TRANSACTION_TYPE"
android:value="INCOME" /> android:value="INCOME" />

View file

@ -1,4 +1,4 @@
package com.wbrawner.myallowance package com.wbrawner.budget
import org.junit.Test import org.junit.Test