theapache64
2 years ago
committed by
GitHub
15 changed files with 196 additions and 7 deletions
@ -0,0 +1,8 @@
|
||||
# Default ignored files |
||||
/shelf/ |
||||
/workspace.xml |
||||
# Editor-based HTTP Client requests |
||||
/httpRequests/ |
||||
# Datasource local storage ignored files |
||||
/dataSources/ |
||||
/dataSources.local.xml |
@ -0,0 +1,8 @@
|
||||
<component name="ArtifactManager"> |
||||
<artifact type="jar" name="falling-balls-mpp-desktop-1.0-SNAPSHOT"> |
||||
<output-path>$PROJECT_DIR$/build/libs</output-path> |
||||
<root id="archive" name="falling-balls-mpp-desktop-1.0-SNAPSHOT.jar"> |
||||
<element id="module-output" name="falling-balls-mpp.desktopMain" /> |
||||
</root> |
||||
</artifact> |
||||
</component> |
@ -0,0 +1,8 @@
|
||||
<component name="ArtifactManager"> |
||||
<artifact type="jar" name="falling-balls-mpp-js-1.0-SNAPSHOT"> |
||||
<output-path>$PROJECT_DIR$/build/libs</output-path> |
||||
<root id="archive" name="falling-balls-mpp-js-1.0-SNAPSHOT.jar"> |
||||
<element id="module-output" name="falling-balls-mpp.jsMain" /> |
||||
</root> |
||||
</artifact> |
||||
</component> |
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<project version="4"> |
||||
<component name="CompilerConfiguration"> |
||||
<bytecodeTargetLevel target="15" /> |
||||
</component> |
||||
</project> |
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<project version="4"> |
||||
<component name="GradleMigrationSettings" migrationVersion="1" /> |
||||
<component name="GradleSettings"> |
||||
<option name="linkedExternalProjectsSettings"> |
||||
<GradleProjectSettings> |
||||
<option name="testRunner" value="GRADLE" /> |
||||
<option name="distributionType" value="DEFAULT_WRAPPED" /> |
||||
<option name="externalProjectPath" value="$PROJECT_DIR$" /> |
||||
<option name="gradleJvm" value="#JAVA_HOME" /> |
||||
<option name="modules"> |
||||
<set> |
||||
<option value="$PROJECT_DIR$" /> |
||||
</set> |
||||
</option> |
||||
</GradleProjectSettings> |
||||
</option> |
||||
</component> |
||||
</project> |
@ -0,0 +1,45 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<project version="4"> |
||||
<component name="RemoteRepositoriesConfiguration"> |
||||
<remote-repository> |
||||
<option name="id" value="central" /> |
||||
<option name="name" value="Maven Central repository" /> |
||||
<option name="url" value="https://repo1.maven.org/maven2" /> |
||||
</remote-repository> |
||||
<remote-repository> |
||||
<option name="id" value="jboss.community" /> |
||||
<option name="name" value="JBoss Community repository" /> |
||||
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" /> |
||||
</remote-repository> |
||||
<remote-repository> |
||||
<option name="id" value="MavenRepo" /> |
||||
<option name="name" value="MavenRepo" /> |
||||
<option name="url" value="https://repo.maven.apache.org/maven2/" /> |
||||
</remote-repository> |
||||
<remote-repository> |
||||
<option name="id" value="Gradle Central Plugin Repository" /> |
||||
<option name="name" value="Gradle Central Plugin Repository" /> |
||||
<option name="url" value="https://plugins.gradle.org/m2" /> |
||||
</remote-repository> |
||||
<remote-repository> |
||||
<option name="id" value="MavenLocal" /> |
||||
<option name="name" value="MavenLocal" /> |
||||
<option name="url" value="file:$MAVEN_REPOSITORY$/" /> |
||||
</remote-repository> |
||||
<remote-repository> |
||||
<option name="id" value="maven" /> |
||||
<option name="name" value="maven" /> |
||||
<option name="url" value="https://maven.pkg.jetbrains.space/public/p/compose/dev" /> |
||||
</remote-repository> |
||||
<remote-repository> |
||||
<option name="id" value="Google" /> |
||||
<option name="name" value="Google" /> |
||||
<option name="url" value="https://dl.google.com/dl/android/maven2/" /> |
||||
</remote-repository> |
||||
<remote-repository> |
||||
<option name="id" value="MavenLocal" /> |
||||
<option name="name" value="MavenLocal" /> |
||||
<option name="url" value="file:$USER_HOME$/.m2/repository/" /> |
||||
</remote-repository> |
||||
</component> |
||||
</project> |
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<project version="4"> |
||||
<component name="ExternalStorageConfigurationManager" enabled="true" /> |
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_15_PREVIEW" project-jdk-name="15" project-jdk-type="JavaSDK" /> |
||||
</project> |
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<project version="4"> |
||||
<component name="VcsDirectoryMappings"> |
||||
<mapping directory="$PROJECT_DIR$/../../.." vcs="Git" /> |
||||
<mapping directory="$PROJECT_DIR$/build/xcodegen-2.26.0-src" vcs="Git" /> |
||||
</component> |
||||
</project> |
@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" |
||||
package="org.jetbrains.fallingballs"> |
||||
|
||||
<application |
||||
android:allowBackup="true" |
||||
android:label="@string/app_name" |
||||
android:supportsRtl="true" |
||||
android:theme="@style/Theme.AppCompat.Light.NoActionBar"> |
||||
<activity |
||||
android:exported="true" |
||||
android:name=".MainActivity"> |
||||
<intent-filter> |
||||
<action android:name="android.intent.action.MAIN" /> |
||||
|
||||
<category android:name="android.intent.category.LAUNCHER" /> |
||||
</intent-filter> |
||||
</activity> |
||||
</application> |
||||
|
||||
</manifest> |
@ -0,0 +1,23 @@
|
||||
package org.jetbrains.fallingballs |
||||
|
||||
import FallingBalls |
||||
import Game |
||||
import Time |
||||
import android.os.Bundle |
||||
import androidx.activity.compose.setContent |
||||
import androidx.appcompat.app.AppCompatActivity |
||||
import androidx.compose.runtime.remember |
||||
|
||||
object AndroidTime : Time { |
||||
override fun now(): Long = System.nanoTime() |
||||
} |
||||
|
||||
class MainActivity : AppCompatActivity() { |
||||
override fun onCreate(savedInstanceState: Bundle?) { |
||||
super.onCreate(savedInstanceState) |
||||
setContent { |
||||
val game = remember { Game(AndroidTime) } |
||||
FallingBalls(game) |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,3 @@
|
||||
<resources> |
||||
<string name="app_name">Chat app</string> |
||||
</resources> |
Loading…
Reference in new issue