Fix android synthetic properties compiler plugin tests
This commit is contained in:
plugins/android-compiler-plugin/testData/android/converter/simple/severalResDirs/AndroidManifest.xml
Vendored
-33
@@ -1,33 +0,0 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.myapp"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0" >
|
||||
|
||||
<uses-permission android:name="android.permission.READ_CONTACTS"/>
|
||||
<uses-sdk
|
||||
android:minSdkVersion="18"
|
||||
android:targetSdkVersion="18" />
|
||||
<permission android:name="android"></permission>
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
android:icon="@drawable/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:theme="@style/Theme.Sample" >
|
||||
<activity
|
||||
android:name="com.example.android.basiccontactables.MainActivity"
|
||||
android:label="@string/app_name"
|
||||
android:launchMode="singleTop">
|
||||
<meta-data
|
||||
android:name="android.app.searchable"
|
||||
android:resource="@xml/searchable" />
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.SEARCH" />
|
||||
</intent-filter>
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
</application>
|
||||
</manifest>
|
||||
Vendored
+12
-22
@@ -1,32 +1,22 @@
|
||||
package kotlinx.android.synthetic.test
|
||||
|
||||
import android.app.*
|
||||
import android.view.*
|
||||
import android.widget.*
|
||||
import android.webkit.*
|
||||
import android.inputmethodservice.*
|
||||
import android.opengl.*
|
||||
import android.appwidget.*
|
||||
import android.support.v4.app.*
|
||||
import android.support.v4.view.*
|
||||
import android.support.v4.widget.*
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
val android.app.Activity.button: ft<View, View?>
|
||||
get() = findViewById(0)
|
||||
val android.app.Activity.button: ft<android.view.View, android.view.View?>
|
||||
get() = findViewById(0) as? android.view.View
|
||||
|
||||
val android.app.Fragment.button: ft<View, View?>
|
||||
get() = getView().findViewById(0)
|
||||
val android.app.Fragment.button: ft<android.view.View, android.view.View?>
|
||||
get() = getView().findViewById(0) as? android.view.View
|
||||
|
||||
val android.app.Activity.button2: ft<Button, Button?>
|
||||
get() = findViewById(0) as? Button
|
||||
val android.app.Activity.button2: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
val android.app.Fragment.button2: ft<Button, Button?>
|
||||
get() = getView().findViewById(0) as? Button
|
||||
val android.app.Fragment.button2: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = getView().findViewById(0) as? android.widget.Button
|
||||
|
||||
val android.app.Activity.button3: ft<Button, Button?>
|
||||
get() = findViewById(0) as? Button
|
||||
val android.app.Activity.button3: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
val android.app.Fragment.button3: ft<Button, Button?>
|
||||
get() = getView().findViewById(0) as? Button
|
||||
val android.app.Fragment.button3: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = getView().findViewById(0) as? android.widget.Button
|
||||
|
||||
|
||||
Vendored
+6
-16
@@ -1,23 +1,13 @@
|
||||
package kotlinx.android.synthetic.test.view
|
||||
|
||||
import android.app.*
|
||||
import android.view.*
|
||||
import android.widget.*
|
||||
import android.webkit.*
|
||||
import android.inputmethodservice.*
|
||||
import android.opengl.*
|
||||
import android.appwidget.*
|
||||
import android.support.v4.app.*
|
||||
import android.support.v4.view.*
|
||||
import android.support.v4.widget.*
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
val android.view.View.button: ft<View, View?>
|
||||
get() = findViewById(0)
|
||||
val android.view.View.button: ft<android.view.View, android.view.View?>
|
||||
get() = findViewById(0) as? android.view.View
|
||||
|
||||
val android.view.View.button2: ft<Button, Button?>
|
||||
get() = findViewById(0) as? Button
|
||||
val android.view.View.button2: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
val android.view.View.button3: ft<Button, Button?>
|
||||
get() = findViewById(0) as? Button
|
||||
val android.view.View.button3: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
|
||||
Reference in New Issue
Block a user