diff --git a/cyberwow/android/.gitignore b/cyberwow/android/.gitignore new file mode 100644 index 0000000..bc2100d --- /dev/null +++ b/cyberwow/android/.gitignore @@ -0,0 +1,7 @@ +gradle-wrapper.jar +/.gradle +/captures/ +/gradlew +/gradlew.bat +/local.properties +GeneratedPluginRegistrant.java diff --git a/cyberwow/android/app/build.gradle b/cyberwow/android/app/build.gradle index 28ae677..78df0fd 100644 --- a/cyberwow/android/app/build.gradle +++ b/cyberwow/android/app/build.gradle @@ -22,11 +22,16 @@ if (flutterVersionName == null) { } apply plugin: 'com.android.application' +apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { compileSdkVersion 28 + sourceSets { + main.java.srcDirs += 'src/main/kotlin' + } + lintOptions { disable 'InvalidPackage' } @@ -38,7 +43,6 @@ android { targetSdkVersion 28 versionCode 22 versionName "0.7.0.0-i" - testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } if(project.hasProperty("RELEASE_STORE_FILE")) { @@ -77,7 +81,5 @@ flutter { } dependencies { - testImplementation 'junit:junit:4.12' - androidTestImplementation 'androidx.test:runner:1.1.0' - androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0' + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" } diff --git a/cyberwow/android/app/src/main/AndroidManifest.xml b/cyberwow/android/app/src/main/AndroidManifest.xml index 583965b..42eed26 100644 --- a/cyberwow/android/app/src/main/AndroidManifest.xml +++ b/cyberwow/android/app/src/main/AndroidManifest.xml @@ -14,7 +14,7 @@ android:name=".MainActivity" android:launchMode="singleTop" android:theme="@style/LaunchTheme" - android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" + android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize">