From d5ec9f8e7bc5a3268242dc0a35c726ed6e28ff0e Mon Sep 17 00:00:00 2001 From: X1nto Date: Wed, 29 Jul 2020 09:33:53 +0400 Subject: [PATCH] fixed kotlin file detection --- play-services-core/build.gradle | 5 +- ...hBar.kt => PreferenceSwitchBarCallback.kt} | 0 .../layout/device_registration_fragment.xml | 41 ++++++++++ .../main/res/layout/preference_switch_bar.xml | 73 +++++++++++++++++ .../layout/push_notification_app_fragment.xml | 82 +++++++++++++++++++ .../res/layout/push_notification_fragment.xml | 45 ++++++++++ 6 files changed, 244 insertions(+), 2 deletions(-) rename play-services-core/src/main/kotlin/org/microg/gms/ui/{PreferenceSwitchBar.kt => PreferenceSwitchBarCallback.kt} (100%) create mode 100755 play-services-core/src/main/res/layout/device_registration_fragment.xml create mode 100755 play-services-core/src/main/res/layout/preference_switch_bar.xml create mode 100755 play-services-core/src/main/res/layout/push_notification_app_fragment.xml create mode 100755 play-services-core/src/main/res/layout/push_notification_fragment.xml diff --git a/play-services-core/build.gradle b/play-services-core/build.gradle index 4b1bfdc4..d647d6f7 100644 --- a/play-services-core/build.gradle +++ b/play-services-core/build.gradle @@ -15,6 +15,8 @@ */ apply plugin: 'com.android.application' +apply plugin: 'kotlin-android' +apply plugin: 'kotlin-android-extensions' dependencies { implementation "com.squareup.wire:wire-runtime:1.6.1" @@ -55,8 +57,6 @@ android { minSdkVersion androidMinSdk targetSdkVersion androidTargetSdk - multiDexEnabled true - ndk { abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64" } @@ -70,6 +70,7 @@ android { sourceSets { main { java.srcDirs += 'src/main/protos-java' + java.srcDirs += 'src/main/kotlin' } } diff --git a/play-services-core/src/main/kotlin/org/microg/gms/ui/PreferenceSwitchBar.kt b/play-services-core/src/main/kotlin/org/microg/gms/ui/PreferenceSwitchBarCallback.kt similarity index 100% rename from play-services-core/src/main/kotlin/org/microg/gms/ui/PreferenceSwitchBar.kt rename to play-services-core/src/main/kotlin/org/microg/gms/ui/PreferenceSwitchBarCallback.kt diff --git a/play-services-core/src/main/res/layout/device_registration_fragment.xml b/play-services-core/src/main/res/layout/device_registration_fragment.xml new file mode 100755 index 00000000..0f0648dc --- /dev/null +++ b/play-services-core/src/main/res/layout/device_registration_fragment.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + diff --git a/play-services-core/src/main/res/layout/preference_switch_bar.xml b/play-services-core/src/main/res/layout/preference_switch_bar.xml new file mode 100755 index 00000000..08ad6530 --- /dev/null +++ b/play-services-core/src/main/res/layout/preference_switch_bar.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/play-services-core/src/main/res/layout/push_notification_app_fragment.xml b/play-services-core/src/main/res/layout/push_notification_app_fragment.xml new file mode 100755 index 00000000..4f63f961 --- /dev/null +++ b/play-services-core/src/main/res/layout/push_notification_app_fragment.xml @@ -0,0 +1,82 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/play-services-core/src/main/res/layout/push_notification_fragment.xml b/play-services-core/src/main/res/layout/push_notification_fragment.xml new file mode 100755 index 00000000..e9611b83 --- /dev/null +++ b/play-services-core/src/main/res/layout/push_notification_fragment.xml @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + +