Skip to content

Commit ae0f977

Browse files
committed
✨ Updated dependencies
1 parent cfd343f commit ae0f977

File tree

9 files changed

+133
-131
lines changed

9 files changed

+133
-131
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Please star⭐ the repo if you like what you see😊.
2020

2121
(or)
2222

23-
[![Download apk](https://img.shields.io/badge/Download-apk-green)](https://github.com/adityar224/FlutterMarkdownEditor/releases/download/1.2.0/MarkdownEditor-android-1.2.0.apk)
23+
[![Download apk](https://img.shields.io/badge/Download-apk-green)](https://github.com/adityar224/FlutterMarkdownEditor/releases/download/1.2.1/MarkdownEditor-android-1.2.1.apk)
2424

2525
## ✨ Features
2626

@@ -43,16 +43,16 @@ Please star⭐ the repo if you like what you see😊.
4343

4444
## 🔌 Plugins
4545

46-
|Name|Usage|
47-
|-|-|
48-
|[**flutter_markdown**](https://pub.dev/packages/flutter_markdown)|To render markdown text|
49-
|[**permission_handler**](https://pub.dev/packages/permission_handler)|To get storage permissions for opening and saving .md files|
50-
|[**url_launcher**](https://pub.dev/packages/url_launcher)|To launch markdown links|
51-
|[**file_picker**](https://pub.dev/packages/file_picker)|To open markdown files directly from the app|
52-
|[**expandable**](https://pub.dev/packages/expandable)|To create expandable header buttons|
53-
|[**flutter_localizations**](https://pub.dev/packages/flutter_localizations)|Internationalizing app|
54-
|[**intl**](https://pub.dev/packages/intl)|Provides internationalization and localization facilities|
55-
|[**flutter_lints**](https://pub.dev/packages/flutter_lints)|For linting|
46+
| Name | Usage |
47+
|-----------------------------------------------------------------------------|-------------------------------------------------------------|
48+
| [**flutter_markdown**](https://pub.dev/packages/flutter_markdown) | To render markdown text |
49+
| [**permission_handler**](https://pub.dev/packages/permission_handler) | To get storage permissions for opening and saving .md files |
50+
| [**url_launcher**](https://pub.dev/packages/url_launcher) | To launch markdown links |
51+
| [**file_picker**](https://pub.dev/packages/file_picker) | To open markdown files directly from the app |
52+
| [**expandable**](https://pub.dev/packages/expandable) | To create expandable header buttons |
53+
| [**flutter_localizations**](https://pub.dev/packages/flutter_localizations) | Internationalizing app |
54+
| [**intl**](https://pub.dev/packages/intl) | Provides internationalization and localization facilities |
55+
| [**flutter_lints**](https://pub.dev/packages/flutter_lints) | For linting |
5656

5757
## 🤓 Author
5858

android/app/build.gradle

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
plugins {
2+
id "com.android.application"
3+
id "kotlin-android"
4+
id "dev.flutter.flutter-gradle-plugin"
5+
}
6+
17
def localProperties = new Properties()
28
def localPropertiesFile = rootProject.file('local.properties')
39
if (localPropertiesFile.exists()) {
@@ -21,17 +27,14 @@ if (flutterVersionName == null) {
2127
flutterVersionName = '1.0'
2228
}
2329

24-
apply plugin: 'com.android.application'
25-
apply plugin: 'kotlin-android'
26-
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27-
2830
def keystoreProperties = new Properties()
2931
def keystorePropertiesFile = rootProject.file('key.properties')
3032
if (keystorePropertiesFile.exists()) {
3133
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
3234
}
3335

3436
android {
37+
namespace "com.adeeteya.markdown_editor"
3538
compileSdkVersion 33
3639
ndkVersion flutter.ndkVersion
3740

@@ -75,6 +78,4 @@ flutter {
7578
source '../..'
7679
}
7780

78-
dependencies {
79-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
80-
}
81+
dependencies {}

android/app/src/main/AndroidManifest.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
android:name="android.permission.READ_EXTERNAL_STORAGE"/>
66
<uses-permission
77
android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
8-
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
98
<application
109
android:label="Markdown Editor"
1110
android:name="${applicationName}"

android/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ buildscript {
66
}
77

88
dependencies {
9-
classpath 'com.android.tools.build:gradle:7.3.1'
109
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1110
}
1211
}

android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
org.gradle.jvmargs=-Xmx1536M
1+
org.gradle.jvmargs=-Xmx4G
22
android.useAndroidX=true
33
android.enableJetifier=true

android/settings.gradle

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,29 @@
1-
include ':app'
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"
7+
return flutterSdkPath
8+
}
9+
settings.ext.flutterSdkPath = flutterSdkPath()
210

3-
def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4-
def properties = new Properties()
11+
includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle")
512

6-
assert localPropertiesFile.exists()
7-
localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
13+
repositories {
14+
google()
15+
mavenCentral()
16+
gradlePluginPortal()
17+
}
818

9-
def flutterSdkPath = properties.getProperty("flutter.sdk")
10-
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11-
apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
19+
plugins {
20+
id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false
21+
}
22+
}
23+
24+
plugins {
25+
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
26+
id "com.android.application" version "7.3.0" apply false
27+
}
28+
29+
include ":app"

lib/main.dart

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ ThemeNotifier isDarkNotifier = ThemeNotifier(
3434
PlatformDispatcher.instance.platformBrightness == Brightness.dark);
3535

3636
class MarkdownEditorApp extends StatelessWidget {
37-
const MarkdownEditorApp({Key? key}) : super(key: key);
37+
const MarkdownEditorApp({super.key});
3838

3939
@override
4040
Widget build(BuildContext context) {
@@ -82,7 +82,7 @@ enum MenuItem {
8282
}
8383

8484
class Home extends StatefulWidget {
85-
const Home({Key? key}) : super(key: key);
85+
const Home({super.key});
8686

8787
@override
8888
State<Home> createState() => _HomeState();
@@ -125,29 +125,6 @@ class _HomeState extends State<Home> with WidgetsBindingObserver {
125125
if (!status.isGranted) {
126126
await Permission.storage.request();
127127
}
128-
await Permission.manageExternalStorage.status.then((status) {
129-
if (!status.isGranted) {
130-
showDialog(
131-
context: context,
132-
barrierDismissible: false,
133-
builder: (context) => AlertDialog(
134-
title: Text(AppLocalizations.of(context)!.storagePermission),
135-
content:
136-
Text(AppLocalizations.of(context)!.storagePermissionContent),
137-
actions: [
138-
TextButton(
139-
onPressed: () async {
140-
await Permission.manageExternalStorage
141-
.request()
142-
.then((_) => Navigator.pop(context));
143-
},
144-
child: Text(AppLocalizations.of(context)!.ok),
145-
),
146-
],
147-
),
148-
);
149-
}
150-
});
151128
}
152129

153130
void switchView() {

0 commit comments

Comments
 (0)