Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
foobnix committed Dec 7, 2023
1 parent 919c788 commit b0a1e08
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 46 deletions.
15 changes: 9 additions & 6 deletions Builder/all-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
./fonts.sh

#/usr/libexec/java_home -V
export JAVA_HOME=`/usr/libexec/java_home -v 17`
echo "================== "
java -version
echo "================== "
if [ "$(uname)" == "Darwin" ]; then
export JAVA_HOME=`/usr/libexec/java_home -v 17`
else
export JAVA_HOME=/home/dev/.local/share/JetBrains/Toolbox/apps/android-studio/jbr
fi
####################################

./link_to_mupdf_1.23.7.sh

Expand All @@ -18,18 +20,19 @@ cd ../
./gradlew assemblePdf_v2Release
./gradlew assembleEbookaRelease
./gradlew assemblePdf_classicRelease
./gradlew assembleFdroidRelease
#./gradlew assembleFdroidRelease
./gradlew assembleTts_readerRelease
./gradlew assembleEpub_readerRelease
./gradlew assembleProRelease

cd Builder
link_to_mupdf_1.11.sh
./link_to_mupdf_1.23.7.sh fdroid

cd ../

./gradlew assembleTts_readerRelease
./gradlew assembleEpub_readerRelease
./gradlew assembleFdroidRelease

./gradlew copyApks -Pbeta -Prelesae
./gradlew -stop
Expand Down
47 changes: 7 additions & 40 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -104,36 +104,22 @@ android {

flavorDimensions.add("version")
productFlavors {
old {
//minSdk 14
fdroid {
minSdk 16
dimension "version"
applicationId "com.foobnix.pdf.reader.a1"
applicationId "com.foobnix.pro.pdf.reader"
manifestPlaceholders = [
appName : "Old",
appIcon : "@mipmap/icon_pdf_reader",
appRoundIcon : "@mipmap/icon_pdf_reader",
appName : "Librera FD",
appIcon : "@mipmap/icon_pdf_pro",
appRoundIcon : "@mipmap/icon_pdf_pro",
appGdriveKey : "",
admobAppId : "",
admobBannerId: "",
admobFullId : "",
appSafeMode : "true"
]
versionNameSuffix '-fdroid'
}
beta {
dimension "version"
applicationId "com.foobnix.pdf.reader"
manifestPlaceholders = [
appName : "Beta ",
appIcon : "@mipmap/icon_pdf_reader",
appRoundIcon : "@mipmap/icon_pdf_reader",
appGdriveKey : librera_appGdriveKey,
admobAppId : librera_admobAppId,
admobBannerId: librera_admobBannerId,
admobFullId : librera_admobFullId,
appSafeMode : "true"
]
}

librera {
dimension "version"
applicationId "com.foobnix.pdf.reader"
Expand Down Expand Up @@ -246,22 +232,6 @@ android {
appSafeMode : "false"
]
}
fdroid {
minSdk 16
dimension "version"
applicationId "com.foobnix.pro.pdf.reader"
manifestPlaceholders = [
appName : "Librera FD",
appIcon : "@mipmap/icon_pdf_pro",
appRoundIcon : "@mipmap/icon_pdf_pro",
appGdriveKey : "",
admobAppId : "",
admobBannerId: "",
admobFullId : "",
appSafeMode : "true"
]
versionNameSuffix '-fdroid'
}
}

def abiCodes = ['armeabi-v7a': 0, 'arm64-v8a': 1, 'x86': 2, 'x86_64': 3]
Expand Down Expand Up @@ -321,7 +291,6 @@ android {

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
oldImplementation project(':pro')
proImplementation project(':pro')
fdroidImplementation project(':pro')
implementation project(':smartreflow')
Expand Down Expand Up @@ -375,7 +344,6 @@ dependencies {
/** Ads **/
def google_ads = "com.google.android.gms:play-services-ads:22.5.0"
libreraImplementation google_ads
betaImplementation google_ads
pdf_v2Implementation google_ads
ebookaImplementation google_ads
tts_readerImplementation google_ads
Expand All @@ -385,7 +353,6 @@ dependencies {

def messaging_ads = "com.google.android.ump:user-messaging-platform:2.1.0"
libreraImplementation messaging_ads
betaImplementation messaging_ads
pdf_v2Implementation messaging_ads
ebookaImplementation messaging_ads
tts_readerImplementation messaging_ads
Expand Down

0 comments on commit b0a1e08

Please sign in to comment.