Skip to content

Commit

Permalink
Merge pull request #375 from mash-up-kr/release/v1.2.0
Browse files Browse the repository at this point in the history
Release/v1.2.0
  • Loading branch information
jaeryo2357 authored May 15, 2023
2 parents d82ef1b + 47b7b85 commit 6ae63e5
Show file tree
Hide file tree
Showing 160 changed files with 4,358 additions and 508 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @Ahn-seokjoo @jaeryo2357 @Sookhee
2 changes: 1 addition & 1 deletion .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
branches: [ "develop", "refactor*", "fix*", "feat*", "feature*", "chore*", "test*" ]

jobs:
build:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ obj/
.idea/gradle.xml
.idea/jarRepositories.xml
.idea/navEditor.xml
.idea/codeStyles/Project.xml

# OS-specific files
.DS_Store
Expand Down
3 changes: 0 additions & 3 deletions .idea/.gitignore

This file was deleted.

128 changes: 0 additions & 128 deletions .idea/codeStyles/Project.xml

This file was deleted.

5 changes: 0 additions & 5 deletions .idea/codeStyles/codeStyleConfig.xml

This file was deleted.

12 changes: 0 additions & 12 deletions .idea/inspectionProfiles/Project_Default.xml

This file was deleted.

10 changes: 8 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ android {
applicationId "com.mashup"
minSdkVersion minVersion
targetSdkVersion targetVersion
versionCode 20
versionName "1.1.4"
versionCode 21
versionName "1.2.0"

testInstrumentationRunner "com.mashup.core.testing.MashUpTestRunner"
vectorDrawables {
Expand Down Expand Up @@ -98,6 +98,7 @@ dependencies {
implementation project(":core:datastore")
implementation project(":core:firebase")
implementation project(":feature:setting")
implementation project(":feature:danggn")

// ml Kit
implementation "com.google.mlkit:barcode-scanning:$barcodeSacnnerVersion"
Expand Down Expand Up @@ -140,4 +141,9 @@ dependencies {

// coroutine test
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutineVersion"

// flipper
implementation "com.facebook.flipper:flipper:$flipperVersion"
implementation "com.facebook.soloader:soloader:$soLoaderVersion"
implementation "com.facebook.flipper:flipper-network-plugin:$flipperVersion"
}
21 changes: 19 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@

<meta-data android:name="google_analytics_automatic_screen_reporting_enabled" android:value="false" />

<activity
android:name=".ui.danggn.DanggnInfoActivity"
android:exported="false"
android:screenOrientation="portrait"
tools:ignore="LockedOrientationActivity" />

<activity
android:name=".ui.danggn.ShakeDanggnActivity"
android:exported="false"
android:screenOrientation="portrait"
tools:ignore="LockedOrientationActivity" />

<activity
android:name=".ui.signup.SignUpActivity"
android:exported="false"
Expand Down Expand Up @@ -92,7 +104,12 @@
android:name=".ui.setting.SettingActivity"
android:exported="false"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustNothing"
tools:ignore="LockedOrientationActivity"/>

<activity
android:name=".ui.setting.PushActivity"
android:exported="false"
android:screenOrientation="portrait"
tools:ignore="LockedOrientationActivity"/>

<activity
Expand All @@ -103,7 +120,7 @@
tools:ignore="LockedOrientationActivity" />

<service
android:name=".util.MashUpFirebaseMessagingService"
android:name=".service.MashUpFirebaseMessagingService"
android:exported="false">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
Expand Down
20 changes: 19 additions & 1 deletion app/src/main/java/com/mashup/MashUpApplication.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,25 @@
package com.mashup

import android.app.Application
import com.facebook.flipper.android.AndroidFlipperClient
import com.facebook.flipper.android.utils.FlipperUtils
import com.facebook.flipper.plugins.inspector.DescriptorMapping
import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin
import com.facebook.soloader.SoLoader
import com.mashup.di.NetworkModule
import dagger.hilt.android.HiltAndroidApp

@HiltAndroidApp
class MashUpApplication : Application()
class MashUpApplication : Application() {
override fun onCreate() {
super.onCreate()
SoLoader.init(this, false)

if (BuildConfig.DEBUG && FlipperUtils.shouldEnableFlipper(this)) {
val client = AndroidFlipperClient.getInstance(this)
client.addPlugin(InspectorFlipperPlugin(this, DescriptorMapping.withDefaults()))
client.addPlugin(NetworkModule.flipperNetwork)
client.start()
}
}
}
16 changes: 12 additions & 4 deletions app/src/main/java/com/mashup/base/BaseActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import android.app.Dialog
import android.os.Bundle
import android.view.LayoutInflater
import androidx.appcompat.app.AppCompatActivity
import androidx.core.os.bundleOf
import androidx.core.view.ViewCompat
import androidx.core.view.WindowCompat
import androidx.core.view.WindowInsetsCompat
Expand All @@ -12,20 +13,22 @@ import androidx.databinding.ViewDataBinding
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.lifecycleScope
import androidx.lifecycle.repeatOnLifecycle
import com.mashup.constant.EXTRA_ACTIVITY_ENTER_TYPE
import com.mashup.constant.EXTRA_ANIMATION
import com.mashup.core.common.constant.BAD_REQUEST
import com.mashup.core.common.constant.DISCONNECT_NETWORK
import com.mashup.core.common.constant.INTERNAL_SERVER_ERROR
import com.mashup.core.common.constant.UNAUTHORIZED
import com.mashup.core.common.model.NavigationAnimationType
import com.mashup.core.common.utils.ProgressbarUtil
import com.mashup.core.common.utils.ToastUtil
import com.mashup.core.common.utils.keyboard.RootViewDeferringInsetsCallback
import com.mashup.core.common.widget.CommonDialog
import com.mashup.network.NetworkStatusState
import com.mashup.network.data.NetworkStatusDetector
import com.mashup.network.errorcode.BAD_REQUEST
import com.mashup.network.errorcode.DISCONNECT_NETWORK
import com.mashup.network.errorcode.INTERNAL_SERVER_ERROR
import com.mashup.network.errorcode.UNAUTHORIZED
import com.mashup.ui.error.NetworkDisconnectActivity
import com.mashup.ui.login.LoginActivity
import com.mashup.util.AnalyticsManager
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.flow.collectLatest
import kotlinx.coroutines.launch
Expand Down Expand Up @@ -179,4 +182,9 @@ abstract class BaseActivity<V : ViewDataBinding> : AppCompatActivity() {
)
}
}

protected fun sendActivityEnterType(screenName: String) {
val type = intent.getStringExtra(EXTRA_ACTIVITY_ENTER_TYPE) ?: return
AnalyticsManager.addEvent(screenName, bundleOf("type" to type))
}
}
8 changes: 4 additions & 4 deletions app/src/main/java/com/mashup/base/BaseFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ import androidx.fragment.app.Fragment
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.lifecycleScope
import androidx.lifecycle.repeatOnLifecycle
import com.mashup.core.common.constant.BAD_REQUEST
import com.mashup.core.common.constant.DISCONNECT_NETWORK
import com.mashup.core.common.constant.INTERNAL_SERVER_ERROR
import com.mashup.core.common.constant.UNAUTHORIZED
import com.mashup.core.common.utils.ProgressbarUtil
import com.mashup.core.common.utils.ToastUtil
import com.mashup.core.common.widget.CommonDialog
import com.mashup.network.NetworkStatusState
import com.mashup.network.data.NetworkStatusDetector
import com.mashup.network.errorcode.BAD_REQUEST
import com.mashup.network.errorcode.DISCONNECT_NETWORK
import com.mashup.network.errorcode.INTERNAL_SERVER_ERROR
import com.mashup.network.errorcode.UNAUTHORIZED
import com.mashup.ui.error.NetworkDisconnectActivity
import com.mashup.ui.login.LoginActivity
import kotlinx.coroutines.CoroutineScope
Expand Down
7 changes: 7 additions & 0 deletions app/src/main/java/com/mashup/constant/ExtraConstant.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.mashup.constant

const val EXTRA_MAIN_TAB = "EXTRA_MAIN_TAB"
const val EXTRA_LOGIN_TYPE = "EXTRA_MAIN_TYPE"

const val EXTRA_TITLE_KEY = "EXTRA_TITLE_KEY"
Expand All @@ -10,3 +11,9 @@ const val EXTRA_LOGOUT = "EXTRA_LOGOUT"
const val EXTRA_WITH_DRAWL = "EXTRA_WITH_DRAWL"

const val EXTRA_ANIMATION = "EXTRA_ANIMATION"

const val EXTRA_LINK = "link"

const val EXTRA_POPUP_KEY = "EXTRA_POPUP_KEY"

const val EXTRA_ACTIVITY_ENTER_TYPE = "EXTRA_ACTIVITY_ENTER_TYPE"
6 changes: 6 additions & 0 deletions app/src/main/java/com/mashup/constant/log/UserActionLogs.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,9 @@ const val LOG_QR_TIME_FAIL = "qr_time_fail"
const val LOG_QR_WRONG = "qr_wrong"

const val LOG_DELETE_SUCCESS_USER = "delete_user_success"

const val LOG_COMMON_POPUP_CONFIRM = "popup_new_confirm"
const val LOG_COMMON_POPUP_CANCEL = "popup_new_cancel"

const val LOG_DANGGN = "danggn"
const val LOG_DANGGN_HELP = "danggn_help"
6 changes: 4 additions & 2 deletions app/src/main/java/com/mashup/data/dto/AccessResponse.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ class AccessResponse(
val platform: String,
@field:Json(name = "token")
val token: String,
@field:Json(name = "pushNotificationAgreed")
val pushNotificationAgreed: Boolean
@field:Json(name = "newsPushNotificationAgreed")
val pushNotificationAgreed: Boolean,
@field:Json(name = "danggnPushNotificationAgreed")
val danggnPushNotificationAgreed: Boolean
)
6 changes: 4 additions & 2 deletions app/src/main/java/com/mashup/data/dto/MemberInfoResponse.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ data class MemberInfoResponse(
val name: String,
@field:Json(name = "platform")
val platform: String,
@field:Json(name = "pushNotificationAgreed")
val pushNotificationAgreed: Boolean
@field:Json(name = "newsPushNotificationAgreed")
val pushNotificationAgreed: Boolean,
@field:Json(name = "danggnPushNotificationAgreed")
val danggnPushNotificationAgreed: Boolean
)
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import com.squareup.moshi.JsonClass

@JsonClass(generateAdapter = true)
class PushNotificationRequest(
@field:Json(name = "pushNotificationAgreed")
val pushNotificationAgreed: Boolean
@field:Json(name = "newsPushNotificationAgreed")
val pushNotificationAgreed: Boolean,
@field:Json(name = "danggnPushNotificationAgreed")
val danggnPushNotificationAgreed: Boolean
)
Loading

0 comments on commit 6ae63e5

Please sign in to comment.