Support Android variants in IDE

This commit is contained in:
Yan Zhulanow
2015-10-23 15:19:15 +03:00
parent 161d8b105f
commit 9112dd632a
40 changed files with 93 additions and 65 deletions
@@ -1,7 +1,7 @@
package com.myapp
import android.app.Activity
import kotlinx.android.synthetic.layout.*
import kotlinx.android.synthetic.main.layout.*
class MyActivity: Activity() {
val button = this.MyBu<caret>
@@ -1,7 +1,7 @@
package com.myapp
import android.app.Fragment
import kotlinx.android.synthetic.layout.*
import kotlinx.android.synthetic.main.layout.*
class MyFragment: Fragment() {
val button = this.MyBu<caret>
@@ -1,7 +1,7 @@
package com.myapp
import android.app.Activity
import kotlinx.android.synthetic.layout.*
import kotlinx.android.synthetic.main.layout.*
class MyActivity: Activity() {
val button = this.MyBu<caret>
@@ -1,7 +1,7 @@
package com.myapp
import android.app.Fragment
import kotlinx.android.synthetic.layout.*
import kotlinx.android.synthetic.main.layout.*
class MyFragment: Fragment() {
val button = this.MyBu<caret>
@@ -1,8 +1,8 @@
package com.myapp
import android.app.Activity
import kotlinx.android.synthetic.layout.*
import kotlinx.android.synthetic.layout1.*
import kotlinx.android.synthetic.main.layout.*
import kotlinx.android.synthetic.main.layout1.*
class MyActivity: Activity() {
val button = log<caret>
@@ -1,8 +1,8 @@
package com.myapp
import android.app.Fragment
import kotlinx.android.synthetic.layout.*
import kotlinx.android.synthetic.layout1.*
import kotlinx.android.synthetic.main.layout.*
import kotlinx.android.synthetic.main.layout1.*
class MyFragment: Fragment() {
val button = log<caret>
@@ -1,7 +1,7 @@
package com.myapp
import android.app.Activity
import kotlinx.android.synthetic.layout.*
import kotlinx.android.synthetic.main.layout.*
class MyActivity: Activity() {
val button = this.login<caret>
@@ -1,7 +1,7 @@
package com.myapp
import android.app.Fragment
import kotlinx.android.synthetic.layout.*
import kotlinx.android.synthetic.main.layout.*
class MyFragment: Fragment() {
val button = this.login<caret>
@@ -1,7 +1,7 @@
package com.myapp
import android.view.View
import kotlinx.android.synthetic.layout.view.*
import kotlinx.android.synthetic.main.layout.view.*
fun View.a() {
val button = this.login<caret>
@@ -1,7 +1,7 @@
package com.myapp
import android.app.Activity
import kotlinx.android.synthetic.layout.*
import kotlinx.android.synthetic.main.layout.*
class MyActivity: Activity() {
val button = this.MyButton<caret>
@@ -1,7 +1,7 @@
package com.myapp
import android.app.Fragment
import kotlinx.android.synthetic.layout.*
import kotlinx.android.synthetic.main.layout.*
class MyFragment: Fragment() {
val button = this.MyButton<caret>
@@ -1,7 +1,7 @@
package com.myapp
import android.app.Activity
import kotlinx.android.synthetic.layout.*
import kotlinx.android.synthetic.main.layout.*
class MyActivity: Activity() {
val button = this.MyButton<caret>
@@ -1,7 +1,7 @@
package com.myapp
import android.app.Fragment
import kotlinx.android.synthetic.layout.*
import kotlinx.android.synthetic.main.layout.*
class MyFragment: Fragment() {
val button = this.MyButton<caret>
@@ -1,7 +1,7 @@
package com.myapp
import android.app.Activity
import kotlinx.android.synthetic.layout.*
import kotlinx.android.synthetic.main.layout.*
class MyActivity: Activity() {
val button = this.login<caret>
@@ -1,7 +1,7 @@
package com.myapp
import android.app.Fragment
import kotlinx.android.synthetic.layout.*
import kotlinx.android.synthetic.main.layout.*
class MyFragment: Fragment() {
val button = this.login<caret>
@@ -3,7 +3,7 @@ package com.myapp
import android.app.Activity
import android.os.Bundle
import java.io.File
import kotlinx.android.synthetic.layout.*
import kotlinx.android.synthetic.main.layout.*
public class MyActivity : Activity() {
override fun onCreate(savedInstanceState: Bundle?) {}
@@ -2,7 +2,7 @@ package com.myapp
import android.app.Fragment
import java.io.File
import kotlinx.android.synthetic.layout.*
import kotlinx.android.synthetic.main.layout.*
public class MyFragemnt : Fragment() {
override fun onResume() {}
@@ -1,7 +1,7 @@
package com.myapp
import android.view.View
import kotlinx.android.synthetic.layout.view.*
import kotlinx.android.synthetic.main.layout.view.*
fun View.a() {
val button = login<caret>
@@ -3,7 +3,7 @@ package com.myapp
import android.app.Activity
import android.os.Bundle
import java.io.File
import kotlinx.android.synthetic.layout.*
import kotlinx.android.synthetic.main.layout.*
public class MyActivity : Activity() {
override fun onCreate(savedInstanceState: Bundle?) {}
@@ -1,7 +1,7 @@
package com.myapp
import android.app.Activity
import kotlinx.android.synthetic.layout.*
import kotlinx.android.synthetic.main.layout.*
class MyActivity: Activity() {
val button = this.MyButton<caret>
@@ -1,7 +1,7 @@
package com.myapp
import android.app.Fragment
import kotlinx.android.synthetic.layout.*
import kotlinx.android.synthetic.main.layout.*
class MyFragment: Fragment() {
val button = this.MyButton<caret>
@@ -1,7 +1,7 @@
package com.myapp
import android.app.Activity
import kotlinx.android.synthetic.layout.*
import kotlinx.android.synthetic.main.layout.*
class MyActivity: Activity() {
val button = this.MyButton<caret>
@@ -1,7 +1,7 @@
package com.myapp
import android.app.Fragment
import kotlinx.android.synthetic.layout.*
import kotlinx.android.synthetic.main.layout.*
class MyFragment: Fragment() {
val button = this.MyButton<caret>
@@ -1,7 +1,7 @@
package com.myapp
import android.app.Activity
import kotlinx.android.synthetic.layout.*
import kotlinx.android.synthetic.main.layout.*
class MyActivity: Activity() {
val button = this.login<caret>
@@ -1,7 +1,7 @@
package com.myapp
import android.app.Fragment
import kotlinx.android.synthetic.layout.*
import kotlinx.android.synthetic.main.layout.*
class MyFragment: Fragment() {
val button = this.login<caret>
@@ -3,7 +3,7 @@ package com.myapp
import android.app.Activity
import android.os.Bundle
import java.io.File
import kotlinx.android.synthetic.layout.*
import kotlinx.android.synthetic.main.layout.*
public class MyActivity : Activity() {
override fun onCreate(savedInstanceState: Bundle?) {}
@@ -2,7 +2,7 @@ package com.myapp
import android.app.Fragment
import java.io.File
import kotlinx.android.synthetic.layout.*
import kotlinx.android.synthetic.main.layout.*
public class MyFragment : Fragment() {
override fun onResume() {}
@@ -1,7 +1,7 @@
package com.myapp
import android.view.View
import kotlinx.android.synthetic.layout.view.*
import kotlinx.android.synthetic.main.layout.view.*
fun View.a() {
val button = login<caret>
@@ -1,7 +1,7 @@
package com.myapp
import android.app.Activity
import kotlinx.android.synthetic.layout.*
import kotlinx.android.synthetic.main.layout.*
class MyActivity: Activity() {
val button = this.MyButton<caret>
@@ -1,7 +1,7 @@
package com.myapp
import android.app.Fragment
import kotlinx.android.synthetic.layout.*
import kotlinx.android.synthetic.main.layout.*
class MyFragment: Fragment() {
val button = this.MyButton<caret>
@@ -1,7 +1,7 @@
package com.myapp
import android.app.Activity
import kotlinx.android.synthetic.layout.*
import kotlinx.android.synthetic.main.layout.*
class MyActivity: Activity() {
val button = this.MyButton<caret>
@@ -1,7 +1,7 @@
package com.myapp
import android.app.Fragment
import kotlinx.android.synthetic.layout.*
import kotlinx.android.synthetic.main.layout.*
class MyFragment: Fragment() {
val button = this.MyButton<caret>
@@ -1,7 +1,7 @@
package com.myapp
import android.app.Activity
import kotlinx.android.synthetic.layout.*
import kotlinx.android.synthetic.main.layout.*
class MyActivity: Activity() {
val button = this.login<caret>
@@ -1,7 +1,7 @@
package com.myapp
import android.app.Fragment
import kotlinx.android.synthetic.layout.*
import kotlinx.android.synthetic.main.layout.*
class MyFragment: Fragment() {
val button = this.login<caret>
@@ -3,7 +3,7 @@ package com.myapp
import android.app.Activity
import android.os.Bundle
import java.io.File
import kotlinx.android.synthetic.layout.*
import kotlinx.android.synthetic.main.layout.*
public class MyActivity : Activity() {
override fun onCreate(savedInstanceState: Bundle?) {}
@@ -2,7 +2,7 @@ package com.myapp
import android.app.Fragment
import java.io.File
import kotlinx.android.synthetic.layout.*
import kotlinx.android.synthetic.main.layout.*
public class MyFragment : Fragment() {
override fun onResume() {}
@@ -1,7 +1,7 @@
package com.myapp
import android.view.View
import kotlinx.android.synthetic.layout.view.*
import kotlinx.android.synthetic.main.layout.view.*
fun View.a() {
val button = login<caret>