Skip to content

Commit

Permalink
Version bump & gradle rework
Browse files Browse the repository at this point in the history
  • Loading branch information
zlshames committed Aug 16, 2021
1 parent 135754f commit a502ded
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 20 deletions.
25 changes: 7 additions & 18 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ if (localPropertiesFile.exists()) {
}
}

def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}

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.")
Expand All @@ -21,17 +27,8 @@ if (flutterVersionName == null) {
flutterVersionName = '1.0'
}


apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
//apply plugin: 'com.google.gms.google-services' // Google Services plugin
apply plugin: 'kotlin-android'

def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}

android {
compileSdkVersion 29
Expand All @@ -49,17 +46,9 @@ android {
applicationId "com.bluebubbles.messaging"
minSdkVersion 21
targetSdkVersion 29
// v0.1.14 hotfix version (0-9) armv7 OR arm64
// version code: 1 0114 0 70 64

//noinspection AccidentalOctal
versionCode 11300070
versionCode 20000000 + flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

// ndk {
// abiFilters 'armeabi-v7a'
// }
}

compileOptions {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ packages:
source: hosted
version: "4.0.0"
image:
dependency: transitive
dependency: "direct main"
description:
name: image
url: "https://pub.dartlang.org"
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ description: Send iMessages on Android using BlueBubbles!
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.3.0
version: 1.3.0+2
publish_to: none

environment:
Expand Down

0 comments on commit a502ded

Please sign in to comment.