Skip to content

Commit

Permalink
Move libraries into their own folder
Browse files Browse the repository at this point in the history
and remove sharedTest symlink hack. The shared tests are now a proper gradle module to avoid issues with using the same source files in different modules.
  • Loading branch information
grote authored and uniqx committed Sep 12, 2022
1 parent a6bce15 commit f607584
Show file tree
Hide file tree
Showing 181 changed files with 265 additions and 433 deletions.
14 changes: 7 additions & 7 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,12 @@ pages:
only:
- master
script:
- ./gradlew :download:dokkaHtml :index:dokkaHtml :database:dokkaHtml
- mkdir public
- touch public/index.html
- cp -r download/build/dokka/html public/download
- cp -r index/build/dokka/html public/index
- cp -r database/build/dokka/html public/database
- ./gradlew :libs:download:dokkaHtml :libs:index:dokkaHtml :libs:database:dokkaHtml
- mkdir -p public/libs
- touch public/index.html public/libs/index.html
- cp -r libs/download/build/dokka/html public/libs/download
- cp -r libs/index/build/dokka/html public/libs/index
- cp -r libs/database/build/dokka/html public/libs/database
artifacts:
paths:
- public
Expand All @@ -174,7 +174,7 @@ deploy_nightly:
- echo "<item>${CI_PROJECT_PATH}-nightly</item>" >> app/src/main/res/values/default_repos.xml
- echo "<item>${CI_PROJECT_URL}-nightly/raw/master/fdroid/repo</item>" >> app/src/main/res/values/default_repos.xml
- cat config/nightly-repo/repo.xml >> app/src/main/res/values/default_repos.xml
- export DB=`sed -n 's,.*version *= *\([0-9][0-9]*\).*,\1,p' database/src/main/java/org/fdroid/database/FDroidDatabase.kt`
- export DB=`sed -n 's,.*version *= *\([0-9][0-9]*\).*,\1,p' libs/database/src/main/java/org/fdroid/database/FDroidDatabase.kt`
- export versionCode=`printf '%d%05d' $DB $(date '+%s'| cut -b1-8)`
- sed -i "s,^\(\s*versionCode\) *[0-9].*,\1 $versionCode," app/build.gradle
# build the APKs!
Expand Down
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ from our site or [browse it in the repo](https://f-droid.org/app/org.fdroid.fdro
Core F-Droid functionality is split into re-usable libraries
to make using F-Droid technology in your own projects as easy as possible.

Note that all libraries are still in alpha stage.
While they work, their public APIs are still subject to change.

* [download](download) library for handling (multi-platform) HTTP download of repository indexes and APKs
[More information about libraries](libs/README.md)

## Contributing

Expand Down
4 changes: 3 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ android {
}

dependencies {
implementation project(":download")
implementation project(":libs:download")
implementation project(":libs:index")
implementation project(":libs:database")
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'androidx.preference:preference:1.1.1'
implementation 'androidx.gridlayout:gridlayout:1.0.0'
Expand Down
40 changes: 0 additions & 40 deletions download/README.md

This file was deleted.

202 changes: 0 additions & 202 deletions index/LICENSE

This file was deleted.

41 changes: 0 additions & 41 deletions index/README.md

This file was deleted.

File renamed without changes.
Loading

0 comments on commit f607584

Please sign in to comment.