diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index 1bd87ef..08153f1 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -2,6 +2,8 @@ import kotlin.text.all import kotlin.text.find import kotlin.text.isNotEmpty import kotlin.text.replace +import java.io.FileInputStream +import java.util.Properties plugins { id("com.android.application") @@ -10,8 +12,14 @@ plugins { id("dev.flutter.flutter-gradle-plugin") } +val keystoreProperties = Properties() +val keystorePropertiesFile = rootProject.file("keystore.properties") +if (keystorePropertiesFile.exists()) { + keystoreProperties.load(FileInputStream(keystorePropertiesFile)) +} + android { - namespace = "com.example.hadi_hoda_flutter" + namespace = "com.newhorizon.hadihoda" compileSdk = 36 ndkVersion = flutter.ndkVersion @@ -26,7 +34,7 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). - applicationId = "com.example.hadi_hoda_flutter" + applicationId = "com.newhorizon.hadihoda" // You can update the following values to match your application needs. // For more information, see: https://flutter.dev/to/review-gradle-config. minSdk = 24 @@ -35,9 +43,18 @@ android { versionName = flutter.versionName } + signingConfigs { + create("release") { + keyAlias = keystoreProperties.getProperty("keyAlias") + keyPassword = keystoreProperties.getProperty("keyPassword") + storeFile = keystoreProperties.getProperty("storeFile")?.let { file(it) } + storePassword = keystoreProperties.getProperty("storePassword") + } + } + buildTypes { release { - signingConfig = signingConfigs.getByName("debug") + signingConfig = signingConfigs.getByName("release") } } diff --git a/android/app/src/main/kotlin/com/example/hadi_hoda_flutter/MainActivity.kt b/android/app/src/main/kotlin/com/newhorizon/hadihoda/MainActivity.kt similarity index 70% rename from android/app/src/main/kotlin/com/example/hadi_hoda_flutter/MainActivity.kt rename to android/app/src/main/kotlin/com/newhorizon/hadihoda/MainActivity.kt index 0540642..7366efa 100644 --- a/android/app/src/main/kotlin/com/example/hadi_hoda_flutter/MainActivity.kt +++ b/android/app/src/main/kotlin/com/newhorizon/hadihoda/MainActivity.kt @@ -1,4 +1,4 @@ -package com.example.hadi_hoda_flutter +package com.newhorizon.hadihoda import io.flutter.embedding.android.FlutterActivity diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index d26d09a..5ee9172 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -477,7 +477,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = com.example.hadiHodaFlutter; + PRODUCT_BUNDLE_IDENTIFIER = com.newhorizon.hadihoda; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_VERSION = 5.0; @@ -494,7 +494,7 @@ CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.example.hadiHodaFlutter.RunnerTests; + PRODUCT_BUNDLE_IDENTIFIER = com.newhorizon.hadihoda.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; @@ -512,7 +512,7 @@ CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.example.hadiHodaFlutter.RunnerTests; + PRODUCT_BUNDLE_IDENTIFIER = com.newhorizon.hadihoda.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; @@ -528,7 +528,7 @@ CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.example.hadiHodaFlutter.RunnerTests; + PRODUCT_BUNDLE_IDENTIFIER = com.newhorizon.hadihoda.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; @@ -659,7 +659,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = com.example.hadiHodaFlutter; + PRODUCT_BUNDLE_IDENTIFIER = com.newhorizon.hadihoda; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; @@ -681,7 +681,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = com.example.hadiHodaFlutter; + PRODUCT_BUNDLE_IDENTIFIER = com.newhorizon.hadihoda; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_VERSION = 5.0; diff --git a/pubspec.yaml b/pubspec.yaml index 1d7c8d9..e0cc622 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: hadi_hoda_flutter description: "A new Flutter project." publish_to: 'none' -version: 1.0.1+1 +version: 1.1.0+2 environment: sdk: ^3.9.2