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-05-14 07:54:10 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
acb2342be8825660040b19eca70a92d8ba62e00e
acb2342b
1 parent
f9da14d2
Update android demo project
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
20 additions
and
25 deletions
demo/android/app/build.gradle
demo/android/app/src/debug/AndroidManifest.xml
demo/android/app/src/main/AndroidManifest.xml
demo/android/app/src/main/java/net/nfet/printing_demo/MainActivity.java
demo/android/app/src/main/kotlin/net/nfet/printing_demo/MainActivity.kt
demo/android/app/src/main/res/values-night/styles.xml
demo/android/app/src/main/res/values/styles.xml
demo/android/app/src/profile/AndroidManifest.xml
demo/android/build.gradle
demo/android/gradle/wrapper/gradle-wrapper.properties
demo/android/app/build.gradle
View file @
acb2342
...
...
@@ -27,23 +27,18 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
compileSdkVersion
flutter
.
compileSdkVersion
ndkVersion
flutter
.
ndkVersion
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
kotlinOptions
{
jvmTarget
=
'1.8'
}
sourceSets
{
main
.
java
.
srcDirs
+=
'src/main/kotlin'
}
defaultConfig
{
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId
"net.nfet.printing_demo"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
minSdkVersion
flutter
.
minSdkVersion
targetSdkVersion
flutter
.
targetSdkVersion
versionCode
flutterVersionCode
.
toInteger
()
...
...
@@ -62,7 +57,3 @@ android {
flutter
{
source
'../..'
}
dependencies
{
implementation
"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
...
...
demo/android/app/src/debug/AndroidManifest.xml
View file @
acb2342
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"net.nfet.printing_demo"
>
<!-- Flutter needs it to communicate with the running application
<!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission
android:name=
"android.permission.INTERNET"
/>
...
...
demo/android/app/src/main/AndroidManifest.xml
View file @
acb2342
...
...
@@ -31,4 +31,6 @@
android:name=
"flutterEmbedding"
android:value=
"2"
/>
</application>
<uses-permission
android:name=
"android.permission.INTERNET"
/>
</manifest>
...
...
demo/android/app/src/main/java/net/nfet/printing_demo/MainActivity.java
0 → 100644
View file @
acb2342
package
net
.
nfet
.
printing_demo
;
import
io.flutter.embedding.android.FlutterActivity
;
public
class
MainActivity
extends
FlutterActivity
{
}
...
...
demo/android/app/src/main/kotlin/net/nfet/printing_demo/MainActivity.kt
deleted
100644 → 0
View file @
f9da14d
package net.nfet.printing_demo
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
demo/android/app/src/main/res/values-night/styles.xml
View file @
acb2342
...
...
@@ -3,7 +3,7 @@
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
<style
name=
"LaunchTheme"
parent=
"@android:style/Theme.Black.NoTitleBar"
>
<!-- Show a splash screen on the activity. Automatically removed when
Flutter
draws its first frame -->
the Flutter engine
draws its first frame -->
<item
name=
"android:windowBackground"
>
@drawable/launch_background
</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
...
...
demo/android/app/src/main/res/values/styles.xml
View file @
acb2342
...
...
@@ -3,7 +3,7 @@
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
<style
name=
"LaunchTheme"
parent=
"@android:style/Theme.Light.NoTitleBar"
>
<!-- Show a splash screen on the activity. Automatically removed when
Flutter
draws its first frame -->
the Flutter engine
draws its first frame -->
<item
name=
"android:windowBackground"
>
@drawable/launch_background
</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
...
...
demo/android/app/src/profile/AndroidManifest.xml
View file @
acb2342
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"net.nfet.printing_demo"
>
<!-- Flutter needs it to communicate with the running application
<!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission
android:name=
"android.permission.INTERNET"
/>
...
...
demo/android/build.gradle
View file @
acb2342
buildscript
{
ext
.
kotlin_version
=
'1.
3.5
0'
ext
.
kotlin_version
=
'1.
6.1
0'
repositories
{
google
()
mavenCentral
()
}
dependencies
{
classpath
'com.android.tools.build:gradle:
4.1.0
'
classpath
'com.android.tools.build:gradle:
7.1.2
'
classpath
"org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
...
...
demo/android/gradle/wrapper/gradle-wrapper.properties
View file @
acb2342
...
...
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-
6.7
-all.zip
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-
7.4
-all.zip
...
...
Please
register
or
login
to post a comment