Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
dart_pdf
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
David PHAM-VAN
2022-01-13 07:02:14 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
857316349ac4e5abffdc6b0dd0680089f3862cb5
85731634
1 parent
954ad44f
Update android projects
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
31 additions
and
24 deletions
demo/android/.gitignore
demo/android/app/build.gradle
demo/android/app/src/main/AndroidManifest.xml
demo/android/app/src/main/res/values-night/styles.xml
demo/android/app/src/main/res/values/styles.xml
demo/android/build.gradle
printing/CHANGELOG.md
printing/android/build.gradle
printing/android/gradle.properties
demo/android/.gitignore
View file @
8573163
...
...
@@ -9,3 +9,5 @@ GeneratedPluginRegistrant.java
# Remember to never publicly share your keystore.
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
key.properties
**/*.keystore
**/*.jks
...
...
demo/android/app/build.gradle
View file @
8573163
...
...
@@ -26,7 +26,16 @@ apply plugin: 'kotlin-android'
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
compileSdkVersion
30
compileSdkVersion
flutter
.
compileSdkVersion
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
kotlinOptions
{
jvmTarget
=
'1.8'
}
sourceSets
{
main
.
java
.
srcDirs
+=
'src/main/kotlin'
...
...
@@ -35,8 +44,8 @@ android {
defaultConfig
{
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId
"net.nfet.printing_demo"
minSdkVersion
16
targetSdkVersion
30
minSdkVersion
flutter
.
minSdkVersion
targetSdkVersion
flutter
.
targetSdkVersion
versionCode
flutterVersionCode
.
toInteger
()
versionName
flutterVersionName
}
...
...
demo/android/app/src/main/AndroidManifest.xml
View file @
8573163
...
...
@@ -2,9 +2,11 @@
package=
"net.nfet.printing_demo"
>
<application
android:label=
"printing_demo"
android:name=
"${applicationName}"
android:icon=
"@mipmap/ic_launcher"
>
<activity
android:name=
".MainActivity"
android:exported=
"true"
android:launchMode=
"singleTop"
android:theme=
"@style/LaunchTheme"
android:configChanges=
"orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
...
...
@@ -18,15 +20,6 @@
android:name=
"io.flutter.embedding.android.NormalTheme"
android:resource=
"@style/NormalTheme"
/>
<!-- Displays an Android View that continues showing the launch screen
Drawable until Flutter paints its first frame, then this splash
screen fades out. A splash screen is useful to avoid any visual
gap between the end of Android's launch screen and the painting of
Flutter's first frame. -->
<meta-data
android:name=
"io.flutter.embedding.android.SplashScreenDrawable"
android:resource=
"@drawable/launch_background"
/>
<intent-filter>
<action
android:name=
"android.intent.action.MAIN"
/>
<category
android:name=
"android.intent.category.LAUNCHER"
/>
...
...
demo/android/app/src/main/res/values-night/styles.xml
View file @
8573163
...
...
@@ -10,7 +10,7 @@
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style
name=
"NormalTheme"
parent=
"@android:style/Theme.Black.NoTitleBar"
>
<item
name=
"android:windowBackground"
>
?android:colorBackground
</item>
...
...
demo/android/app/src/main/res/values/styles.xml
View file @
8573163
...
...
@@ -10,7 +10,7 @@
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style
name=
"NormalTheme"
parent=
"@android:style/Theme.Light.NoTitleBar"
>
<item
name=
"android:windowBackground"
>
?android:colorBackground
</item>
...
...
demo/android/build.gradle
View file @
8573163
...
...
@@ -2,7 +2,7 @@ buildscript {
ext
.
kotlin_version
=
'1.3.50'
repositories
{
google
()
jcenter
()
mavenCentral
()
}
dependencies
{
...
...
@@ -14,7 +14,7 @@ buildscript {
allprojects
{
repositories
{
google
()
jcenter
()
mavenCentral
()
}
}
...
...
printing/CHANGELOG.md
View file @
8573163
...
...
@@ -11,6 +11,7 @@
-
Add a default theme initializer
-
Use RENDER_MODE_FOR_DISPLAY on Android
-
Enable usage of printer's settings on Windows
[
Alban Lecuivre
]
-
Update android projects (mavenCentral, compileSdkVersion 30, gradle:4.1.0)
## 5.6.6
...
...
printing/android/build.gradle
View file @
8573163
group
'net.nfet.flutter.printing'
version
'1.0
-SNAPSHOT
'
version
'1.0'
buildscript
{
repositories
{
google
()
jcenter
()
mavenCentral
()
}
dependencies
{
classpath
'com.android.tools.build:gradle:
3.5
.0'
classpath
'com.android.tools.build:gradle:
4.1
.0'
}
}
rootProject
.
allprojects
{
repositories
{
google
()
jcenter
()
mavenCentral
()
}
}
apply
plugin:
'com.android.library'
android
{
compileSdkVersion
29
compileSdkVersion
30
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
defaultConfig
{
minSdkVersion
16
...
...
printing/android/gradle.properties
deleted
100644 → 0
View file @
954ad44
org.gradle.jvmargs
=
-Xmx1536M
android.enableJetifier
=
true
android.useAndroidX
=
true
Please
register
or
login
to post a comment