Fix wear build

This commit is contained in:
Lucas Lima 2020-04-09 08:43:52 -03:00
parent b802ad84d4
commit 808662d7d6
No known key found for this signature in database
GPG key ID: C828A958035D9C34
4 changed files with 6 additions and 3 deletions

1
.gitignore vendored
View file

@ -11,3 +11,4 @@ app/local.properties
*.apk
app/release/
app/standalone/
app/google/

View file

@ -1,10 +1,10 @@
ext.buildVersion = [
versionCode : 62,
versionCode : 603001, // MMmmPPv
versionName : '6.3.0',
targetSdk : 29,
minAppSdk : 16,
wearMinAppSdk: 23,
applicationId: 'dev.lucasnlm.antimine'
applicationId: 'com.logical.minato'
]
ext.versions = [

View file

@ -8,7 +8,7 @@ android {
compileSdkVersion buildVersion.targetSdk
defaultConfig {
applicationId 'dev.lucasnlm.antimine.wear'
applicationId buildVersion.applicationId
minSdkVersion buildVersion.wearMinAppSdk
targetSdkVersion buildVersion.targetSdk
versionCode buildVersion.versionCode

View file

@ -13,6 +13,7 @@ import dagger.android.support.DaggerFragment
import dev.lucasnlm.antimine.common.level.models.AmbientSettings
import dev.lucasnlm.antimine.common.level.models.Event
import dev.lucasnlm.antimine.common.level.view.AreaAdapter
import dev.lucasnlm.antimine.common.level.view.SpaceItemDecoration
import dev.lucasnlm.antimine.common.level.view.UnlockedHorizontalScrollView
import dev.lucasnlm.antimine.common.level.viewmodel.GameViewModel
import dev.lucasnlm.antimine.common.level.viewmodel.GameViewModelFactory
@ -56,6 +57,7 @@ class WatchLevelFragment : DaggerFragment() {
recyclerGrid = view.findViewById(R.id.recyclerGrid)
recyclerGrid.apply {
setHasFixedSize(true)
addItemDecoration(SpaceItemDecoration(R.dimen.field_padding))
isNestedScrollingEnabled = false
adapter = areaAdapter
alpha = 0.0f