~repos /only-bible-app
git clone https://pyrossh.dev/repos/only-bible-app.git
The only bible app you will ever need. No ads. No in-app purchases. No distractions.
0257e3b3
—
pyrossh 1 year ago
fix build
- android/app/build.gradle +6 -13
- android/build.gradle +0 -13
- android/settings.gradle +22 -8
- ios/Runner.xcodeproj/project.pbxproj +4 -1
- pubspec.yaml +1 -1
- readme.md +2 -3
android/app/build.gradle
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
plugins {
|
|
2
|
+
id "com.android.application"
|
|
3
|
+
id "kotlin-android"
|
|
4
|
+
id "dev.flutter.flutter-gradle-plugin"
|
|
5
|
+
}
|
|
6
|
+
|
|
1
7
|
def localProperties = new Properties()
|
|
2
8
|
def localPropertiesFile = rootProject.file('local.properties')
|
|
3
9
|
if (localPropertiesFile.exists()) {
|
|
@@ -6,11 +12,6 @@ if (localPropertiesFile.exists()) {
|
|
|
6
12
|
}
|
|
7
13
|
}
|
|
8
14
|
|
|
9
|
-
def flutterRoot = localProperties.getProperty('flutter.sdk')
|
|
10
|
-
if (flutterRoot == null) {
|
|
11
|
-
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
|
|
12
|
-
}
|
|
13
|
-
|
|
14
15
|
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
|
|
15
16
|
if (flutterVersionCode == null) {
|
|
16
17
|
throw new GradleException("flutter.versionCode is required")
|
|
@@ -21,10 +22,6 @@ if (flutterVersionName == null) {
|
|
|
21
22
|
throw new GradleException("flutter.versionName is required")
|
|
22
23
|
}
|
|
23
24
|
|
|
24
|
-
apply plugin: 'com.android.application'
|
|
25
|
-
apply plugin: 'kotlin-android'
|
|
26
|
-
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
|
|
27
|
-
|
|
28
25
|
def keystoreProperties = new Properties()
|
|
29
26
|
def keystorePropertiesFile = rootProject.file('key.properties')
|
|
30
27
|
if (keystorePropertiesFile.exists()) {
|
|
@@ -80,10 +77,6 @@ flutter {
|
|
|
80
77
|
source '../..'
|
|
81
78
|
}
|
|
82
79
|
|
|
83
|
-
dependencies {
|
|
84
|
-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
|
85
|
-
}
|
|
86
|
-
|
|
87
80
|
configurations.all {
|
|
88
81
|
resolutionStrategy {
|
|
89
82
|
eachDependency {
|
android/build.gradle
CHANGED
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
buildscript {
|
|
2
|
-
ext.kotlin_version = '1.7.10'
|
|
3
|
-
repositories {
|
|
4
|
-
google()
|
|
5
|
-
mavenCentral()
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
dependencies {
|
|
9
|
-
classpath 'com.android.tools.build:gradle:7.3.0'
|
|
10
|
-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
1
|
allprojects {
|
|
15
2
|
repositories {
|
|
16
3
|
google()
|
android/settings.gradle
CHANGED
|
@@ -1,11 +1,25 @@
|
|
|
1
|
+
pluginManagement {
|
|
2
|
+
def flutterSdkPath = {
|
|
3
|
+
def properties = new Properties()
|
|
4
|
+
file("local.properties").withInputStream { properties.load(it) }
|
|
5
|
+
def flutterSdkPath = properties.getProperty("flutter.sdk")
|
|
6
|
+
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
|
|
1
|
-
|
|
7
|
+
return flutterSdkPath
|
|
8
|
+
}()
|
|
2
9
|
|
|
3
|
-
|
|
10
|
+
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
|
|
4
|
-
def properties = new Properties()
|
|
5
11
|
|
|
12
|
+
repositories {
|
|
13
|
+
google()
|
|
14
|
+
mavenCentral()
|
|
6
|
-
|
|
15
|
+
gradlePluginPortal()
|
|
7
|
-
|
|
16
|
+
}
|
|
17
|
+
}
|
|
8
18
|
|
|
19
|
+
plugins {
|
|
9
|
-
|
|
20
|
+
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
|
|
21
|
+
id "com.android.application" version "7.3.0" apply false
|
|
10
|
-
|
|
22
|
+
id "org.jetbrains.kotlin.android" version "1.7.10" apply false
|
|
23
|
+
}
|
|
24
|
+
|
|
11
|
-
|
|
25
|
+
include ":app"
|
ios/Runner.xcodeproj/project.pbxproj
CHANGED
|
@@ -650,7 +650,9 @@
|
|
|
650
650
|
buildSettings = {
|
|
651
651
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
|
652
652
|
CLANG_ENABLE_MODULES = YES;
|
|
653
|
+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
|
|
653
654
|
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
|
|
655
|
+
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = FXH8NUGFYY;
|
|
654
656
|
ENABLE_BITCODE = NO;
|
|
655
657
|
INFOPLIST_FILE = Runner/Info.plist;
|
|
656
658
|
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.books";
|
|
@@ -660,6 +662,7 @@
|
|
|
660
662
|
);
|
|
661
663
|
PRODUCT_BUNDLE_IDENTIFIER = "sh.pyros.only-bible-app";
|
|
662
664
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
665
|
+
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "App Store Connect";
|
|
663
666
|
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
|
|
664
667
|
SUPPORTS_MACCATALYST = NO;
|
|
665
668
|
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
|
|
@@ -693,7 +696,7 @@
|
|
|
693
696
|
PRODUCT_BUNDLE_IDENTIFIER = "sh.pyros.only-bible-app";
|
|
694
697
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
695
698
|
PROVISIONING_PROFILE_SPECIFIER = "";
|
|
696
|
-
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" =
|
|
699
|
+
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "App Store Connect";
|
|
697
700
|
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
|
|
698
701
|
SUPPORTS_MACCATALYST = NO;
|
|
699
702
|
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
|
pubspec.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
name: only_bible_app
|
|
2
2
|
description: The only bible app you will ever need
|
|
3
3
|
publish_to: 'none'
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.4+2
|
|
5
5
|
|
|
6
6
|
environment:
|
|
7
7
|
sdk: '>=3.0.6 <4.0.0'
|
readme.md
CHANGED
|
@@ -68,14 +68,14 @@ https://onlybible.app
|
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
## Release Process
|
|
71
|
-
Update version and build number in pubspec.yaml ex: 1.0.7
|
|
71
|
+
Update version and build number in pubspec.yaml ex: 1.0.7+1
|
|
72
72
|
|
|
73
73
|
### android
|
|
74
74
|
|
|
75
75
|
```
|
|
76
76
|
flutter build appbundle --release --dart-define-from-file=.env
|
|
77
77
|
|
|
78
|
-
# copy file from
|
|
78
|
+
# copy file from build/app/outputs/bundle/release/app-release.aab
|
|
79
79
|
```
|
|
80
80
|
|
|
81
81
|
### iOS
|
|
@@ -87,7 +87,6 @@ Runner Target, Signing Tab, Release Tab, select that provisioning profile and Te
|
|
|
87
87
|
|
|
88
88
|
```
|
|
89
89
|
flutter build ipa --release --dart-define-from-file=.env
|
|
90
|
-
# open build/ios/archive/MyApp.xcarchive
|
|
91
90
|
```
|
|
92
91
|
|
|
93
92
|
## Bugs
|