[READ-ONLY] Mirror of https://github.com/probablykasper/notifier. Android app for scheduling notifications
android app flutter notifications
0

Configure Feed

Select the types of activity you want to include in your feed.

Set up code signing

Kasper (Jun 3, 2022, 2:22 AM +0200) 506e5b65 90a1059f

+39 -19
+17 -8
README.md
··· 22 22 1. Install Flutter 23 23 2. Run `flutter pub get` 24 24 25 - All you really need is to [install Flutter](https://flutter.dev/docs/get-started/install). Just run `flutter run` to start debugging the app, like you would with any Flutter app. 25 + ## Code signing 26 + Create a `android/key.properties` that looks like this: 27 + ``` 28 + storePassword=example 29 + keyPassword=example 30 + keyAlias=key 31 + storeFile=/path/to/keystore.jks 32 + ``` 26 33 27 - The app is built using the [scoped_model](https://pub.dev/packages/scoped_model) package, which is worth knowing about. Other than that, it pretty much works like any basic Flutter app, so there's not much else that needs to be said. 34 + Follow Flutter's [Android signing guide](https://docs.flutter.dev/deployment/android#signing-the-app) for more details. 28 35 29 36 ### Generate app icon 30 37 ··· 34 41 35 42 Follow [these steps](https://flutter.dev/docs/deployment/android). 36 43 37 - ### Releasing a new version 38 - 39 - 1. Specify a version and build number in `pubspec.yaml`, or use `--build-name` and `--build-number` 40 - 2. Generate Android apk: `flutter build apk` 41 - 3. Rename the output file to `notifier-x.y.z.apk` 42 - 4. Commit with the message `x.y.z` and add a tag/release to it with the output file attached. 44 + ### Release new version 45 + 1. Update `CHANGELOG.md` 46 + 2. Bump the version number in `pubspec.yaml` 47 + 3. Run `flutter analyze && flutter test` 48 + 4. Run `flutter build apk` 49 + 5. Rename the output file to `notifier-x.y.z.apk` 50 + 6. Create a git tag in the format `v#.#.#` 51 + 7. Create a GitHub release with the release notes and `.apk`
+20 -9
android/app/build.gradle
··· 25 25 apply plugin: 'kotlin-android' 26 26 apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 27 28 + def keystoreProperties = new Properties() 29 + def keystorePropertiesFile = rootProject.file('key.properties') 30 + if (keystorePropertiesFile.exists()) { 31 + keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) 32 + } 33 + 28 34 android { 29 35 compileSdkVersion flutter.compileSdkVersion 30 36 ndkVersion flutter.ndkVersion ··· 43 49 } 44 50 45 51 defaultConfig { 46 - // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 47 - applicationId "com.example.notifier" 52 + applicationId "space.kasper.notifier" 48 53 // You can update the following values to match your application needs. 49 54 // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration. 50 55 minSdkVersion 21 ··· 53 58 versionName flutterVersionName 54 59 } 55 60 56 - buildTypes { 57 - release { 58 - // TODO: Add your own signing config for the release build. 59 - // Signing with the debug keys for now, so `flutter run --release` works. 60 - signingConfig signingConfigs.debug 61 - } 62 - } 61 + signingConfigs { 62 + release { 63 + keyAlias keystoreProperties['keyAlias'] 64 + keyPassword keystoreProperties['keyPassword'] 65 + storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null 66 + storePassword keystoreProperties['storePassword'] 67 + } 68 + } 69 + buildTypes { 70 + release { 71 + signingConfig signingConfigs.release 72 + } 73 + } 63 74 } 64 75 65 76 flutter {
+1 -1
android/app/src/main/AndroidManifest.xml
··· 8 8 <!-- End Alarm Manager --> 9 9 10 10 <application 11 - android:label="notifier" 11 + android:label="Notifier" 12 12 android:name="${applicationName}" 13 13 android:icon="@mipmap/launcher_icon"> 14 14 <activity
+1 -1
pubspec.yaml
··· 15 15 # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 16 16 # Read more about iOS versioning at 17 17 # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 18 - version: 1.0.0+1 18 + version: 1.0.0 19 19 20 20 environment: 21 21 sdk: ">=2.17.1 <3.0.0"