Skip to content

Commit

Permalink
v.1.0.0
Browse files Browse the repository at this point in the history
testing extrat text from commit
  • Loading branch information
wendreof committed Oct 2, 2021
1 parent 69d652b commit 327ef5e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 8 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ jobs:
- uses: codecov/codecov-action@v2
with:
file: coverage/lcov.info
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Mandatory to use the extract version from tag action
- name: Extract version from tag
uses: damienaicheh/[email protected]



build_ios:
name: Build for iOS
Expand Down Expand Up @@ -123,6 +130,9 @@ jobs:
echo keyPassword=\${{ secrets.KEY_STORE }} > ${{env.PROPERTIES_PATH}}
echo storePassword=\${{ secrets.KEY_PASSWORD }} >> ${{env.PROPERTIES_PATH}}
echo keyAlias=\${{ secrets.KEY_ALIAS }} >> ${{env.PROPERTIES_PATH}}
echo flutter.versionName=\'${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.PATCH }}' >> ${{env.PROPERTIES_PATH}}
echo flutter.versionCode=\'${{ env.NUMBER_OF_COMMITS }}' >> ${{env.PROPERTIES_PATH}}
# Decoding base64 key into a file
- run: echo "${{ secrets.KEYSTORE2 }}" | base64 --decode > android/app/key.jks
Expand Down
18 changes: 11 additions & 7 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,18 @@ 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 keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
def flutterVersionCode = keystorePropertiesFile.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}

def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
def flutterVersionName = keystorePropertiesFile.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}
}

apply plugin: 'com.android.application'
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Get data of companies by CNPJ

publish_to: "none"

version: 1.0.0+9
#version: 1.0.0+9

environment:
sdk: ">=2.12.0 <3.0.0"
Expand Down

0 comments on commit 327ef5e

Please sign in to comment.