Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
mobile Datovka
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
12
Issues
12
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Datovka projects
mobile Datovka
Commits
6a0ea5de
Commit
6a0ea5de
authored
Dec 13, 2018
by
Martin Straka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Android: Added build gradle and FileProvider
parent
e2a4aaa4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
70 additions
and
0 deletions
+70
-0
android/AndroidManifest.tmp
android/AndroidManifest.tmp
+8
-0
android/build.gradle
android/build.gradle
+58
-0
android/res/xml/filepaths.xml
android/res/xml/filepaths.xml
+4
-0
No files found.
android/AndroidManifest.tmp
View file @
6a0ea5de
...
...
@@ -76,6 +76,14 @@
<!-- For adding service(s) please check: https://wiki.qt.io/AndroidServices -->
<provider
android:name=
"android.support.v4.content.FileProvider"
android:authorities=
"${applicationId}.fileprovider"
android:grantUriPermissions=
"true"
android:exported=
"false"
>
<meta-data
android:name=
"android.support.FILE_PROVIDER_PATHS"
android:resource=
"@xml/filepaths"
/>
</provider>
</application>
<uses-sdk
android:minSdkVersion=
"16"
android:targetSdkVersion=
"26"
/>
...
...
android/build.gradle
0 → 100644
View file @
6a0ea5de
buildscript
{
repositories
{
jcenter
()
}
dependencies
{
classpath
'com.android.tools.build:gradle:2.2.3'
}
}
allprojects
{
repositories
{
jcenter
()
}
}
apply
plugin:
'com.android.application'
dependencies
{
compile
fileTree
(
dir:
'libs'
,
include:
[
'*.jar'
])
compile
'com.android.support:support-v4:25.3.1'
}
android
{
/*******************************************************
* The following variables:
* - androidBuildToolsVersion,
* - androidCompileSdkVersion
* - qt5AndroidDir - holds the path to qt android files
* needed to build any Qt application
* on Android.
*
* are defined in gradle.properties file. This file is
* updated by QtCreator and androiddeployqt tools.
* Changing them manually might break the compilation!
*******************************************************/
compileSdkVersion
androidCompileSdkVersion
.
toInteger
()
buildToolsVersion
androidBuildToolsVersion
sourceSets
{
main
{
manifest
.
srcFile
'AndroidManifest.xml'
java
.
srcDirs
=
[
qt5AndroidDir
+
'/src'
,
'src'
,
'java'
]
aidl
.
srcDirs
=
[
qt5AndroidDir
+
'/src'
,
'src'
,
'aidl'
]
res
.
srcDirs
=
[
qt5AndroidDir
+
'/res'
,
'res'
]
resources
.
srcDirs
=
[
'src'
]
renderscript
.
srcDirs
=
[
'src'
]
assets
.
srcDirs
=
[
'assets'
]
jniLibs
.
srcDirs
=
[
'libs'
]
}
}
lintOptions
{
abortOnError
false
}
}
android/res/xml/filepaths.xml
0 → 100644
View file @
6a0ea5de
<?xml version="1.0" encoding="utf-8"?>
<paths
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<external-path
name=
"external_files"
path=
"Datovka/Temp/"
/>
</paths>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment