diff --git a/.idea/misc.xml b/.idea/misc.xml index 75ced089ede07afcea1139e518741714ef0bf4aa..f9bd7ec84cacbcdf6958f210d1d8e751afeb4028 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -47,7 +47,7 @@ - + diff --git a/app/build.gradle b/app/build.gradle index 85657228863064bd8cc5ea3fa4ddc174efc91292..51dd3c295d8f677781cf066465b568c11e449030 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,17 +1,16 @@ apply plugin: 'com.android.application' apply plugin: 'kotlin-android' -apply plugin: 'kotlin-android-extensions' apply plugin: 'androidx.navigation.safeargs' apply plugin: 'kotlin-kapt' apply plugin: 'com.google.gms.google-services' apply plugin: 'com.google.android.gms.oss-licenses-plugin' android { - compileSdk 33 + compileSdk 34 defaultConfig { applicationId "jp.atled.agileworks" minSdkVersion 24 - targetSdk 33 + targetSdk 34 versionCode 3 versionName "1.1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" @@ -25,19 +24,22 @@ android { } buildFeatures { dataBinding = true + viewBinding = true } compileOptions { - sourceCompatibility = 1.8 - targetCompatibility = 1.8 + sourceCompatibility = 17 + targetCompatibility = 17 } kotlinOptions { - jvmTarget = JavaVersion.VERSION_1_8.toString() + jvmTarget = JavaVersion.VERSION_17.toString() } - buildToolsVersion = '29.0.2' + buildToolsVersion = '34.0.0' dataBinding { enabled = true } + + namespace "jp.atled.agileworks" } dependencies { @@ -47,6 +49,10 @@ dependencies { implementation "androidx.appcompat:appcompat:$appcompat_version" implementation "androidx.constraintlayout:constraintlayout:$constraint_layout_version" + def lifecycle_version = "2.4.0" + implementation "androidx.lifecycle:lifecycle-viewmodel:$lifecycle_version" + implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version" + implementation "androidx.navigation:navigation-fragment-ktx:$nav_version" implementation "androidx.navigation:navigation-ui-ktx:$nav_version" implementation "androidx.navigation:navigation-runtime-ktx:$nav_version" @@ -81,7 +87,7 @@ dependencies { implementation "com.squareup.moshi:moshi:$moshi_version" implementation "com.squareup.moshi:moshi-kotlin:$moshi_version" - kapt "com.squareup.moshi:moshi-kotlin-codegen:$moshi_version" + annotationProcessor "com.squareup.moshi:moshi-kotlin-codegen:$moshi_version" implementation "net.openid:appauth:0.7.1" diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index ee3cb7c7d2a65c4eb38a486f1b5a6f6ac5af4063..1f6cbec0fd5d735842a5ad99ed3427a7254a30ec 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,7 +1,6 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/app/src/main/java/jp/atled/agileworks/view/ui/DirectOpenDocumentActivity.kt b/app/src/main/java/jp/atled/agileworks/view/ui/DirectOpenDocumentActivity.kt index 837822514964fe6c28144df6c6e8952f08de6d0b..d4326e25db18cb0ae7d277354818f22201e508bb 100644 --- a/app/src/main/java/jp/atled/agileworks/view/ui/DirectOpenDocumentActivity.kt +++ b/app/src/main/java/jp/atled/agileworks/view/ui/DirectOpenDocumentActivity.kt @@ -14,21 +14,20 @@ import jp.atled.agileworks.view.base.BaseActivity import jp.atled.agileworks.view.ui.documentweb.DocumentWebFragment import jp.atled.agileworks.view.utils.putExtraNonNullString import jp.atled.agileworks.view.utils.putNonNullStingFromExtra -import kotlinx.android.synthetic.main.activity_main.* import android.view.KeyEvent import android.view.View import android.widget.Button import jp.atled.agileworks.model.LoginRepository import jp.atled.agileworks.model.ServerRepository -import kotlinx.android.synthetic.main.activity_main.app_ver_label -import kotlinx.android.synthetic.main.activity_main.toolbar -import kotlinx.android.synthetic.main.fragment_login.* +import jp.atled.agileworks.databinding.ActivityDirectOpenDocumentBinding class DirectOpenDocumentActivity : BaseActivity(), View.OnClickListener { private val TAG = "DirectOpenDocumentActivity" private lateinit var directOpenControl: DirectOpenControl + private lateinit var binding: ActivityDirectOpenDocumentBinding + var tapServer = 0 var firstServer= 0 @@ -47,9 +46,10 @@ class DirectOpenDocumentActivity : BaseActivity(), View.OnClickListener { directOpenControl = DirectOpenControl(this) - setContentView(R.layout.activity_direct_open_document) - toolbar.title = title() - setSupportActionBar(toolbar) + binding = ActivityDirectOpenDocumentBinding.inflate(layoutInflater) + setContentView(binding.root) + binding.toolbar.title = title() + setSupportActionBar(binding.toolbar) setupDrawerMenu() findViewById