Skip to content

Commit 1123097

Browse files
committed
Release 3.3.0
1 parent 23cc93d commit 1123097

File tree

355 files changed

+3869
-1273
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

355 files changed

+3869
-1273
lines changed

.editorconfig

100755100644
File mode changed.

.gitignore

100755100644
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ local.properties
55
build
66
captures
77
testServerAddress.txt
8-
app/app.iml
9-
lib/lib.iml
8+
app/bin
9+
unity-ads/bin
1010
javadoc
1111
.settings
1212
.project
1313
.vscode
14-
.classpath
14+
.classpath
15+
*.iml
16+
fastlane/report.xml

.gitlab-ci.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
variables:
2+
3+
stages:
4+
- test
5+
- build
6+
- release
7+
8+
instrumentation-test:
9+
stage: test
10+
script:
11+
- ./scripts/gitlab/setup.sh
12+
- ./scripts/gitlab/instrumentation_test.sh
13+
tags:
14+
- ads_sdk_osx_worker
15+
16+
integration-test:
17+
stage: test
18+
script:
19+
- ./scripts/gitlab/setup.sh
20+
- ./scripts/gitlab/integration_test.sh
21+
tags:
22+
- ads_sdk_osx_worker
23+
24+
legacy-test:
25+
stage: test
26+
script:
27+
- ./scripts/gitlab/setup.sh
28+
- ./scripts/gitlab/legacy_test.sh
29+
tags:
30+
- ads_sdk_osx_worker
31+
32+
build-release:
33+
stage: build
34+
script:
35+
- make zip
36+
tags:
37+
- ads_sdk_osx_worker
38+
artifacts:
39+
when: on_success
40+
paths:
41+
- unity-ads.aar.zip
42+
43+
internal-release:
44+
only:
45+
- /^feature/ci/
46+
- /^release\/[0-9\.]*/
47+
stage: release
48+
script:
49+
- echo "Running an internal release"
50+
- ./scripts/gitlab/post-internal-github-release.sh
51+
tags:
52+
- ads_sdk_osx_worker
53+
dependencies:
54+
- build-release
55+
when: manual
56+
57+
# # TODO
58+
# public-release:
59+
# only:
60+
# - /^feature/ci/
61+
# - /^release\/[0-9\.]*/
62+
# stage: release
63+
# script:
64+
# - echo "Running a public release"
65+
# - ./scripts/gitlab/post-public-github-release.sh
66+
# tags:
67+
# - ads_sdk_osx_worker
68+
# dependencies:
69+
# - build-release
70+
# when: manual

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.3.1

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source "https://rubygems.org"
2+
3+
gem "fastlane"

Gemfile.lock

Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
CFPropertyList (3.0.1)
5+
addressable (2.6.0)
6+
public_suffix (>= 2.0.2, < 4.0)
7+
atomos (0.1.3)
8+
babosa (1.0.2)
9+
claide (1.0.3)
10+
colored (1.2)
11+
colored2 (3.1.2)
12+
commander-fastlane (4.4.6)
13+
highline (~> 1.7.2)
14+
declarative (0.0.10)
15+
declarative-option (0.1.0)
16+
digest-crc (0.4.1)
17+
domain_name (0.5.20190701)
18+
unf (>= 0.0.5, < 1.0.0)
19+
dotenv (2.7.5)
20+
emoji_regex (1.0.1)
21+
excon (0.66.0)
22+
faraday (0.15.4)
23+
multipart-post (>= 1.2, < 3)
24+
faraday-cookie_jar (0.0.6)
25+
faraday (>= 0.7.4)
26+
http-cookie (~> 1.0.0)
27+
faraday_middleware (0.13.1)
28+
faraday (>= 0.7.4, < 1.0)
29+
fastimage (2.1.5)
30+
fastlane (2.130.0)
31+
CFPropertyList (>= 2.3, < 4.0.0)
32+
addressable (>= 2.3, < 3.0.0)
33+
babosa (>= 1.0.2, < 2.0.0)
34+
bundler (>= 1.12.0, < 3.0.0)
35+
colored
36+
commander-fastlane (>= 4.4.6, < 5.0.0)
37+
dotenv (>= 2.1.1, < 3.0.0)
38+
emoji_regex (>= 0.1, < 2.0)
39+
excon (>= 0.45.0, < 1.0.0)
40+
faraday (~> 0.9)
41+
faraday-cookie_jar (~> 0.0.6)
42+
faraday_middleware (~> 0.9)
43+
fastimage (>= 2.1.0, < 3.0.0)
44+
gh_inspector (>= 1.1.2, < 2.0.0)
45+
google-api-client (>= 0.21.2, < 0.24.0)
46+
google-cloud-storage (>= 1.15.0, < 2.0.0)
47+
highline (>= 1.7.2, < 2.0.0)
48+
json (< 3.0.0)
49+
jwt (~> 2.1.0)
50+
mini_magick (>= 4.9.4, < 5.0.0)
51+
multi_xml (~> 0.5)
52+
multipart-post (~> 2.0.0)
53+
plist (>= 3.1.0, < 4.0.0)
54+
public_suffix (~> 2.0.0)
55+
rubyzip (>= 1.2.2, < 2.0.0)
56+
security (= 0.1.3)
57+
simctl (~> 1.6.3)
58+
slack-notifier (>= 2.0.0, < 3.0.0)
59+
terminal-notifier (>= 2.0.0, < 3.0.0)
60+
terminal-table (>= 1.4.5, < 2.0.0)
61+
tty-screen (>= 0.6.3, < 1.0.0)
62+
tty-spinner (>= 0.8.0, < 1.0.0)
63+
word_wrap (~> 1.0.0)
64+
xcodeproj (>= 1.8.1, < 2.0.0)
65+
xcpretty (~> 0.3.0)
66+
xcpretty-travis-formatter (>= 0.0.3)
67+
gh_inspector (1.1.3)
68+
google-api-client (0.23.9)
69+
addressable (~> 2.5, >= 2.5.1)
70+
googleauth (>= 0.5, < 0.7.0)
71+
httpclient (>= 2.8.1, < 3.0)
72+
mime-types (~> 3.0)
73+
representable (~> 3.0)
74+
retriable (>= 2.0, < 4.0)
75+
signet (~> 0.9)
76+
google-cloud-core (1.3.1)
77+
google-cloud-env (~> 1.0)
78+
google-cloud-env (1.2.1)
79+
faraday (~> 0.11)
80+
google-cloud-storage (1.16.0)
81+
digest-crc (~> 0.4)
82+
google-api-client (~> 0.23)
83+
google-cloud-core (~> 1.2)
84+
googleauth (>= 0.6.2, < 0.10.0)
85+
googleauth (0.6.7)
86+
faraday (~> 0.12)
87+
jwt (>= 1.4, < 3.0)
88+
memoist (~> 0.16)
89+
multi_json (~> 1.11)
90+
os (>= 0.9, < 2.0)
91+
signet (~> 0.7)
92+
highline (1.7.10)
93+
http-cookie (1.0.3)
94+
domain_name (~> 0.5)
95+
httpclient (2.8.3)
96+
json (2.2.0)
97+
jwt (2.1.0)
98+
memoist (0.16.0)
99+
mime-types (3.2.2)
100+
mime-types-data (~> 3.2015)
101+
mime-types-data (3.2019.0331)
102+
mini_magick (4.9.5)
103+
multi_json (1.13.1)
104+
multi_xml (0.6.0)
105+
multipart-post (2.0.0)
106+
nanaimo (0.2.6)
107+
naturally (2.2.0)
108+
os (1.0.1)
109+
plist (3.5.0)
110+
public_suffix (2.0.5)
111+
representable (3.0.4)
112+
declarative (< 0.1.0)
113+
declarative-option (< 0.2.0)
114+
uber (< 0.2.0)
115+
retriable (3.1.2)
116+
rouge (2.0.7)
117+
rubyzip (1.2.3)
118+
security (0.1.3)
119+
signet (0.11.0)
120+
addressable (~> 2.3)
121+
faraday (~> 0.9)
122+
jwt (>= 1.5, < 3.0)
123+
multi_json (~> 1.10)
124+
simctl (1.6.5)
125+
CFPropertyList
126+
naturally
127+
slack-notifier (2.3.2)
128+
terminal-notifier (2.0.0)
129+
terminal-table (1.8.0)
130+
unicode-display_width (~> 1.1, >= 1.1.1)
131+
tty-cursor (0.7.0)
132+
tty-screen (0.7.0)
133+
tty-spinner (0.9.1)
134+
tty-cursor (~> 0.7)
135+
uber (0.1.0)
136+
unf (0.1.4)
137+
unf_ext
138+
unf_ext (0.0.7.6)
139+
unicode-display_width (1.6.0)
140+
word_wrap (1.0.0)
141+
xcodeproj (1.12.0)
142+
CFPropertyList (>= 2.3.3, < 4.0)
143+
atomos (~> 0.1.3)
144+
claide (>= 1.0.2, < 2.0)
145+
colored2 (~> 3.1)
146+
nanaimo (~> 0.2.6)
147+
xcpretty (0.3.0)
148+
rouge (~> 2.0.7)
149+
xcpretty-travis-formatter (1.0.0)
150+
xcpretty (~> 0.2, >= 0.0.7)
151+
152+
PLATFORMS
153+
ruby
154+
155+
DEPENDENCIES
156+
fastlane
157+
158+
BUNDLED WITH
159+
2.0.2

Jenkinsfile

100755100644
File mode changed.

LICENSE

100755100644
File mode changed.

Makefile

100755100644
Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
release:
2-
./gradlew :lib:assembleRelease
2+
./gradlew :unity-ads:assembleRelease
33

44
clean:
5-
./gradlew :lib:clean
5+
./gradlew :unity-ads:clean
66

77
test: test-hosted
88

@@ -11,7 +11,7 @@ test-local: push-test-server-address exec-tests
1111
test-unit-tests: push-test-server-address exec-unit-tests
1212

1313
build-test-apk: clean
14-
./gradlew :lib:assembleAndroidTest --full-stacktrace
14+
./gradlew :unity-ads:assembleAndroidTest --full-stacktrace
1515

1616
test-emulator: exec-tests
1717

@@ -23,11 +23,11 @@ exec-tests: exec-unit-tests exec-hybrid-tests
2323

2424
exec-unit-tests: clean
2525
adb shell input keyevent 82
26-
./gradlew :lib:connectedCheck --full-stacktrace -Pandroid.testInstrumentationRunnerArguments.class=com.unity3d.ads.test.UnitTestSuite
26+
./gradlew :unity-ads:connectedCheck --full-stacktrace -Pandroid.testInstrumentationRunnerArguments.class=com.unity3d.ads.test.LegacyTestSuite
2727

2828
exec-hybrid-tests: clean
2929
adb shell input keyevent 82
30-
./gradlew :lib:connectedCheck --full-stacktrace -Pandroid.testInstrumentationRunnerArguments.class=com.unity3d.ads.test.HybridTestSuite
30+
./gradlew :unity-ads:connectedCheck --full-stacktrace -Pandroid.testInstrumentationRunnerArguments.class=com.unity3d.ads.test.HybridTestSuite
3131

3232
push-test-server-address:
3333
echo http://$(shell ifconfig |grep "inet" |grep -E -o "([0-9]{1,3}[\.]){3}[0-9]{1,3}" |grep -v -E "^0|^127" -m 1):8080 > testServerAddress.txt
@@ -48,16 +48,30 @@ dismantle-adb-reverse:
4848
adb reverse --remove-all
4949

5050
javadoc:
51-
./gradlew :lib:javadoc
51+
./gradlew :unity-ads:javadoc
5252

5353
zip: release
54-
cp lib/build/outputs/aar/unity-ads-release.aar unity-ads.aar
55-
zip -9r builds.zip unity-ads.aar
54+
cp unity-ads/build/outputs/aar/unity-ads-release.aar unity-ads.aar
55+
zip -9r unity-ads.aar.zip unity-ads.aar
5656
rm unity-ads.aar
5757

58+
verify-release-build:
59+
if [[ -f "unity-ads.aar.zip" ]]; then \
60+
echo 'unity-ads.aar.zip exists'; \
61+
else \
62+
echo 'unity-ads.aar.zip does not exist'; \
63+
exit 1; \
64+
fi;
65+
5866
use-local-webview:
59-
sed -i '' 's/return "https:\/\/config.unityads.unity3d.com\/webview\/" + getWebViewBranch() + "\/" + flavor + "\/config.json";/return "new-ip";/' "lib/src/main/java/com/unity3d/services/core/properties/SdkProperties.java"
60-
sed -i '' 's/return ".*";/return "http:\/\/$(shell ifconfig |grep "inet" |grep -E -o "([0-9]{1,3}[\.]){3}[0-9]{1,3}" |grep -v -E "^0|^127" -m 1):8000\/build\/" + flavor + "\/config.json";/' "lib/src/main/java/com/unity3d/services/core/properties/SdkProperties.java"
67+
sed -i '' 's/return "https:\/\/config.unityads.unity3d.com\/webview\/" + getWebViewBranch() + "\/" + flavor + "\/config.json";/return "new-ip";/' "unity-ads/src/main/java/com/unity3d/services/core/properties/SdkProperties.java"
68+
sed -i '' 's/return ".*";/return "http:\/\/$(shell ifconfig |grep "inet" |grep -E -o "([0-9]{1,3}[\.]){3}[0-9]{1,3}" |grep -v -E "^0|^127" -m 1):8000\/build\/" + flavor + "\/config.json";/' "unity-ads/src/main/java/com/unity3d/services/core/properties/SdkProperties.java"
6169

6270
use-public-webview:
63-
sed -i '' 's/return ".*";/return "https:\/\/config.unityads.unity3d.com\/webview\/" + getWebViewBranch() + "\/" + flavor + "\/config.json";/' "lib/src/main/java/com/unity3d/services/core/properties/SdkProperties.java"
71+
sed -i '' 's/return ".*";/return "https:\/\/config.unityads.unity3d.com\/webview\/" + getWebViewBranch() + "\/" + flavor + "\/config.json";/' "unity-ads/src/main/java/com/unity3d/services/core/properties/SdkProperties.java"
72+
73+
create-android-26-emulator:
74+
echo "no" | ${ANDROID_HOME}/tools/bin/avdmanager create avd --name "android-26-test" --package "system-images;android-26;google_apis;x86" --device "Nexus 6P" --tag google_apis --abi google_apis/x86 --force
75+
76+
start-android-26-emulator:
77+
${ANDROID_HOME}/emulator/emulator -port 5556 -avd android-26-test -no-window -noaudio -no-boot-anim -memory 2048 -partition-size 1024 &

README.md

100755100644
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Unity Ads Android Release Repository
1+
# Unity Ads 3 Android Release Repository
22

3-
Welcome to the Unity Ads Android release repository.
3+
Welcome to the Unity Ads 3 Android release repository.
44

55
## Binaries
66

0 commit comments

Comments
 (0)