Skip to content

Commit bcc2593

Browse files
handle key store for play store
1 parent 29224fa commit bcc2593

File tree

14 files changed

+76
-48
lines changed

14 files changed

+76
-48
lines changed

android/app/build.gradle.kts

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,33 @@
1+
import java.util.Properties
2+
import java.io.FileInputStream
3+
14
plugins {
25
id("com.android.application")
36
id("kotlin-android")
47
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
58
id("dev.flutter.flutter-gradle-plugin")
69
}
710

11+
val keystoreProperties = Properties()
12+
val keystorePropertiesFile = rootProject.file("key.properties")
13+
if (keystorePropertiesFile.exists()) {
14+
keystoreProperties.load(FileInputStream(keystorePropertiesFile))
15+
}
16+
817
android {
9-
namespace = "com.example.algorithm_visualizer"
18+
namespace = "com.elhawary.algodive"
1019
compileSdk = flutter.compileSdkVersion
1120
ndkVersion = flutter.ndkVersion
1221

22+
signingConfigs {
23+
create("release") {
24+
keyAlias = keystoreProperties["keyAlias"] as String
25+
keyPassword = keystoreProperties["keyPassword"] as String
26+
storeFile = keystoreProperties["storeFile"]?.let { file(it) }
27+
storePassword = keystoreProperties["storePassword"] as String
28+
}
29+
}
30+
1331
compileOptions {
1432
sourceCompatibility = JavaVersion.VERSION_11
1533
targetCompatibility = JavaVersion.VERSION_11
@@ -21,7 +39,7 @@ android {
2139

2240
defaultConfig {
2341
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
24-
applicationId = "com.example.algorithm_visualizer"
42+
applicationId = "com.elhawary.algodive"
2543
// You can update the following values to match your application needs.
2644
// For more information, see: https://flutter.dev/to/review-gradle-config.
2745
minSdk = flutter.minSdkVersion
@@ -34,7 +52,7 @@ android {
3452
release {
3553
// TODO: Add your own signing config for the release build.
3654
// Signing with the debug keys for now, so `flutter run --release` works.
37-
signingConfig = signingConfigs.getByName("debug")
55+
signingConfig = signingConfigs.getByName("release")
3856
}
3957
}
4058
}

android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
22
<application
3-
android:label="algorithm_visualizer"
3+
android:label="AlgoDive"
44
android:name="${applicationName}"
55
android:enableOnBackInvokedCallback="true"
66
android:icon="@mipmap/ic_launcher"

android/app/src/main/kotlin/com/example/algorithm_visualizer/MainActivity.kt renamed to android/app/src/main/kotlin/com/example/algodive/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.example.algorithm_visualizer
1+
package com.elhawary.algodive
22

33
import io.flutter.embedding.android.FlutterActivity
44

ios/Runner/Base.lproj/LaunchScreen.storyboard

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12121" systemVersion="16G29" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="23504" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
3+
<device id="retina6_12" orientation="portrait" appearance="light"/>
34
<dependencies>
45
<deployment identifier="iOS"/>
5-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12089"/>
6+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="23506"/>
7+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
68
</dependencies>
79
<scenes>
810
<!--View Controller-->
@@ -14,10 +16,15 @@
1416
<viewControllerLayoutGuide type="bottom" id="xbc-2k-c8Z"/>
1517
</layoutGuides>
1618
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
19+
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
1720
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
1821
<subviews>
19-
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" image="LaunchBackground" translatesAutoresizingMaskIntoConstraints="NO" id="tWc-Dq-wcI"/>
20-
<imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" image="LaunchImage" translatesAutoresizingMaskIntoConstraints="NO" id="YRO-k0-Ey4"></imageView>
22+
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" image="LaunchBackground" translatesAutoresizingMaskIntoConstraints="NO" id="tWc-Dq-wcI">
23+
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
24+
</imageView>
25+
<imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" image="LaunchImage" translatesAutoresizingMaskIntoConstraints="NO" id="YRO-k0-Ey4">
26+
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
27+
</imageView>
2128
</subviews>
2229
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
2330
<constraints>
@@ -34,11 +41,11 @@
3441
</viewController>
3542
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
3643
</objects>
37-
<point key="canvasLocation" x="53" y="375"/>
44+
<point key="canvasLocation" x="80.916030534351137" y="264.08450704225356"/>
3845
</scene>
3946
</scenes>
4047
<resources>
41-
<image name="LaunchImage" width="1242" height="2688"/>
4248
<image name="LaunchBackground" width="1" height="1"/>
49+
<image name="LaunchImage" width="310.33334350585938" height="672"/>
4350
</resources>
4451
</document>
Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="23504" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
3+
<device id="retina6_12" orientation="portrait" appearance="light"/>
34
<dependencies>
45
<deployment identifier="iOS"/>
5-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
6+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="23506"/>
7+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
68
</dependencies>
79
<scenes>
810
<!--Flutter View Controller-->
@@ -14,13 +16,14 @@
1416
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
1517
</layoutGuides>
1618
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
17-
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
19+
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
1820
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
19-
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
21+
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
2022
</view>
2123
</viewController>
2224
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
2325
</objects>
26+
<point key="canvasLocation" x="-15" y="-40"/>
2427
</scene>
2528
</scenes>
2629
</document>

linux/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ project(runner LANGUAGES CXX)
77
set(BINARY_NAME "algorithm_visualizer")
88
# The unique GTK application identifier for this application. See:
99
# https://wiki.gnome.org/HowDoI/ChooseApplicationID
10-
set(APPLICATION_ID "com.example.algorithm_visualizer")
10+
set(APPLICATION_ID "com.elhawary.algo_dive")
1111

1212
# Explicitly opt in to modern CMake behaviors to avoid warnings with recent
1313
# versions of CMake.

linux/my_application.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ static void my_application_activate(GApplication* application) {
4040
if (use_header_bar) {
4141
GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new());
4242
gtk_widget_show(GTK_WIDGET(header_bar));
43-
gtk_header_bar_set_title(header_bar, "algorithm_visualizer");
43+
gtk_header_bar_set_title(header_bar, "algodive");
4444
gtk_header_bar_set_show_close_button(header_bar, TRUE);
4545
gtk_window_set_titlebar(window, GTK_WIDGET(header_bar));
4646
} else {
47-
gtk_window_set_title(window, "algorithm_visualizer");
47+
gtk_window_set_title(window, "algodive");
4848
}
4949

5050
gtk_window_set_default_size(window, 1280, 720);

macos/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
platform :osx, '10.14'
1+
platform :osx, '10.15'
22

33
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
44
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

macos/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ EXTERNAL SOURCES:
1515
:path: Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin
1616

1717
SPEC CHECKSUMS:
18-
FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24
18+
FlutterMacOS: d0db08ddef1a9af05a5ec4b724367152bb0500b1
1919
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
2020

21-
PODFILE CHECKSUM: 236401fc2c932af29a9fcf0e97baeeb2d750d367
21+
PODFILE CHECKSUM: 9ebaf0ce3d369aaa26a9ea0e159195ed94724cf3
2222

2323
COCOAPODS: 1.16.2

macos/Runner.xcodeproj/project.pbxproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@
557557
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
558558
GCC_WARN_UNUSED_FUNCTION = YES;
559559
GCC_WARN_UNUSED_VARIABLE = YES;
560-
MACOSX_DEPLOYMENT_TARGET = 10.14;
560+
MACOSX_DEPLOYMENT_TARGET = 10.15;
561561
MTL_ENABLE_DEBUG_INFO = NO;
562562
SDKROOT = macosx;
563563
SWIFT_COMPILATION_MODE = wholemodule;
@@ -639,7 +639,7 @@
639639
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
640640
GCC_WARN_UNUSED_FUNCTION = YES;
641641
GCC_WARN_UNUSED_VARIABLE = YES;
642-
MACOSX_DEPLOYMENT_TARGET = 10.14;
642+
MACOSX_DEPLOYMENT_TARGET = 10.15;
643643
MTL_ENABLE_DEBUG_INFO = YES;
644644
ONLY_ACTIVE_ARCH = YES;
645645
SDKROOT = macosx;
@@ -689,7 +689,7 @@
689689
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
690690
GCC_WARN_UNUSED_FUNCTION = YES;
691691
GCC_WARN_UNUSED_VARIABLE = YES;
692-
MACOSX_DEPLOYMENT_TARGET = 10.14;
692+
MACOSX_DEPLOYMENT_TARGET = 10.15;
693693
MTL_ENABLE_DEBUG_INFO = NO;
694694
SDKROOT = macosx;
695695
SWIFT_COMPILATION_MODE = wholemodule;

0 commit comments

Comments
 (0)