Skip to content

Commit

Permalink
Merge branch 'master' into androidx
Browse files Browse the repository at this point in the history
  • Loading branch information
eltos authored Mar 15, 2019
2 parents 1f9d097 + bd762b5 commit 21aafb6
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

# Built application files
*.apk
!/simpledialogfragment_demo_v2.4.apk
*.ap_

# Files for the ART/Dalvik VM
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ A new approach of result handling ensures data integrity over rotation changes,

[Version history and JavaDoc API](https://eltos.github.io/SimpleDialogFragments/)
[Screenshots](https://github.com/eltos/SimpleDialogFragments/wiki/Showcase)
[Demo APK](https://github.com/eltos/SimpleDialogFragments/releases/download/v2.4/simpledialogfragments_testApp_v2.4.apk)
[Demo APK](https://github.com/eltos/SimpleDialogFragments/releases/download/v3.1/testApp.apk)

### Features

Expand Down
24 changes: 23 additions & 1 deletion publish
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
## - Update version code in build.gradle!
##
## - Run
## $ ./gradlew :testApp:assembleRelease
##
## - Run
## $ ./gradlew clean build install
## This may fail during javadoc generation. However, the javadoc will most likely have been
## generated in simpledialogfragment/build/docs/javadoc/
Expand All @@ -28,6 +31,7 @@
##############################################################################



# Check for config in local.properties
######################################
if ! grep -q "^bintray.user=" "local.properties" ||
Expand Down Expand Up @@ -57,6 +61,22 @@ if [[ $OK =~ ^[Nn].*$ ]]; then
fi


# Assemble testApp
##################
echo "Assemble testApp..."
APP="testApp/build/outputs/apk/debug/testApp-debug.apk"
rm -f "$APP"
./gradlew :testApp:assembleDebug
if [ -f "$APP" ]; then
cp -f "$APP" "testApp.apk"
echo -e "\e[32mtestApp created\e[0m"
else
echo -e "\e[31mtestApp not created!\e[0m"
exit 1
fi



# Build
#######
echo "Clean, build and install..."
Expand Down Expand Up @@ -110,13 +130,15 @@ if [ $BUILD -eq 0 ]; then
if [ $? -eq 0 ]; then

# Update README.md
sed -i 's/:simpledialogfragment:[0-9.]*/:simpledialogfragment:'"$LVN"'/' README.md
sed -i 's|:simpledialogfragment:[0-9.]*|:simpledialogfragment:'"$LVN"'|' README.md
sed -i 's|releases/download/v[0-9.]*/|releases/download/v'"$AVN"'/|' README.md

echo -e "\e[32mSUCCESS :)\e[0m"
echo "You still need to publish the files uploaded."
xdg-open https://bintray.com/eltos/simpledialogfragments/SimpleDialogFragment
else
echo -e "\e[31mUpload failed :(\e[0m"
exit 1
fi
fi
else
Expand Down

0 comments on commit 21aafb6

Please sign in to comment.