Flutter да ёзилган Android иловаларни ios га ўгириш, иловани Play Market ва Apple Store га жойлаш


Download 205.22 Kb.
bet2/4
Sana08.03.2023
Hajmi205.22 Kb.
#1252387
1   2   3   4
Bog'liq
Android иловалар

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:name="io.flutter.app.FlutterApplication"
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::
/android/key.properties ichida kalit do'koningizga havolani o'z ichiga olgan fayl 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:
1   2   3   4




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling