-
Notifications
You must be signed in to change notification settings - Fork 1
/
updateAndroidManifest.sh
executable file
·45 lines (45 loc) · 4.46 KB
/
updateAndroidManifest.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/env sh
# Copyright 2017-2019 by SDRausty. All rights reserved.
# SDRausty https://sdrausty.github.io
#####################################################################
set -e
find . -name AndroidManifest.xml -execdir sed -i 's/minSdkVersion\=\"1\"/minSdkVersion\=\"14\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/minSdkVersion\=\"2\"/minSdkVersion\=\"14\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/minSdkVersion\=\"3\"/minSdkVersion\=\"14\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/minSdkVersion\=\"4\"/minSdkVersion\=\"14\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/minSdkVersion\=\"5\"/minSdkVersion\=\"14\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/minSdkVersion\=\"6\"/minSdkVersion\=\"14\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/minSdkVersion\=\"7\"/minSdkVersion\=\"14\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/minSdkVersion\=\"8\"/minSdkVersion\=\"14\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/minSdkVersion\=\"9\"/minSdkVersion\=\"14\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/minSdkVersion\=\"10\"/minSdkVersion\=\"14\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/minSdkVersion\=\"11\"/minSdkVersion\=\"14\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/minSdkVersion\=\"12\"/minSdkVersion\=\"14\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/minSdkVersion\=\"13\"/minSdkVersion\=\"14\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/targetSdkVersion\=\"1\"/targetSdkVersion\=\"27\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/targetSdkVersion\=\"1\"/targetSdkVersion\=\"27\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/targetSdkVersion\=\"2\"/targetSdkVersion\=\"27\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/targetSdkVersion\=\"3\"/targetSdkVersion\=\"27\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/targetSdkVersion\=\"4\"/targetSdkVersion\=\"27\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/targetSdkVersion\=\"5\"/targetSdkVersion\=\"27\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/targetSdkVersion\=\"6\"/targetSdkVersion\=\"27\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/targetSdkVersion\=\"7\"/targetSdkVersion\=\"27\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/targetSdkVersion\=\"8\"/targetSdkVersion\=\"27\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/targetSdkVersion\=\"9\"/targetSdkVersion\=\"27\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/targetSdkVersion\=\"10\"/targetSdkVersion\=\"27\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/targetSdkVersion\=\"11\"/targetSdkVersion\=\"27\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/targetSdkVersion\=\"12\"/targetSdkVersion\=\"27\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/targetSdkVersion\=\"13\"/targetSdkVersion\=\"27\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/targetSdkVersion\=\"14\"/targetSdkVersion\=\"27\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/targetSdkVersion\=\"15\"/targetSdkVersion\=\"27\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/targetSdkVersion\=\"16\"/targetSdkVersion\=\"27\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/targetSdkVersion\=\"17\"/targetSdkVersion\=\"27\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/targetSdkVersion\=\"18\"/targetSdkVersion\=\"27\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/targetSdkVersion\=\"19\"/targetSdkVersion\=\"27\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/targetSdkVersion\=\"20\"/targetSdkVersion\=\"27\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/targetSdkVersion\=\"21\"/targetSdkVersion\=\"27\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/targetSdkVersion\=\"22\"/targetSdkVersion\=\"27\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/targetSdkVersion\=\"23\"/targetSdkVersion\=\"27\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/targetSdkVersion\=\"24\"/targetSdkVersion\=\"27\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/targetSdkVersion\=\"25\"/targetSdkVersion\=\"27\"/g' {} \;
find . -name AndroidManifest.xml -execdir sed -i 's/targetSdkVersion\=\"26\"/targetSdkVersion\=\"27\"/g' {} \;