File tree Expand file tree Collapse file tree
java/es/hegocre/scorecounter/data
java/es/hegocre/scorecounter/data Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33buildscript {
44 ext. kotlin_version = ' 1.6.10'
5+ ext. lifecycle_version = ' 2.5.1'
56 repositories {
67 google()
78 mavenCentral()
89 }
910 dependencies {
10- classpath ' com.android.tools.build:gradle:7.0.4 '
11+ classpath ' com.android.tools.build:gradle:7.3.0 '
1112 classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
1213
1314 // NOTE: Do not place your application dependencies here; they belong
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33distributionPath =wrapper/dists
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =wrapper/dists
6- distributionUrl =https\://services.gradle.org/distributions/gradle-7.0.2 -all.zip
6+ distributionUrl =https\://services.gradle.org/distributions/gradle-7.4 -all.zip
Original file line number Diff line number Diff line change @@ -3,15 +3,15 @@ apply plugin: 'kotlin-android'
33apply plugin : ' kotlin-kapt'
44
55android {
6- compileSdkVersion 31
6+ compileSdkVersion 33
77 buildToolsVersion ' 30.0.3'
88
99 defaultConfig {
1010 applicationId " es.hegocre.scorecounter"
1111 minSdkVersion 24
12- targetSdkVersion 31
13- versionCode 311040000
14- versionName " 1.0.4 "
12+ targetSdkVersion 33
13+ versionCode 311050000
14+ versionName " 1.0.5 "
1515 }
1616
1717 buildTypes {
@@ -36,12 +36,16 @@ android {
3636 kotlinOptions {
3737 jvmTarget = ' 1.8'
3838 }
39+ namespace ' es.hegocre.scorecounter'
3940}
4041
4142dependencies {
4243 implementation fileTree(include : [' *.jar' ], dir : ' libs' )
43- implementation ' androidx.preference:preference-ktx:1.1.1 '
44+ implementation ' androidx.preference:preference-ktx:1.2.0 '
4445 testImplementation ' junit:junit:4.13.2'
45- implementation ' androidx.appcompat:appcompat:1.4.0'
46- implementation ' androidx.core:core-ktx:1.7.0'
46+ implementation ' androidx.appcompat:appcompat:1.5.1'
47+ implementation ' androidx.core:core-ktx:1.9.0'
48+ // noinspection KtxExtensionAvailable
49+ implementation " androidx.lifecycle:lifecycle-viewmodel:$lifecycle_version "
50+ implementation " androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version "
4751}
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
2- <manifest xmlns : android =" http://schemas.android.com/apk/res/android"
3- package =" es.hegocre.scorecounter" >
2+ <manifest xmlns : android =" http://schemas.android.com/apk/res/android" >
43
54 <application
65 android : allowBackup =" true"
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ data class Score(
1313 }
1414
1515 fun dec () {
16- if (score.get() > 0 ) score.set(score.get().dec())
16+ score.set(score.get().dec())
1717 save()
1818 }
1919
Original file line number Diff line number Diff line change @@ -3,14 +3,14 @@ apply plugin: 'kotlin-android'
33apply plugin : ' kotlin-kapt'
44
55android {
6- compileSdkVersion 31
6+ compileSdkVersion 33
77
88 defaultConfig {
99 applicationId " es.hegocre.scorecounter"
1010 minSdkVersion 25
11- targetSdkVersion 31
12- versionCode 311040100
13- versionName " 1.0.4 "
11+ targetSdkVersion 33
12+ versionCode 311050100
13+ versionName " 1.0.5 "
1414 }
1515
1616 buildTypes {
@@ -35,15 +35,20 @@ android {
3535 kotlinOptions {
3636 jvmTarget = ' 1.8'
3737 }
38+ namespace ' es.hegocre.scorecounter'
3839}
3940
4041dependencies {
4142 implementation fileTree(dir : ' libs' , include : [' *.jar' ])
4243
43- implementation ' com.google.android.support:wearable:2.8.1 '
44+ implementation ' com.google.android.support:wearable:2.9.0 '
4445 implementation ' androidx.legacy:legacy-support-v4:1.0.0'
4546 implementation ' androidx.wear:wear:1.2.0'
46- compileOnly ' com.google.android.wearable:wearable:2.8.1 '
47- implementation ' androidx.core:core-ktx:1.7 .0'
47+ compileOnly ' com.google.android.wearable:wearable:2.9.0 '
48+ implementation ' androidx.core:core-ktx:1.9 .0'
4849 implementation ' androidx.wear:wear-input:1.1.0'
50+ // noinspection KtxExtensionAvailable
51+ implementation " androidx.lifecycle:lifecycle-viewmodel:$lifecycle_version "
52+ implementation " androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version "
53+
4954}
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
2- <manifest xmlns : android =" http://schemas.android.com/apk/res/android"
3- package =" es.hegocre.scorecounter" >
2+ <manifest xmlns : android =" http://schemas.android.com/apk/res/android" >
43
54 <uses-feature android : name =" android.hardware.type.watch" />
65
2726
2827 <activity
2928 android : name =" es.hegocre.scorecounter.MainActivity"
30- android : label =" @string/app_name"
3129 android : exported =" true" >
3230 <intent-filter >
3331 <action android : name =" android.intent.action.MAIN" />
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ data class Score(
1313 }
1414
1515 fun dec () {
16- if (score.get() > 0 ) score.set(score.get().dec())
16+ score.set(score.get().dec())
1717 save()
1818 }
1919
You can’t perform that action at this time.
0 commit comments