fix android jps build test case
- add proper way of setting up android sdk for jps - add missing android plugin runtime library
This commit is contained in:
committed by
Yan Zhulanow
parent
bf25dffb85
commit
95fd4006d9
@@ -4,9 +4,9 @@
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0">
|
||||
<uses-sdk android:minSdkVersion="17"/>
|
||||
<application android:label="@string/app_name" android:icon="@drawable/ic_launcher">
|
||||
<application android:label="app_name" >
|
||||
<activity android:name=".MyActivity"
|
||||
android:label="@string/app_name">
|
||||
android:label="app_name">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
|
||||
@@ -8,6 +8,6 @@
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Hello World, MyActivity"
|
||||
android:id="@+id/LOL"/>
|
||||
android:id="@+id/textField"/>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/gen" isTestSource="false" />
|
||||
</content>
|
||||
<orderEntry type="jdk" jdkName="Androids_SDK" jdkType="Android SDK" />
|
||||
<orderEntry type="jdk" jdkName="Android API 17 Platform" jdkType="Android SDK" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" name="KotlinJavaRuntime" level="project" />
|
||||
</component>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<module fileurl="file://$PROJECT_DIR$/simple.iml" filepath="$PROJECT_DIR$/simple.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_6" assert-keyword="true" jdk-15="true" project-jdk-name="Android_SDK" project-jdk-type="Android SDK">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_6" assert-keyword="true" jdk-15="true" project-jdk-name="Android API 17 Platform" project-jdk-type="Android SDK">
|
||||
<output url="file://$PROJECT_DIR$/out" />
|
||||
</component>
|
||||
</project>
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
package com.example.myapp;
|
||||
|
||||
/**
|
||||
* Created by miha on 8/6/14.
|
||||
*/
|
||||
public class Foo {
|
||||
public static void main(String[] args) {
|
||||
System.out.println(R.id.LOL);
|
||||
}
|
||||
}
|
||||
@@ -4,16 +4,9 @@ import android.app.Activity
|
||||
import android.os.Bundle
|
||||
|
||||
public class MyActivity : Activity() {
|
||||
/**
|
||||
* Called when the activity is first created.
|
||||
*/
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
setContentView(R.layout.main)
|
||||
println(R.id.LOL)
|
||||
fuck
|
||||
this.LOL
|
||||
LOL.setText("UIGFVIYUGFKGYUFOD")
|
||||
LOL.setText("test")
|
||||
textField.setText("test")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user