Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
M.shaffar AiM
Nebulo
Commits
33c57b8d
Commit
33c57b8d
authored
Jan 18, 2022
by
Daniel Wolf
Browse files
Build own libs from source in fdroidofficial builds
parent
cd541aa2
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/build.gradle
View file @
33c57b8d
...
@@ -155,7 +155,7 @@ def frostnerdAdaptersVersion = "1.3.10"
...
@@ -155,7 +155,7 @@ def frostnerdAdaptersVersion = "1.3.10"
// for https://gitlab.com/fdroid/fdroiddata/-/merge_requests/9142
// for https://gitlab.com/fdroid/fdroiddata/-/merge_requests/9142
dependencies
{
dependencies
{
def
room_version
=
"2.4.
0
"
def
room_version
=
"2.4.
1
"
implementation
fileTree
(
dir:
'libs'
,
include:
[
'*.jar'
])
implementation
fileTree
(
dir:
'libs'
,
include:
[
'*.jar'
])
implementation
"org.jetbrains.kotlin:kotlin-stdlib-jdk8:$KOTLIN_VERSION"
implementation
"org.jetbrains.kotlin:kotlin-stdlib-jdk8:$KOTLIN_VERSION"
...
@@ -163,21 +163,35 @@ dependencies {
...
@@ -163,21 +163,35 @@ dependencies {
implementation
'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2'
implementation
'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2'
i
mplementation
"com.frostnerd.utilskt:lifecycle:$frostnerdLifecycleVersion"
// https://git.frostnerd.com/AndroidUtils/lifecyclekt
storeI
mplementation
"com.frostnerd.utilskt:lifecycle:$frostnerdLifecycleVersion"
// https://git.frostnerd.com/AndroidUtils/lifecyclekt
i
mplementation
"com.frostnerd.utilskt:preferences:$frostnerdPreferencesVersion"
// https://git.frostnerd.com/AndroidUtils/preferenceskt
storeI
mplementation
"com.frostnerd.utilskt:preferences:$frostnerdPreferencesVersion"
// https://git.frostnerd.com/AndroidUtils/preferenceskt
i
mplementation
"com.frostnerd.utilskt:navigationdraweractivity:$frostnerdNavigationVersion"
// https://git.frostnerd.com/AndroidUtils/navigationdraweractivity
storeI
mplementation
"com.frostnerd.utilskt:navigationdraweractivity:$frostnerdNavigationVersion"
// https://git.frostnerd.com/AndroidUtils/navigationdraweractivity
i
mplementation
"com.frostnerd.utilskt:encrypteddnstunnelproxy:$frostnerdDnsProxyVersion"
// https://git.frostnerd.com/AndroidUtils/encrypteddnstunnelproxy
storeI
mplementation
"com.frostnerd.utilskt:encrypteddnstunnelproxy:$frostnerdDnsProxyVersion"
// https://git.frostnerd.com/AndroidUtils/encrypteddnstunnelproxy
i
mplementation
"com.frostnerd.utilskt:general:$frostnerdGeneralVersion"
// https://git.frostnerd.com/AndroidUtils/generalkt
storeI
mplementation
"com.frostnerd.utilskt:general:$frostnerdGeneralVersion"
// https://git.frostnerd.com/AndroidUtils/generalkt
i
mplementation
"com.frostnerd.utilskt:adapters:$frostnerdAdaptersVersion"
// https://git.frostnerd.com/AndroidUtils/Adapters
storeI
mplementation
"com.frostnerd.utilskt:adapters:$frostnerdAdaptersVersion"
// https://git.frostnerd.com/AndroidUtils/Adapters
storeImplementation
'com.google.android.gms:play-services-cronet:18.0.0'
fdroidImplementation
"com.frostnerd.utilskt:lifecycle:$frostnerdLifecycleVersion"
// https://git.frostnerd.com/AndroidUtils/lifecyclekt
fdroidImplementation
'com.google.android.gms:play-services-cronet:18.0.0'
fdroidImplementation
"com.frostnerd.utilskt:preferences:$frostnerdPreferencesVersion"
// https://git.frostnerd.com/AndroidUtils/preferenceskt
fdroidImplementation
"com.frostnerd.utilskt:navigationdraweractivity:$frostnerdNavigationVersion"
// https://git.frostnerd.com/AndroidUtils/navigationdraweractivity
fdroidImplementation
"com.frostnerd.utilskt:encrypteddnstunnelproxy:$frostnerdDnsProxyVersion"
// https://git.frostnerd.com/AndroidUtils/encrypteddnstunnelproxy
fdroidImplementation
"com.frostnerd.utilskt:general:$frostnerdGeneralVersion"
// https://git.frostnerd.com/AndroidUtils/generalkt
fdroidImplementation
"com.frostnerd.utilskt:adapters:$frostnerdAdaptersVersion"
// https://git.frostnerd.com/AndroidUtils/Adapters
fdroidofficialImplementation
project
(
path:
':lifecycle:library'
)
// https://git.frostnerd.com/AndroidUtils/lifecyclekt
fdroidofficialImplementation
project
(
path:
':preferences:library'
)
// https://git.frostnerd.com/AndroidUtils/preferenceskt
fdroidofficialImplementation
project
(
path:
':navigationdraweractivity:library'
)
// https://git.frostnerd.com/AndroidUtils/navigationdraweractivity
fdroidofficialImplementation
"com.frostnerd.utilskt:encrypteddnstunnelproxy:$frostnerdDnsProxyVersion"
// https://git.frostnerd.com/AndroidUtils/encrypteddnstunnelproxy
fdroidofficialImplementation
project
(
path:
':general:library'
)
// https://git.frostnerd.com/AndroidUtils/generalkt
fdroidofficialImplementation
project
(
path:
':adapters:library'
)
storeImplementation
'com.google.android.gms:play-services-cronet:18.0.1'
fdroidImplementation
'com.google.android.gms:play-services-cronet:18.0.1'
implementation
'androidx.work:work-runtime:2.7.1'
implementation
'androidx.work:work-runtime:2.7.1'
implementation
'androidx.appcompat:appcompat:1.4.
0
'
implementation
'androidx.appcompat:appcompat:1.4.
1
'
implementation
"androidx.preference:preference:1.1.1"
implementation
"androidx.preference:preference:1.1.1"
implementation
"com.google.android.material:material:1.
4
.0"
implementation
"com.google.android.material:material:1.
5
.0"
implementation
'androidx.localbroadcastmanager:localbroadcastmanager:1.1.0
-rc01
'
implementation
'androidx.localbroadcastmanager:localbroadcastmanager:1.1.0'
implementation
"androidx.core:core-ktx:1.7.0"
implementation
"androidx.core:core-ktx:1.7.0"
implementation
"androidx.room:room-runtime:$room_version"
implementation
"androidx.room:room-runtime:$room_version"
...
@@ -195,8 +209,8 @@ dependencies {
...
@@ -195,8 +209,8 @@ dependencies {
implementation
'com.squareup.okhttp3:okhttp-dnsoverhttps:4.9.3'
implementation
'com.squareup.okhttp3:okhttp-dnsoverhttps:4.9.3'
implementation
'com.github.AppIntro:AppIntro:6.1.0'
implementation
'com.github.AppIntro:AppIntro:6.1.0'
storeImplementation
'com.google.android.play:core:1.10.
2
'
storeImplementation
'com.google.android.play:core:1.10.
3
'
fdroidImplementation
'com.google.android.play:core:1.10.
2
'
fdroidImplementation
'com.google.android.play:core:1.10.
3
'
}
}
def
getGitCommitHash
()
{
def
getGitCommitHash
()
{
...
...
settings.gradle
View file @
33c57b8d
buildscript
{
buildscript
{
repositories
{
repositories
{
mavenCentral
()
jcenter
()
jcenter
()
}
}
}
}
include
':app'
include
':app'
def
cloneRepoIfNotExists
(
String
repoUrl
,
String
libName
)
{
if
(!
file
(
"libs/$libName"
).
exists
()){
Runtime
.
getRuntime
().
exec
(
"git clone --depth 1 $repoUrl libs/$libName"
)
}
}
def
includeLibrary
(
String
repoUrl
,
String
libName
)
{
cloneRepoIfNotExists
(
repoUrl
,
libName
)
include
":$libName"
,
":$libName:library"
project
(
":$libName"
).
projectDir
=
new
File
(
"./libs/$libName"
)
project
(
":$libName:library"
).
projectDir
=
new
File
(
"./libs/$libName/library"
)
}
if
(
gradle
.
startParameter
.
taskNames
.
stream
().
anyMatch
(
task
->
task
.
toLowerCase
().
contains
(
"fdroidofficial"
)))
{
includeLibrary
(
"https://git.frostnerd.com/AndroidUtils/Adapters"
,
"adapters"
)
includeLibrary
(
"https://git.frostnerd.com/AndroidUtils/lifecyclekt"
,
"lifecycle"
)
includeLibrary
(
"https://git.frostnerd.com/AndroidUtils/preferenceskt"
,
"preferences"
)
includeLibrary
(
"https://git.frostnerd.com/AndroidUtils/navigationdraweractivity"
,
"navigationdraweractivity"
)
includeLibrary
(
"https://git.frostnerd.com/AndroidUtils/generalkt"
,
"general"
)
}
Write
Preview
Supports
Markdown
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