Skip to content

Commit

Permalink
feat!: Full refactor to impaktfull
Browse files Browse the repository at this point in the history
  • Loading branch information
vanlooverenkoen committed Feb 13, 2024
1 parent ffb4a89 commit 062cb9e
Show file tree
Hide file tree
Showing 45 changed files with 265 additions and 587 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/analyzer.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/create_tag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Automated version bump

on:
push:
branches:
- main

jobs:
bump_version:
name: Version bump on main
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v2
with:
token: ${{ secrets.IMPAKTFULL_GITHUB_PAT }}
ref: ${{ github.ref }}
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 18
- name: Automated version bump
uses: impaktfull/gh_action_dart_conventional_release@main
with:
script-pre-run: tool/dart/pre_run.dart
tag-prefix: 'v'
19 changes: 0 additions & 19 deletions .github/workflows/formatting.yml

This file was deleted.

14 changes: 14 additions & 0 deletions .github/workflows/publish_to_pubdev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Publish to pub.dev

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'

jobs:
publish:
permissions:
id-token: write # Required for authentication using OIDC
uses: Impaktfull/gh_action_dart_conventional_release/.github/workflows/flutter_release.yml@main
with:
environment: 'pub.dev'
19 changes: 0 additions & 19 deletions .github/workflows/sanity.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/tests.yml

This file was deleted.

5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,7 @@
**_testImage.png

# Fvm
.fvm/flutter_sdk
.fvm/flutter_sdk

# config.dart
example/lib/config.dart
14 changes: 14 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Example Flutter App",
"request": "launch",
"type": "dart",
"program": "example/lib/main.dart",
},
]
}
38 changes: 24 additions & 14 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,33 @@
## 3.0.1
# 4.0.0

## Breaking:

- Refactor to impaktfull
- Updated dependencies
- Updated min versions
- Updated kotlin version
- License

# 3.0.1

Don't fail if release notes are `null` (we fall back to an empty string)

## 3.0.0
# 3.0.0
Min flutter version 3.3.0

Updated:
- Dependencies
- Kotlin version to 1.6.0

## 2.2.0
# 2.2.0
Added:
- (Android) Support for aab files

## 2.1.1
# 2.1.1
Fixed:
- (Android) Memory leak when using `openAndroidInstallScreen: false, keepAndroidNotification: true`

## 2.1.0
# 2.1.0
Added:
- (Android) Support to decide if the download should open the install screen automatically or the user should click on the download notification. By default the install screen will open.
- (Android) Support to keep the notification after the download was completed. By default the notification will be dismissed after downloading.
Expand All @@ -26,7 +36,7 @@ Updated:
- Github Actions
- Analyzer

## 2.0.1
# 2.0.1
Updated:
- Dependencies
- Fixed analyzer warnings
Expand All @@ -36,7 +46,7 @@ Removed:
Added:
- Github Actions

## 2.0.0
# 2.0.0
Breaking:
- #18

Expand All @@ -49,33 +59,33 @@ Breaking:
Added:
- Support for testers. Collaborators, members & testers can now use the app with an api token.

## 1.0.1
# 1.0.1
Fixed:
- crash when fetching user details with null avatarurl

## 1.0.0
# 1.0.0
Added:
- Nullsafety
- Nullsafety example

## 0.0.5
# 0.0.5
Added:
- No access error so we can check if the api token is valid
Fixed:
- Non exposed exceptions

## 0.0.4
# 0.0.4
Fixed:
- json.encode would fail if DateTime was used in a toJson

## 0.0.3
# 0.0.3
Added:
- User Details
- Extra documentation: `Api Token should have read access only`

## 0.0.2
# 0.0.2
Added:
- pub.dev version label

## 0.0.1
# 0.0.1
Initial Release
44 changes: 27 additions & 17 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,21 +1,31 @@
MIT License
BSD 3-Clause License

Copyright (c) 2020 Koen Van Looveren
Copyright (c) 2024, Impaktfull

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
Authors:
- Koen Van Looveren

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
# AppCenter Release Manager


[![pub package](https://img.shields.io/pub/v/appcenter_release_manager.svg)](https://pub.dartlang.org/packages/appcenter_release_manager)
[![Build Status Analyzer](https://github.com/vanlooverenkoen/flutter_appcenter_release_manager/actions/workflows/analyzer.yml/badge.svg)](https://github.com/vanlooverenkoen/flutter_appcenter_release_manager/actions/workflows/analyzer.yml)
[![Build Status Formatting](https://github.com/vanlooverenkoen/flutter_appcenter_release_manager/actions/workflows/formatting.yml/badge.svg)](https://github.com/vanlooverenkoen/flutter_appcenter_release_manager/actions/workflows/formatting.yml)
[![Build Status Test](https://github.com/vanlooverenkoen/flutter_appcenter_release_manager/actions/workflows/tests.yml/badge.svg)](https://github.com/vanlooverenkoen/flutter_appcenter_release_manager/actions/workflows/tests.yml)
[![Coverage Status](https://coveralls.io/repos/github/vanlooverenkoen/flutter_appcenter_release_manager/badge.svg)](https://coveralls.io/github/vanlooverenkoen/flutter_appcenter_release_manager)
[![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://lbesson.mit-license.org/)
[![License](https://img.shields.io/badge/License-BSD_3--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)

Download appcenter updates straight from your iOS or Android app.


### Use the predefined UI with the AppcenterReleaseManagerLatestReleases widget
Api Token should have read access only
```dart
Expand Down
13 changes: 1 addition & 12 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,11 @@ include: package:flutter_lints/flutter.yaml

analyzer:
errors:
missing_required_param: error
missing_return: error
todo: ignore
exclude:
- '**.g.dart'
- '**.mocks.dart'
language:
strict-casts: true
strict-raw-types: true

linter:
rules:
- unawaited_futures
- always_declare_return_types
- unsafe_html
- use_full_hex_values_for_flutter_colors
- prefer_final_in_for_each
- prefer_final_fields
- prefer_final_locals
- unawaited_futures
10 changes: 5 additions & 5 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
group 'be.vanlooverenkoen.appcenter_release_manager'
group 'com.impaktfull.appcenter_release_manager'
version '1.0-SNAPSHOT'

buildscript {
ext.kotlin_version = '1.6.0'
ext.kotlin_version = '1.7.10'
repositories {
google()
jcenter()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:4.2.2'
classpath 'com.android.tools.build:gradle:7.0.4'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

rootProject.allprojects {
repositories {
google()
jcenter()
mavenCentral()
}
}

Expand Down
4 changes: 2 additions & 2 deletions android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="be.vanlooverenkoen.appcenter_release_manager">
package="com.impaktfull.appcenter_release_manager">

<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />

<application>
<provider
android:name="be.vanlooverenkoen.appcenter_release_manager.FileProvider"
android:name="com.impaktfull.appcenter_release_manager.FileProvider"
android:authorities="${applicationId}.fileProvider.install"
android:exported="false"
android:grantUriPermissions="true">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package be.vanlooverenkoen.appcenter_release_manager
package com.impaktfull.appcenter_release_manager

import android.app.DownloadManager
import android.content.BroadcastReceiver
Expand Down
Loading

0 comments on commit 062cb9e

Please sign in to comment.