Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
283 commits
Select commit Hold shift + click to select a range
f44aa41
Replace deprecated navigation from:
ruckustboom Oct 17, 2023
5ec7a32
Merge pull request #5 from Ethran/gestures
Ethran Dec 25, 2024
94d9549
Initial pass at customizing gestures
ruckustboom May 25, 2023
7f3c3e3
Incorporate logging changes
ruckustboom Jun 15, 2023
85ea777
Merge pull request #6 from Ethran/gestures
Ethran Dec 25, 2024
33b64e8
added backgound colors for tools in toolbar, representing curent stat…
Ethran Dec 25, 2024
2f5f66a
Corrected pdf export, now it should export to Internal storage/Docume…
Ethran Dec 25, 2024
5869194
Added line drawing, maybe in future it will be shape drawer? It is pr…
Ethran Dec 25, 2024
5c9ee87
cleaned code for lines
Ethran Dec 25, 2024
45db6bc
changed icon for library to home
Ethran Dec 25, 2024
5d04263
added previews for notebooks
Ethran Dec 25, 2024
f42245d
add screenshots
Ethran Dec 25, 2024
6b856f6
added black color, and pdf export is now handle with dispatchers
Ethran Dec 26, 2024
f756202
white on gray in toolbar visibility improvments
Ethran Dec 26, 2024
4e36a3c
Merge remote-tracking branch 'refs/remotes/origin/dragarok' into drag…
Ethran Dec 26, 2024
f305565
hanting for bugs
Ethran Dec 26, 2024
7375f45
initial (messy) work on bringing support for inserting images. Image …
Ethran Dec 26, 2024
44489f2
Images now are working, after inserting image it can be moved, images…
Ethran Dec 27, 2024
d58621e
Merge pull request #9 from Ethran/images
Ethran Dec 27, 2024
875abeb
images in readme
Ethran Dec 27, 2024
31d11bb
Revert "updated and its running"
Ethran Dec 27, 2024
2228271
Revert "updated onyx sdk"
Ethran Dec 27, 2024
3ee37cf
Revert "images in readme"
Ethran Dec 27, 2024
4345af7
Revert "Update readme.md"
Ethran Dec 27, 2024
521285e
Revert "docs: add list of supported devices from tverbeke Tobias Verb…
Ethran Dec 27, 2024
e46c5b5
Merge pull request #10 from Ethran/dragarok
Ethran Dec 27, 2024
f5b130b
quick fix for opening menu for notebook
Ethran Dec 27, 2024
5939a62
NeoTools are cousing vector out of bound and are slow
Ethran Dec 27, 2024
0decc7b
removed neotools
Ethran Dec 27, 2024
323bcc3
changed dot configuration, visual change only
Ethran Dec 29, 2024
7e060ac
move refresh after drawing gesture.
Ethran Dec 29, 2024
ddff3bf
gestures time tweaks
Ethran Dec 29, 2024
ccdb3c4
changed refresh funtion on history action
Ethran Dec 29, 2024
cd51388
Created fountain pen drawing function
Ethran Dec 30, 2024
6df51d1
fixed isues with undo not working on most recent stroke
Ethran Dec 31, 2024
8363ecf
improved gesture, allow for slight movment with two fingers touch
Ethran Dec 31, 2024
8681aaa
added some logging and moved image handling to separate funtion.
Ethran Jan 1, 2025
9f747a0
added massage when there is nothing to undo
Ethran Jan 1, 2025
80c1670
added hold gesture for moving images
Ethran Jan 1, 2025
f388171
snack added for images selection by holding
Ethran Jan 1, 2025
c0c29c4
small changes
Ethran Jan 1, 2025
2dfe6fe
changed default gestures, and notebooks respect default page background
Ethran Jan 4, 2025
3e0436c
hold gesture improvment
Ethran Jan 5, 2025
2433c70
make pdf exports A4ish
Ethran Jan 5, 2025
fd40235
code clean up
Ethran Jan 5, 2025
04da0b1
moved buildConfig true
Ethran Jan 5, 2025
88193bc
fixed sharing of selection
Ethran Jan 5, 2025
ba47347
improved image handling
Ethran Jan 5, 2025
dc497bd
fixed image selection
Ethran Jan 5, 2025
a3b14d3
Merge pull request #15 from Ethran/dev
Ethran Jan 6, 2025
6c38d98
deleting images
Ethran Jan 6, 2025
48f5e34
also delete strokes
Ethran Jan 6, 2025
139c994
change size of selected images
Ethran Jan 7, 2025
79f36f8
Update readme.md
Ethran Jan 7, 2025
e744799
allow screen rotation
Ethran Jan 11, 2025
6464869
small formating changes
Ethran Jan 11, 2025
4d26702
only one vertical/horizontal swipe gesture at once
Ethran Jan 11, 2025
62c7e79
Trying to fix not visible strokes, and maybe instead of exporting to …
Ethran Jan 11, 2025
c46c1a6
code cleanup and reformating
Ethran Jan 13, 2025
ea8b91c
Update preview.yml
Ethran Jan 15, 2025
8726411
Update readme.md
Ethran Jan 15, 2025
3bb7372
when deleting selected strokes, the strokes ware not added to history…
Ethran Jan 15, 2025
7cc26e2
Update preview.yml
Ethran Jan 15, 2025
882fad8
Update preview.yml
Ethran Jan 15, 2025
de51637
Update preview.yml
Ethran Jan 16, 2025
667a37d
Update preview.yml
Ethran Jan 16, 2025
bfb66e1
Update preview.yml
Ethran Jan 16, 2025
7e4defb
Update preview.yml
Ethran Jan 16, 2025
86885db
Merge branch 'main' into dev
Ethran Jan 16, 2025
1361758
Modify the readme me to include information's about this fork
Ethran Jan 16, 2025
08e698b
marged readme.md from dev branch
Ethran Jan 16, 2025
0473102
the return null is necessary
Ethran Jan 17, 2025
832456b
the return null is necessary
Ethran Jan 17, 2025
dce1ee2
Undo no longer waits 500ms to complete.
Ethran Jan 18, 2025
d408f73
Add image at center of page (not on top)
Ethran Jan 18, 2025
325f3a2
draw images, then strokes.
Ethran Jan 18, 2025
c0a66c8
Merge remote-tracking branch 'origin/dev' into dev
Ethran Jan 18, 2025
576f274
fixed wrong placement of images
Ethran Jan 18, 2025
47f12b5
fixed issue with selecting strokes when y is bigger then int16.MAX_VALUE
Ethran Jan 18, 2025
415266e
add margin in landscape orientation
Ethran Jan 18, 2025
8091e04
add to next version timestamp
Ethran Jan 18, 2025
7f85485
Merge pull request #17 from Ethran/dev
Ethran Jan 18, 2025
68caf8d
quick fix for accessing database - in future it should be change to o…
Ethran Jan 19, 2025
1950bd5
refactor code for resolving gestures
Ethran Jan 24, 2025
a19a262
add buttons for new page/notebook/folder
Ethran Jan 24, 2025
267babf
changed order of notebooks
Ethran Jan 24, 2025
da16241
removed top bar buttons for adding folders
Ethran Jan 24, 2025
79e53ec
changed position of share selection button
Ethran Jan 24, 2025
1356d8b
added message when trying to resize strokes
Ethran Jan 24, 2025
392003a
moved color changing to tool settings
Ethran Jan 25, 2025
4ed4a83
hide icon change, and full enable full screen
Ethran Jan 25, 2025
65febb2
improvements on gesture recognition: time and tolerances
Ethran Jan 25, 2025
831bc86
selecting rectangle by holding and dragging
Ethran Jan 26, 2025
fb9fd19
marked where there was issue.
Ethran Jan 26, 2025
75a1620
added Note Max to supported device table
jdkruzr Jan 26, 2025
143ceb5
Merge pull request #20 from jdkruzr/patch-1
Ethran Jan 26, 2025
5a47da5
Allow moving notebooks into folders
Ethran Jan 27, 2025
813bfa3
partially fix issue with selection
Ethran Jan 27, 2025
6a65d50
workaround refreshing UI
Ethran Jan 27, 2025
1a5ce3a
enable hardwareAccelerated in Manifest - needs testing.
Ethran Jan 27, 2025
1978170
code quality and extended time for snack for debugging peruses
Ethran Jan 28, 2025
ac88b97
moved ShowConfirmationDialog and ShowFolderSelectionDialog to separa…
Ethran Jan 28, 2025
1c6448b
moving interface improved
Ethran Jan 29, 2025
c4f66ac
better error handling when we do not have permission for image (app r…
Ethran Jan 29, 2025
92297a2
unnecessary comment removed
Ethran Jan 31, 2025
c40454d
add min time for two finger touch (20ms)
Ethran Jan 31, 2025
24b4916
added minimal time between clicks in double click (20ms)
Ethran Feb 1, 2025
adfd67d
change log message to be more descriptive
Ethran Feb 9, 2025
4cd109b
added debug mode -- highlight changes on screen
Ethran Feb 9, 2025
73aa1a6
images are moved to documents/notabledb/images for storage.
Ethran Feb 9, 2025
3292154
Quick fix for failed action caused by unresolved reference.
Ethran Feb 9, 2025
9f7e420
idea file changed by ide
Ethran Feb 15, 2025
59dce0f
packages updates
Ethran Feb 15, 2025
c2d17ef
removed removeLast and removeFirst, as it is depreciated.
Ethran Feb 15, 2025
5a82931
Maybe it will fix issue#24
Ethran Feb 15, 2025
8861577
Merge pull request #23 from Ethran/update_packages
Ethran Feb 20, 2025
44d741f
Maybe it will fix issue 24 attempt 2
Ethran Feb 20, 2025
7c6e02d
Increased stroke width of rectangle edge in debug mode.
Ethran Feb 25, 2025
0625707
Remove threading from stroke drawing to address UI freeze
Ethran Feb 25, 2025
5730db2
fixed bug with resizing images.
Ethran Feb 25, 2025
86a472b
Add copy selection button.
Ethran Feb 25, 2025
970a26f
Implement coping for images.
Ethran Feb 25, 2025
d8f2c2c
bug fixes:
Ethran Feb 25, 2025
8e244d9
code cleanup
Ethran Feb 25, 2025
904194d
implemented history for images
Ethran Feb 26, 2025
d6ae120
removed unnecessary adding to history
Ethran Feb 26, 2025
17b4d76
Use Mutex to synchronize drawing operations and move drawing to main …
Ethran Feb 26, 2025
26756b9
Changed how refresh UI works
Ethran Feb 28, 2025
7ebc463
Refreshing UI only when last gesture was hold and select. It is not t…
Ethran Feb 28, 2025
875a7e0
minor improvement to refreshUiSuspend
Ethran Feb 28, 2025
515d0cf
check for overlap, not containment in rectangle selection.
Ethran Feb 28, 2025
f1ee572
correctly fixed selection by hold and drag.
Ethran Feb 28, 2025
0406e10
rename package in page.kt
Ethran Feb 28, 2025
662e2c7
refactor of page.kt, moved some functions to export.kt.
Ethran Feb 28, 2025
123c540
package name change
Ethran Feb 28, 2025
0949ae4
removed unused variable.
Ethran Feb 28, 2025
428c996
some IDE changes, those files should not be in git repository
Ethran Feb 28, 2025
152ea04
Merge pull request #26 from Ethran/dev
Ethran Feb 28, 2025
b9d05a5
quick fix for hold and select.
Ethran Mar 1, 2025
35b51be
added opt in for NeoTools.
Ethran Mar 1, 2025
97c0adb
Update readme.md
Ethran Mar 2, 2025
65c3fdd
update readme
Ethran Mar 2, 2025
fd80381
update packages.
Ethran Mar 2, 2025
f86f86a
Rename package name form com.olup.notable to com.ethran.notable
Ethran Mar 2, 2025
9679065
make packages name much dictionaries
Ethran Mar 2, 2025
0f57eb8
Package name change. Update Log dependency.
Ethran Mar 2, 2025
4e59850
Moved shipbook secrets to different to environment variable.
Ethran Mar 2, 2025
fb32b6e
Update preview.yml
Ethran Mar 2, 2025
d648001
Merge pull request #29 from Ethran/build-next---shipbook-secret
Ethran Mar 2, 2025
ce46973
fixed fullscreen on newer devices.
Ethran Mar 2, 2025
cb353c8
Merge remote-tracking branch 'origin/main' into rename
Ethran Mar 2, 2025
6a36b9f
Rename to com.ethran.notable
Ethran Mar 2, 2025
c9953ae
firebase added
Ethran Mar 2, 2025
9efd25b
debuging…
Ethran Mar 2, 2025
9d8742e
Update preview.yml
Ethran Mar 2, 2025
be9af9b
Update preview.yml
Ethran Mar 3, 2025
7f86f10
Update preview.yml
Ethran Mar 3, 2025
0435b95
Update release.yml
Ethran Mar 3, 2025
ebc6ec5
Merge pull request #31 from Ethran/dev
Ethran Mar 3, 2025
1550c34
preparing for release
Ethran Mar 3, 2025
66354e1
added for testing trigger workflow_dispatch
Ethran Mar 3, 2025
2f675a8
Merge pull request #32 from Ethran/dev
Ethran Mar 3, 2025
962c1a3
Fixed releasing Action (#33)
Ethran Mar 4, 2025
679fe10
update preview github action
Ethran Mar 4, 2025
d221425
fixed java.lang.NullPointerException.
Ethran Mar 5, 2025
79f13e8
corrected github action.
Ethran Mar 5, 2025
3d27b37
attempt at caching why image loading fails sometimes.
Ethran Mar 5, 2025
48df13d
fixed unselecting line tool
Ethran Mar 5, 2025
cc78038
fixed action
Ethran Mar 5, 2025
88304bf
fixing action attempt 2
Ethran Mar 5, 2025
8ac6296
fixed release github action
Ethran Mar 5, 2025
2589770
add hexagon grid page background option
meta-meta Mar 6, 2025
557f349
only on manual trigger release.yml and only on change to code preview…
Ethran Mar 6, 2025
a1141b3
Merge pull request #36 from Ethran/dev
Ethran Mar 6, 2025
087167c
account for landscape mode in hexagon background
meta-meta Mar 6, 2025
50a1c24
fixed issue with marker pen color.
Ethran Mar 7, 2025
cf52d5d
Update Gradle and Android Gradle Plugin versions
Ethran Mar 7, 2025
bf5d11a
Merge pull request #37 from meta-meta/hex-grid
Ethran Mar 7, 2025
9e96035
add hexagon grid option to AppSettings default background templates
meta-meta Mar 7, 2025
f04eb8a
small changes, not important.
Ethran Mar 7, 2025
df21398
add stubs for some french translations
meta-meta Mar 7, 2025
e7fd68f
Trying to find what is causing nullptr error
Ethran Mar 7, 2025
51e8831
Merge pull request #38 from meta-meta/hex-grid
Ethran Mar 7, 2025
20fa732
added Polish translation
Ethran Mar 7, 2025
3d13767
Merge pull request #39 from meta-meta/i18n
Ethran Mar 7, 2025
46152a6
Merge pull request #40 from Ethran/dev
Ethran Mar 7, 2025
1c291fa
Revert "Internationalization"
Ethran Mar 7, 2025
50e5bd1
Merge pull request #41 from Ethran/revert-39-i18n
Ethran Mar 7, 2025
166094c
moved GestureState class to separate file and removed unnecessary deb…
Ethran Mar 7, 2025
144127e
Increased version to 0.0.12
Ethran Mar 7, 2025
13fab8a
Merge pull request #43 from Ethran/dev
Ethran Mar 7, 2025
ca412b8
fixed for detecting hold and drag, and refactor of code.
Ethran Mar 10, 2025
2adaa1b
fixed for detecting hold and drag, and refactor of code.
Ethran Mar 10, 2025
1394828
Merge remote-tracking branch 'origin/dev' into dev
Ethran Mar 10, 2025
8c37cf6
fixed NullPointerException
Ethran Mar 11, 2025
4300402
Fixes #45
Ethran Mar 11, 2025
a2bcf3f
close setting when moved.
Ethran Mar 11, 2025
cefe982
trying to fix:
Ethran Mar 11, 2025
89916ab
Merge pull request #46 from Ethran/dev
Ethran Mar 12, 2025
8df7fe6
initial work on support .xopp export.
Ethran Mar 12, 2025
86b7ebd
export xopp almost done
Ethran Mar 13, 2025
0d726d7
import as xopp
Ethran Mar 13, 2025
03468b1
correct color conversion, ensure that app will not crash when there i…
Ethran Mar 14, 2025
d6ae5aa
removed debug message, and updated version checker.
Ethran Mar 14, 2025
de8ac07
Upgraded packages and increased version.
Ethran Mar 14, 2025
544adbc
Merge pull request #47 from Ethran/dev
Ethran Mar 15, 2025
47ccb47
draw images, then strokes when exporting
Ethran Mar 15, 2025
bc7633d
import images from xopp file
Ethran Mar 15, 2025
b9b7f53
fixed exporting from Library
Ethran Mar 18, 2025
0bb692c
skipp export of image that can not be found.
Ethran Mar 18, 2025
7d864a9
Improved the description text for export format selection in the conf…
Ethran Mar 18, 2025
5286687
added additional check for coroutineScope.isActive
Ethran Mar 18, 2025
157af8d
Load strokes in background, work in progress. Canceling loading must …
Ethran Mar 19, 2025
0104c39
Load strokes in background. Small bugs might occur.
Ethran Mar 21, 2025
32732d8
removed code that should not be yet added to git.
Ethran Mar 24, 2025
cf3583b
Final touches on lazy loading
Ethran Mar 24, 2025
96f6934
change log level for gesture coroutine cancellation
Ethran Mar 24, 2025
614b778
Upgrade AGP dependency from 8.9.0 to 8.9.1 and firebase-boom.
Ethran Mar 29, 2025
8886588
bump app version to 0.0.14
Ethran Mar 29, 2025
a323b8b
Merge pull request #49 from Ethran/dev
Ethran Mar 29, 2025
695d1e8
make lasso selection work with images too
Mar 31, 2025
fa85a27
deduplicate selectImage with selectImagesAndStrokes too
Mar 31, 2025
4e9adc6
Add a clipboard to EditorState, where we can keep images and strokes …
Mar 31, 2025
d768253
Add cutSelectionToClipboard to EditorControlTower
Mar 31, 2025
5b97d96
add a cut-button to the selection toolbar
Mar 31, 2025
d51c2a3
Add pasteFromClipboard to EditorControlTower
Mar 31, 2025
728e31f
Add paste-button to main toolbar
Mar 31, 2025
892f580
applySelectionDisplace: when undoing, undo operations on both images …
Mar 31, 2025
701d1fb
update comment about applySelectionDisplace
Mar 31, 2025
5bc3d1a
changeSizeOfSelection: use showHint too
Mar 31, 2025
49dce5c
corrected code style.
Ethran Apr 10, 2025
12d9253
Make BUTTON_SIZE a global variable.
Ethran Apr 10, 2025
145b479
make global show hint function.
Ethran Apr 10, 2025
5901498
Implemented copping to clipboard, added this functionality to copy/cut.
Ethran Apr 13, 2025
77a8cf5
adjust xPos of selection toolbar.
Ethran Apr 13, 2025
b16741a
Merge pull request #50 from georghendrik/feature/cut-and-paste
Ethran Apr 13, 2025
267ef4f
moved SelectionState to new file. It now is also responsible for logi…
Ethran Apr 13, 2025
6fd1ef5
Fixed project settings. But I think that .idea folder should be exclu…
Ethran Apr 16, 2025
4358bfe
finish cleaning the code handling SelectionState.
Ethran Apr 16, 2025
cb905ca
Merge pull request #53 from Ethran/dev
Ethran Apr 16, 2025
e5115d7
Correct how setting are accessed and managed
Ethran Apr 16, 2025
ce926b6
Added experimental support for bottom position of toolbar
Ethran Apr 18, 2025
441d1f7
Correct style of settings. correct height of toolbar, and added line …
Ethran Apr 20, 2025
8344305
Create FUNDING.yml
Ethran Apr 20, 2025
b458013
Settings managment and initial implementation of bottom toolbar
Ethran Apr 20, 2025
a849ded
Update readme.md
Ethran Apr 20, 2025
1a0b374
Added a way to donate
Ethran Apr 20, 2025
14d0074
Fix editor gesture handling and page view scrolling
Ethran Apr 22, 2025
fc31707
Merge pull request #59 from Ethran/quick-settings
Ethran Apr 22, 2025
6d1d8c9
add roadmap and corrected table of contents (#60)
Ethran Apr 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# These are supported funding model platforms

github: ethran # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: rethran
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
polar: # Replace with a single Polar username
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
thanks_dev: # Replace with a single thanks.dev username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
35 changes: 25 additions & 10 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: Build and Release Preview

on:
push:
branches: ["main"]
branches: ["dev"]
paths:
- 'app/**'
workflow_dispatch:

env:
MAVEN_OPTS: >-
Expand All @@ -23,7 +25,7 @@ jobs:

- uses: gradle/gradle-build-action@v2
with:
gradle-version: 7.5
gradle-version: 8.5

- name: Decode Keystore
id: decode_keystore
Expand All @@ -33,15 +35,28 @@ jobs:
fileName: "my.keystore"
encodedString: ${{ secrets.KEYSTORE_FILE }}

- name: Remove `google-services.json`
run: rm ${{ github.workspace }}/app/google-services.json

- name: Decode and Replace `google-services.json`
env:
FIREBASE_CONFIG: ${{ secrets.FIREBASE_CONFIG }}
run: |
echo $FIREBASE_CONFIG | base64 --decode > ${{ github.workspace }}/app/google-services.json
wc -l ${{ github.workspace }}/app/google-services.json

- name: Execute Gradle build
run: |
export STORE_FILE="../${{ steps.decode_keystore.outputs.filePath }}"
export STORE_PASSWORD="${{ secrets.KEYSTORE_PASSWORD }}"
export KEY_ALIAS="${{ secrets.KEY_ALIAS }}"
export KEY_PASSWORD="${{ secrets.KEY_PASSWORD }}"
export SHIPBOOK_APP_ID="${{ secrets.SHIPBOOK_APP_ID }}"
export SHIPBOOK_APP_KEY="${{ secrets.SHIPBOOK_APP_KEY }}"

./gradlew \
-PDEBUG_STORE_FILE="../${{ steps.decode_keystore.outputs.filePath }}" \
-PDEBUG_STORE_PASSWORD=${{ secrets.KEYSTORE_PASSWORD }} \
-PDEBUG_KEY_ALIAS=${{ secrets.KEY_ALIAS }} \
-PDEBUG_KEY_PASSWORD=${{ secrets.KEY_PASSWORD }} \
-PIS_NEXT=true \
assembleDebug
-PIS_NEXT=true \
assembleDebug

# - name: Cache Gradle packages
# uses: actions/cache@v1
Expand All @@ -59,5 +74,5 @@ jobs:
tag_name: next
name: next
prerelease: true
body: "Preview version corresponding to the latest build on main"
body: "Preview version built from branch: ${{ github.ref_name }}"
token: ${{ secrets.TOKEN }}
60 changes: 39 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Build and Release Version

on:
push:
branches: ["release"]
workflow_dispatch:

env:
MAVEN_OPTS: >-
Expand All @@ -23,7 +22,7 @@ jobs:

- uses: gradle/gradle-build-action@v2
with:
gradle-version: 7.5
gradle-version: 8.5

- name: Decode Keystore
id: decode_keystore
Expand All @@ -33,14 +32,28 @@ jobs:
fileName: "my.keystore"
encodedString: ${{ secrets.KEYSTORE_FILE }}

- name: Decode and Replace `google-services.json`
env:
FIREBASE_CONFIG: ${{ secrets.FIREBASE_CONFIG }}
run: |
echo $FIREBASE_CONFIG | base64 --decode > ${{ github.workspace }}/app/google-services.json

- name: Execute Gradle build
env:
STORE_FILE: ${{ github.workspace }}/secrets/my.keystore
STORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
KEY_ALIAS: ${{ secrets.RELEASE_KEY_ALIAS }}
KEY_PASSWORD: ${{ secrets.RELEASE_KEY_PASSWORD }}
SHIPBOOK_APP_ID: ${{ secrets.SHIPBOOK_APP_ID }}
SHIPBOOK_APP_KEY: ${{ secrets.SHIPBOOK_APP_KEY }}
run: |
./gradlew \
-PDEBUG_STORE_FILE="../${{ steps.decode_keystore.outputs.filePath }}" \
-PDEBUG_STORE_PASSWORD=${{ secrets.KEYSTORE_PASSWORD }} \
-PDEBUG_KEY_ALIAS=${{ secrets.KEY_ALIAS }} \
-PDEBUG_KEY_PASSWORD=${{ secrets.KEY_PASSWORD }} \
assembleDebug
./gradlew assembleRelease \
-PSTORE_FILE="$STORE_FILE" \
-PSTORE_PASSWORD="$STORE_PASSWORD" \
-PKEY_ALIAS="$KEY_ALIAS" \
-PKEY_PASSWORD="$KEY_PASSWORD"



# - name: Cache Gradle packages
# uses: actions/cache@v1
Expand All @@ -49,25 +62,30 @@ jobs:
# key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
# restore-keys: ${{ runner.os }}-gradle

- name: Verify APK Files
run: find ${{ github.workspace }}/app/build/outputs/apk/ -name "*.apk"

- name: Retrieve Version
env:
STORE_FILE: ${{ github.workspace }}/secrets/my.keystore
STORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
KEY_ALIAS: ${{ secrets.RELEASE_KEY_ALIAS }}
KEY_PASSWORD: ${{ secrets.RELEASE_KEY_PASSWORD }}
SHIPBOOK_APP_ID: ${{ secrets.SHIPBOOK_APP_ID }}
SHIPBOOK_APP_KEY: ${{ secrets.SHIPBOOK_APP_KEY }}
run: |
echo "::set-output name=VERSION_NAME::$(${{github.workspace}}/gradlew \
-PDEBUG_STORE_FILE="../${{ steps.decode_keystore.outputs.filePath }}" \
-PDEBUG_STORE_PASSWORD=${{ secrets.KEYSTORE_PASSWORD }} \
-PDEBUG_KEY_ALIAS=${{ secrets.KEY_ALIAS }} \
-PDEBUG_KEY_PASSWORD=${{ secrets.KEY_PASSWORD }} \
-q printVersionName)"
./gradlew -q printVersionName
VERSION_NAME=$(./gradlew -q printVersionName)
echo "VERSION_NAME=$VERSION_NAME" >> $GITHUB_ENV
id: android_version

- name: Get version
run: |
echo "version_name=${{steps.android_version.outputs.VERSION_NAME}}" >> $GITHUB_ENV

- run: mv ${{ github.workspace }}/app/build/outputs/apk/debug/app-debug.apk ${{ github.workspace }}/app/build/outputs/apk/debug/notable-${{ env.version_name }}.apk
- name: Rename APK
run: mv ${{ github.workspace }}/app/build/outputs/apk/release/app-release.apk ${{ github.workspace }}/app/build/outputs/apk/release/notable-${{ env.VERSION_NAME }}.apk

- name: Release
uses: softprops/action-gh-release@v1
with:
files: ${{ github.workspace }}/app/build/outputs/apk/debug/notable-${{ env.version_name }}.apk
tag_name: v${{env.version_name}}
files: ${{ github.workspace }}/app/build/outputs/apk/release/notable-${{ env.VERSION_NAME }}.apk
tag_name: v${{env.VERSION_NAME}}
token: ${{ secrets.TOKEN }}
6 changes: 6 additions & 0 deletions .idea/AndroidProjectSystem.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/deploymentTargetSelector.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 0 additions & 32 deletions .idea/inspectionProfiles/Project_Default.xml

This file was deleted.

6 changes: 6 additions & 0 deletions .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/migrations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions .idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/studiobot.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading