diff --git a/metadata/de.stephanlindauer.criticalmaps.txt b/metadata/de.stephanlindauer.criticalmaps.txt
index 8fc95d25e5..6ffe4b0c0f 100644
--- a/metadata/de.stephanlindauer.criticalmaps.txt
+++ b/metadata/de.stephanlindauer.criticalmaps.txt
@@ -101,13 +101,15 @@ Build:2.1.0,25
Build:2.2.0,27
commit=2.2.0
subdir=app
+ init=sed -i "/dependencies {/a compile project(':OSMBonusPack')" build.gradle && \
+ sed -i "$ ainclude ':OSMBonusPack'" ../settings.gradle && \
+ sed -i "/<\/manifest>/i " src/main/AndroidManifest.xml && \
+ sed -i "/ temp.txt && \
- sed -i '/dependencies/ r temp.txt' build.gradle && \
- find . -name *.java -exec sed -i 's/org\.osmdroid\.bonuspack\.R/de\.stephanlindauer\.criticalmaps\.R/g' {} \;
+ prebuild=sed -i -e '/slf4j-android/d' $$OSMBonusPack$$/build.gradle && \
+ cp -r $$OSMBonusPack$$ ../
Auto Update Mode:Version %v
Update Check Mode:Tags