Update README.md
This commit is contained in:
parent
3f37619744
commit
467470ce90
115
README.md
115
README.md
@ -2,6 +2,121 @@
|
|||||||
|
|
||||||
Project ini adalah aplikasi mobile Furikake.
|
Project ini adalah aplikasi mobile Furikake.
|
||||||
|
|
||||||
|
## Konfiguras dan perubahan android app
|
||||||
|
|
||||||
|
Edit android/app/src/main/kotlin ... /MainActivity.kt
|
||||||
|
|
||||||
|
```
|
||||||
|
package com.paj.freekake
|
||||||
|
|
||||||
|
import io.flutter.embedding.android.FlutterActivity
|
||||||
|
import io.flutter.embedding.android.FlutterFragmentActivity;
|
||||||
|
|
||||||
|
//class MainActivity : FlutterActivity()
|
||||||
|
class MainActivity: FlutterFragmentActivity() {
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Gunakan konfigurasi ini pada file android/settings.gradle.kts
|
||||||
|
|
||||||
|
```
|
||||||
|
pluginManagement {
|
||||||
|
val flutterSdkPath = run {
|
||||||
|
val properties = java.util.Properties()
|
||||||
|
file("local.properties").inputStream().use { properties.load(it) }
|
||||||
|
val flutterSdkPath = properties.getProperty("flutter.sdk")
|
||||||
|
require(flutterSdkPath != null) { "flutter.sdk not set in local.properties" }
|
||||||
|
flutterSdkPath
|
||||||
|
}
|
||||||
|
|
||||||
|
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
google()
|
||||||
|
mavenCentral()
|
||||||
|
gradlePluginPortal()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
|
||||||
|
id("com.android.application") version "8.9.0" apply false
|
||||||
|
id("org.jetbrains.kotlin.android") version "1.8.22" apply false
|
||||||
|
}
|
||||||
|
|
||||||
|
include(":app")
|
||||||
|
|
||||||
|
include(":unityLibrary")
|
||||||
|
project(":unityLibrary").projectDir = file("./unityLibrary")
|
||||||
|
|
||||||
|
include(":unityLibrary:xrmanifest.androidlib")
|
||||||
|
//project(":unityLibrary:xrmanifest.androidlib").projectDir = file("unityLibrary/xrmanifest.androidlib")
|
||||||
|
|
||||||
|
//include(":unityLibrary:mobilenotifications.androidlib")
|
||||||
|
//project(":unityLibrary:mobilenotifications.androidlib").projectDir = file("unityLibrary/mobilenotifications.androidlib")
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
Gunakan konfigurasi ini pada android/app/build.gradle.kts
|
||||||
|
|
||||||
|
```
|
||||||
|
plugins {
|
||||||
|
id("com.android.application")
|
||||||
|
id("kotlin-android")
|
||||||
|
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
|
||||||
|
id("dev.flutter.flutter-gradle-plugin")
|
||||||
|
}
|
||||||
|
|
||||||
|
android {
|
||||||
|
namespace = "com.paj.freekake"
|
||||||
|
//compileSdk = flutter.compileSdkVersion
|
||||||
|
compileSdk = 35
|
||||||
|
//ndkVersion = "27.0.12077973"
|
||||||
|
//ndkVersion = flutter.ndkVersion
|
||||||
|
ndkVersion = "23.1.7779620"
|
||||||
|
|
||||||
|
compileOptions {
|
||||||
|
sourceCompatibility = JavaVersion.VERSION_17
|
||||||
|
targetCompatibility = JavaVersion.VERSION_17
|
||||||
|
}
|
||||||
|
|
||||||
|
kotlinOptions {
|
||||||
|
jvmTarget = JavaVersion.VERSION_17.toString()
|
||||||
|
}
|
||||||
|
|
||||||
|
defaultConfig {
|
||||||
|
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
||||||
|
applicationId = "com.paj.freekake"
|
||||||
|
// You can update the following values to match your application needs.
|
||||||
|
// For more information, see: https://flutter.dev/to/review-gradle-config.
|
||||||
|
//minSdk = flutter.minSdkVersion
|
||||||
|
//targetSdk = flutter.targetSdkVersion
|
||||||
|
//minSdk = 24 // Set to 24 or higher
|
||||||
|
minSdk = 30
|
||||||
|
targetSdk = 35
|
||||||
|
versionCode = flutter.versionCode
|
||||||
|
versionName = flutter.versionName
|
||||||
|
}
|
||||||
|
|
||||||
|
buildTypes {
|
||||||
|
release {
|
||||||
|
// TODO: Add your own signing config for the release build.
|
||||||
|
// Signing with the debug keys for now, so `flutter run --release` works.
|
||||||
|
signingConfig = signingConfigs.getByName("debug")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
flutter {
|
||||||
|
source = "../.."
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation(project(":unityLibrary"))
|
||||||
|
implementation(project(":flutter_unity_widget"))
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Konfigurasi UnityLibrary
|
## Konfigurasi UnityLibrary
|
||||||
|
|
||||||
Gunakan konfigurasi ini pada file android/unityLibrary/build.gradle:
|
Gunakan konfigurasi ini pada file android/unityLibrary/build.gradle:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user