-
Notifications
You must be signed in to change notification settings - Fork 0
/
AddAdmobPlugin.sh
264 lines (172 loc) · 7.97 KB
/
AddAdmobPlugin.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
#!/bin/bash
mkdir Admob_Android_Dependency
cd Admob_Android_Dependency
wget https://maven.google.com/com/google/android/gms/play-services-ads/21.1.0/play-services-ads-21.1.0.aar
mkdir 1
unzip play-services-ads-21.1.0.aar -d 1/
wget https://maven.google.com/com/google/android/gms/play-services-ads-lite/21.1.0/play-services-ads-lite-21.1.0.aar
mkdir 45
unzip play-services-ads-lite-21.1.0.aar -d 45/
wget https://maven.google.com/com/google/android/gms/play-services-basement/18.1.0/play-services-basement-18.1.0.aar
mkdir 47
unzip play-services-basement-18.1.0.aar -d 47/
wget https://maven.google.com/androidx/browser/browser/1.4.0/browser-1.4.0.aar
mkdir 48
unzip browser-1.4.0.aar -d 48/
wget https://maven.google.com/com/google/android/gms/play-services-location/17.0.0/play-services-location-17.0.0.aar
mkdir 49
unzip play-services-location-17.0.0.aar -d 49/
wget https://maven.google.com/com/google/android/gms/play-services-maps/17.0.0/play-services-maps-17.0.0.aar
mkdir 50
unzip play-services-maps-17.0.0.aar -d 50/
wget https://maven.google.com/com/google/android/gms/play-services-analytics/17.0.0/play-services-analytics-17.0.0.aar
mkdir 51
unzip play-services-analytics-17.0.0.aar -d 51/
wget https://maven.google.com/com/google/android/ump/user-messaging-platform/1.0.0/user-messaging-platform-1.0.0.aar
mkdir 52
unzip user-messaging-platform-1.0.0.aar -d 52/
wget https://maven.google.com/com/google/android/gms/play-services-base/17.0.0/play-services-base-17.0.0.aar
mkdir 53
unzip play-services-base-17.0.0.aar -d 53/
wget https://maven.google.com/com/google/android/gms/play-services-ads-identifier/18.0.1/play-services-ads-identifier-18.0.1.aar
mkdir 54
unzip play-services-ads-identifier-18.0.1.aar -d 54/
wget https://maven.google.com/com/google/android/gms/play-services-ads-base/21.1.0/play-services-ads-base-21.1.0.aar
mkdir 55
unzip play-services-ads-base-21.1.0.aar -d 55/
#Migrado para play-services-ads-21.1.0.aar
#wget https://maven.google.com/com/google/android/gms/play-services-gass/20.0.0/play-services-gass-20.0.0.aar
#mkdir 56
#unzip play-services-gass-20.0.0.aar -d 56/
wget https://maven.google.com/com/google/android/gms/play-services-measurement/18.0.0/play-services-measurement-18.0.0.aar
mkdir 57
unzip play-services-measurement-18.0.0.aar -d 57/
wget https://maven.google.com/com/google/android/gms/play-services-measurement-base/18.0.0/play-services-measurement-base-18.0.0.aar
mkdir 58
unzip play-services-measurement-base-18.0.0.aar -d 58/
wget https://maven.google.com/com/google/android/gms/play-services-tasks/18.0.2/play-services-tasks-18.0.2.aar
mkdir 59
unzip play-services-tasks-18.0.2.aar -d 59/
wget https://maven.google.com/com/google/android/gms/play-services-stats/17.0.0/play-services-stats-17.0.0.aar
mkdir 60
unzip play-services-stats-17.0.0.aar -d 60/
wget https://maven.google.com/com/google/android/gms/play-services-measurement-api/18.0.0/play-services-measurement-api-18.0.0.aar
mkdir 61
unzip play-services-measurement-api-18.0.0.aar -d 61
wget https://maven.google.com/com/google/android/gms/play-services-measurement-sdk/18.0.0/play-services-measurement-sdk-18.0.0.aar
mkdir 62
unzip play-services-measurement-sdk-18.0.0.aar -d 62
wget https://maven.google.com/com/google/android/gms/play-services-measurement-impl/18.0.0/play-services-measurement-impl-18.0.0.aar
mkdir 63
unzip play-services-measurement-impl-18.0.0.aar -d 63
wget https://maven.google.com/com/google/android/gms/play-services-measurement-sdk-api/18.0.0/play-services-measurement-sdk-api-18.0.0.aar
mkdir 64
unzip play-services-measurement-sdk-api-18.0.0.aar -d 64
#FIREBASE
wget https://maven.google.com/com/google/firebase/firebase-core/20.1.0/firebase-core-20.1.0.aar
mkdir 65
unzip firebase-core-20.1.0.aar -d 65/
wget https://maven.google.com/com/google/firebase/firebase-analytics/20.1.0/firebase-analytics-20.1.0.aar
mkdir 66
unzip firebase-analytics-20.1.0.aar -d 66/
wget https://maven.google.com/com/google/firebase/firebase-messaging/23.0.0/firebase-messaging-23.0.0.aar
mkdir 67
unzip firebase-messaging-23.0.0.aar -d 67
#Talvez não precise Firebase
wget https://maven.google.com/com/google/firebase/firebase-common/20.0.0/firebase-common-20.0.0.aar
mkdir 68
unzip firebase-common-20.0.0.aar -d 68
wget https://maven.google.com/com/google/firebase/firebase-components/17.0.0/firebase-components-17.0.0.aar
mkdir 69
unzip firebase-components-17.0.0.aar -d 69
wget https://maven.google.com/com/google/firebase/firebase-iid/21.1.0/firebase-iid-21.1.0.aar
mkdir 698
unzip firebase-iid-21.1.0.aar -d 698
#Firebase Instalations
wget https://maven.google.com/com/google/firebase/firebase-installations-interop/17.0.0/firebase-installations-interop-17.0.0.aar
mkdir 670
unzip firebase-installations-interop-17.0.0.aar -d 670
wget https://maven.google.com/com/google/firebase/firebase-installations/17.0.0/firebase-installations-17.0.0.aar
mkdir 671
unzip firebase-installations-17.0.0.aar -d 671
wget https://maven.google.com/com/google/firebase/firebase-iid-interop/17.1.0/firebase-iid-interop-17.1.0.aar
mkdir 672
unzip firebase-iid-interop-17.1.0.aar -d 672
#DATA
wget https://maven.google.com/com/google/android/datatransport/transport-api/3.0.0/transport-api-3.0.0.aar
mkdir 673
unzip transport-api-3.0.0.aar -d 673
wget https://maven.google.com/com/google/android/datatransport/transport-runtime/3.0.0/transport-runtime-3.0.0.aar
mkdir 674
unzip transport-runtime-3.0.0.aar -d 674
wget https://maven.google.com/com/google/android/datatransport/transport-backend-cct/3.0.0/transport-backend-cct-3.0.0.aar
mkdir 675
unzip transport-backend-cct-3.0.0.aar -d 675
#GooglePlay Services
wget https://maven.google.com/com/google/android/gms/play-services-cloud-messaging/17.0.2/play-services-cloud-messaging-17.0.2.aar
mkdir 676
unzip play-services-cloud-messaging-17.0.2.aar -d 676
#Firebase encoders
wget https://maven.google.com/com/google/firebase/firebase-encoders/17.0.0/firebase-encoders-17.0.0.jar
mkdir 677
cp firebase-encoders-17.0.0.jar 677/classes.jar
#Firebase Analytics
wget https://maven.google.com/com/google/firebase/firebase-measurement-connector/20.0.0/firebase-measurement-connector-20.0.0.aar
mkdir 678
unzip firebase-measurement-connector-20.0.0.aar -d 678
#Extras
wget https://maven.google.com/androidx/work/work-runtime/2.7.1/work-runtime-2.7.1.aar
mkdir 680
unzip work-runtime-2.7.1.aar -d 680
wget https://maven.google.com/com/google/android/gms/play-services-appset/16.0.2/play-services-appset-16.0.2.aar
mkdir 681
unzip play-services-appset-16.0.2.aar -d 681
#Mais
wget https://maven.google.com/androidx/room/room-runtime/2.4.3/room-runtime-2.4.3.aar
mkdir 682
unzip room-runtime-2.4.3.aar -d 682
wget https://maven.google.com/androidx/room/room-common/2.4.3/room-common-2.4.3.jar
mkdir 683
cp room-common-2.4.3.jar 683/classes.jar
wget https://maven.google.com/androidx/sqlite/sqlite-framework/2.2.0/sqlite-framework-2.2.0.aar
mkdir 684
unzip sqlite-framework-2.2.0.aar -d 684
wget https://maven.google.com/androidx/sqlite/sqlite/2.2.0/sqlite-2.2.0.aar
mkdir 685
unzip sqlite-2.2.0.aar -d 685
wget https://maven.google.com/androidx/lifecycle/lifecycle-service/2.4.0/lifecycle-service-2.4.0.aar
mkdir 686
unzip lifecycle-service-2.4.0.aar -d 686
#Google play APP Rating
wget https://maven.google.com/com/google/android/play/core/1.10.3/core-1.10.3.aar
mkdir 73
unzip core-1.10.3.aar -d 73
echo ""
echo "Remember to put the aar lib of the Godot plugins"
echo "in GodotProject/android/plugins/"
echo "Did you put it on? y"
read pluginAAR
echo ""
#Para extrair todos os plugins godot e colocar nas pastas
myzip_plugin=$(find ../../plugins/ -name "*release.aar")
> MyStringsName.txt
> MytxtName.txt
> ../MyPluginsGodot.txt
echo $myzip_plugin >> MyStringsName.txt
tr ' ' '\n' < MyStringsName.txt > MytxtName.txt
sed '/^$/d' MytxtName.txt > ../MyPluginsGodot.txt
echo "..."
numero=70
for line in $(cat ../MyPluginsGodot.txt);
do
mkdir $numero
unzip -q $line -d $numero/
numero=$(($numero+1))
done
rm -rf MyStringsName.txt
rm -rf MytxtName.txt
echo ""
#Sair de Android_Dependency
rm *.jar
rm *.aar
cd ..