Flutter да ёзилган Android иловаларни ios га ўгириш, иловани Play Market ва Apple Store га жойлаш
Download 205.22 Kb.
|
Android иловалар
- Bu sahifa navigatsiya:
- _Playstorega_ilovani_yuklash::_Avval_Keystore_yaratamiz::_Windows_uchun"> android:label="laundary_application"> Playstorega ilovani yuklash:: Avval Keystore yaratamiz:: Windows uchun
- App/build.gradle
Ilova nomini o’zgartirish::
Android\app\main\AndroidManifest.xml ga o'tamiz va android yorlig'ini o'zgartiramiz, u telefoningizda ilova nomi sifatida ko'rsatiladigan dastur nomini o'zgartiradi. android:icon="@mipmap/ic_launcher" android:label="laundary_application"> Playstorega ilovani yuklash:: Avval Keystore yaratamiz:: Windows uchun keytool -genkey -v -keystore c:\Users\USER_NAME\key.jks -storetype JKS -keyalg RSA -keysize 2048 -validity 10000 -alias key mac/linux uchun keytool -genkey -v -keystore ~/key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias key manashu buyruqlarni terminalda ishga tushuramiz Agar bitta Keystore mavjud bo'lsa, undan ham foydalanishimiz mumkin. Bu buyruq uy katalogida key.jks faylini yaratadi. Ilovangiz ichida Keystore ma'lumotnomasini yaratamiz:: storePassword=testpassword keyPassword=testpassword keyAlias=testkey storeFile=D:/keystore.jks //your_home_directory App/build.gradle ichiga qalit tarkibni qo'shamiz: def localProperties = new Properties() def localPropertiesFile = rootProject.file('local.properties') if (localPropertiesFile.exists()) { localPropertiesFile.withReader('UTF-8') { reader -> localProperties.load(reader) def flutterRoot = localProperties.getProperty('flutter.sdk') if (flutterRoot == null) { throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") def flutterVersionCode = localProperties.getProperty('flutter.versionCode') if (flutterVersionCode == null) { flutterVersionCode = '1' def flutterVersionName = localProperties.getProperty('flutter.versionName') if (flutterVersionName == null) { flutterVersionName = '1.0' apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"def keystoreProperties = new Properties() def keystorePropertiesFile = rootProject.file('key.properties') if (keystorePropertiesFile.exists()) { keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) android { compileSdkVersion 28 sourceSets { main.java.srcDirs += 'src/main/kotlin' lintOptions { disable 'InvalidPackage' defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.gymguide.gymguide" minSdkVersion 16 targetSdkVersion 28 versionCode flutterVersionCode.toInteger() versionName flutterVersionName testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" signingConfigs { release { keyAlias keystoreProperties['keyAlias'] keyPassword keystoreProperties['keyPassword'] storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null storePassword keystoreProperties['storePassword'] buildTypes { release { signingConfig signingConfigs.release flutter { source '../..' dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test:runner:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' Download 205.22 Kb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling