File tree 6 files changed +17
-11
lines changed
java/com/example/bluetoothlechat/bluetooth
6 files changed +17
-11
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ dependencies {
55
55
implementation fileTree(dir : " libs" , include : [" *.jar" ])
56
56
implementation " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
57
57
implementation ' androidx.core:core-ktx:1.3.2'
58
- implementation ' androidx.fragment:fragment-ktx:1.3.3 '
59
- implementation ' androidx.activity:activity-ktx:1.3.0-alpha07 '
58
+ implementation ' androidx.fragment:fragment-ktx:1.3.4 '
59
+ implementation ' androidx.activity:activity-ktx:1.3.0-alpha08 '
60
60
implementation ' androidx.appcompat:appcompat:1.2.0'
61
61
implementation ' androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1'
62
62
implementation ' androidx.constraintlayout:constraintlayout:2.0.4'
Original file line number Diff line number Diff line change 13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
+ @file:Suppress(" ObjectPropertyName" )
17
+
16
18
package com.example.bluetoothlechat.bluetooth
17
19
18
20
import android.app.Application
@@ -305,7 +307,7 @@ object ChatServer {
305
307
super .onStartFailure(errorCode)
306
308
// Send error state to display
307
309
val errorMessage = " Advertise failed with error: $errorCode "
308
- Log .d(TAG , " Advertising failed " )
310
+ Log .d(TAG , errorMessage )
309
311
// _viewState.value = DeviceScanViewState.Error(errorMessage)
310
312
}
311
313
Original file line number Diff line number Diff line change 61
61
62
62
<EditText
63
63
android : id =" @+id/message_text"
64
+ android : inputType =" text"
65
+ android : hint =" @string/enter_message"
64
66
android : layout_width =" match_parent"
65
- android : layout_height =" wrap_content" />
67
+ android : layout_height =" wrap_content"
68
+ android : importantForAutofill =" no" />
66
69
67
70
<Button
68
71
android : id =" @+id/send_message"
Original file line number Diff line number Diff line change 29
29
<string name =" connect_device_prompt" >Connect with nearby devices</string >
30
30
<string name =" send_message_button" >Send Message</string >
31
31
<string name =" chatting_with_device" >Chatting with %1$s</string >
32
+ <string name =" enter_message" >enter message</string >
32
33
</resources >
Original file line number Diff line number Diff line change 15
15
*/
16
16
// Top-level build file where you can add configuration options common to all sub-projects/modules.
17
17
buildscript {
18
- ext. kotlin_version = " 1.4.32 "
18
+ ext. kotlin_version = " 1.5.0 "
19
19
repositories {
20
20
google()
21
- jcenter ()
21
+ mavenCentral ()
22
22
}
23
23
dependencies {
24
- classpath ' com.android.tools.build:gradle:4.1.3 '
24
+ classpath ' com.android.tools.build:gradle:4.2.0 '
25
25
classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
26
26
// NOTE: Do not place your application dependencies here; they belong
27
27
// in the individual module build.gradle files
@@ -31,7 +31,7 @@ buildscript {
31
31
allprojects {
32
32
repositories {
33
33
google()
34
- jcenter ()
34
+ mavenCentral ()
35
35
}
36
36
}
37
37
Original file line number Diff line number Diff line change 1
- # Thu Sep 03 12:48:38 EDT 2020
1
+ # Wed May 19 13:24:30 EDT 2021
2
2
distributionBase =GRADLE_USER_HOME
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
3
4
distributionPath =wrapper/dists
4
- zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
6
- distributionUrl = https\://services.gradle.org/distributions/gradle-6.5-bin.zip
6
+ zipStoreBase = GRADLE_USER_HOME
You can’t perform that action at this time.
0 commit comments