Skip to content

Commit 54bcb33

Browse files
nitzanjAmir Tocker
authored andcommitted
Fix android test configuration - copy and filter AndroidManifest.xml.
1 parent c2fbf47 commit 54bcb33

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

cloudinary-android-test/pom.xml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,46 @@
5353
</configuration>
5454
<extensions>true</extensions>
5555
</plugin>
56+
<plugin>
57+
<artifactId>maven-antrun-plugin</artifactId>
58+
<version>1.8</version>
59+
<executions>
60+
<execution>
61+
<id>copy</id>
62+
<phase>validate</phase>
63+
<configuration>
64+
<tasks>
65+
<copy file="${basedir}/src/main/AndroidManifest.xml.sample" tofile="src/main/AndroidManifest.xml"/>
66+
</tasks>
67+
</configuration>
68+
<goals>
69+
<goal>run</goal>
70+
</goals>
71+
</execution>
72+
</executions>
73+
</plugin>
74+
<plugin>
75+
<groupId>com.google.code.maven-replacer-plugin</groupId>
76+
<artifactId>replacer</artifactId>
77+
<version>1.5.3</version>
78+
<executions>
79+
<execution>
80+
<phase>validate</phase>
81+
<goals>
82+
<goal>replace</goal>
83+
</goals>
84+
</execution>
85+
</executions>
86+
<configuration>
87+
<file>${basedir}/src/main/AndroidManifest.xml</file>
88+
<replacements>
89+
<replacement>
90+
<token>%CLOUDINARY_URL%</token>
91+
<value>${env.CLOUDINARY_URL}</value>
92+
</replacement>
93+
</replacements>
94+
</configuration>
95+
</plugin>
5696
</plugins>
5797
</build>
5898
</project>

0 commit comments

Comments
 (0)