Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BeaconsApp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LSDS
Teaching
Master
IoT
BeaconsApp
Commits
4c20d2dc
Commit
4c20d2dc
authored
4 years ago
by
marcoemi.poleggi
Browse files
Options
Downloads
Patches
Plain Diff
Decrytpted file touched
parent
d56e6432
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile
+5
-45
5 additions, 45 deletions
Makefile
README.md
+0
-16
0 additions, 16 deletions
README.md
app/src/main/java/com/example/iot_hes/iotlab/MainActivity.java
+0
-0
0 additions, 0 deletions
...rc/main/java/com/example/iot_hes/iotlab/MainActivity.java
with
5 additions
and
61 deletions
Makefile
+
5
−
45
View file @
4c20d2dc
.ONESHELL
:
sources
:=
app/src/main/java/com/example/iot_hes/iotlab/MainActivity.java
.PHONY
:
help
all
:
help
# ensure symlinks are local to the source directory
_slink
:
dname
=
$(
dir
$(
slink
))
lname
=
$(
notdir
$(
slink
))
pushd
$$
dname
>
/dev/null
ln
-sf
$$
lname.
$(
suffix
)
$$
lname
popd
>
/dev/null
incomplete
:
$(sources)
$(
MAKE
)
suffix
=
incomplete _slink
slink
=
$<
labo
:
incomplete
unlock
:
git-crypt unlock
complete
:
$(sources)
$(
MAKE
)
suffix
=
complete
_slink
slink
=
$<
solution
:
complete
clean
:
./gradlew cleanBuildCache clean
rm
-rf
.gradle/ .idea/ app/build/ build/
reset
:
clean incomplete
# No-op
# labo build
lbuild
:
incomplete clean
./gradlew build
# solution build
s
build
:
complete clean
build
:
complete clean
./gradlew build
linstall
:
lbuild clean
./gradlew installDebug
sinstall
:
sbuild
install
:
build
./gradlew installDebug
uninstall
:
...
...
@@ -59,18 +27,10 @@ Usage:
Targets
:
clean
remove
build
artifacts
and
specious
files
&
dirs
complete
prepare
the
source
code
for
the
'solution'
build
help
guess
what
;-)
incomplete
prepare
the
source
code
for
the
'labo'
build
labo
alias
=>
'incomplete'
lbuild
build
'labo'
(incomplete
app)
linstall
build
&
push
'labo'
to
device
reset
alias
=>
'incomplete'
sbuild
build
'solution'
(complete
app)
sinstall
build
&
push
'solution'
to
device
solution
alias
=>
'complete'
uninstall
remove
whatever
app
build
from
device
unlock
decrypt
sensitive
files
build
build
the
app
install
build
&
push
the
app
to
device
uninstall
remove
the
app
from
device
endef
...
...
This diff is collapsed.
Click to expand it.
README.md
+
0
−
16
View file @
4c20d2dc
...
...
@@ -124,19 +124,3 @@ This section is for code maintainers. Students are however encouraged to read :-
Most tasks are available via the included
`Makefile`
. See:
$ make help
Keep in mind that a
`pre-commit`
hook is installed which does some checks.
Source code for the solution build and other sensitive files are encrypted. If
you have just cloned this repo and need to work on sensitive stuff,
**
the
first thing to do
**
is to run:
$ make unlock
Unlocked content will be anyway encrypted on subsequent push operations. It
won't work if the working dir is dirty!
It is good practice to have this repo labo-ready, thus before push new stuff,
you should always call:
$ make reset
This diff is collapsed.
Click to expand it.
app/src/main/java/com/example/iot_hes/iotlab/MainActivity.java
+
0
−
0
View file @
4c20d2dc
No preview for this file type
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment