Skip to content

Commit ebc4ba0

Browse files
author
Janne Sinivirta
committed
Release 2.0.5
1 parent 6a754f4 commit ebc4ba0

File tree

8 files changed

+52
-11
lines changed

8 files changed

+52
-11
lines changed

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.gradle
2+
local.properties
3+
.idea
4+
.DS_Store
5+
build
6+
captures
7+
testServerAddress.txt
8+
app/app.iml
9+
lib/lib.iml
10+
javadoc

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ android {
88
applicationId "com.unity3d.ads.example"
99
minSdkVersion 9
1010
targetSdkVersion 23
11-
versionCode = 2004
12-
versionName = "2.0.4"
11+
versionCode = 2005
12+
versionName = "2.0.5"
1313
}
1414
buildTypes {
1515
release {

app/src/main/ic_launcher-web.png

-13.2 KB
Binary file not shown.

lib/build.gradle

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ android {
1212
defaultConfig {
1313
minSdkVersion 9
1414
targetSdkVersion 23
15-
versionCode = 2004
16-
versionName = "2.0.4"
15+
versionCode = 2005
16+
versionName = "2.0.5"
1717

1818
setProperty("archivesBaseName", "unity-ads")
1919

@@ -85,9 +85,9 @@ android.libraryVariants.all { variant ->
8585
source = variant.javaCompile.source
8686
ext.androidJar = "${android.sdkDirectory}/platforms/${android.compileSdkVersion}/android.jar"
8787
classpath = files(variant.javaCompile.classpath.files) + files(ext.androidJar)
88-
options {
89-
links "http://docs.oracle.com/javase/7/docs/api/"
90-
linksOffline "http://developer.android.com/reference","${android.sdkDirectory}/docs/reference"
88+
options {
89+
links "http://docs.oracle.com/javase/7/docs/api/"
90+
linksOffline "http://developer.android.com/reference","${android.sdkDirectory}/docs/reference"
9191
}
9292
exclude '**/R.java'
9393
destinationDir = file("../javadoc/")
@@ -96,5 +96,10 @@ android.libraryVariants.all { variant ->
9696

9797
def getPropertyStringWithDefaultValue(String key, String defaultValue) {
9898
def value = project.getProperties().get(key);
99+
// Ensure that string is quoted
100+
if ((value != null) && (!(value ==~ /^".*"$/)) ){
101+
println "Value for key '$key' is not quoted, adding quotes to '$value'";
102+
value = "\"$value\"";
103+
}
99104
return value != null ? value : defaultValue;
100105
}

lib/src/main/java/com/unity3d/ads/configuration/InitializeThread.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,8 +391,8 @@ public InitializeStateNetworkError(Exception exception, InitializeState erroredS
391391
public InitializeState execute() {
392392
DeviceLog.error("Unity Ads init: network error, waiting for connection events");
393393

394-
ConnectivityMonitor.addListener(this);
395394
_conditionVariable = new ConditionVariable();
395+
ConnectivityMonitor.addListener(this);
396396

397397
if (_conditionVariable.block(10000L * 60L)) {
398398
ConnectivityMonitor.removeListener(this);

lib/src/main/java/com/unity3d/ads/properties/SdkProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public static String getConfigUrl() {
7676
}
7777

7878
public static String getDefaultConfigUrl(String flavor) {
79-
return "https://cdn.unityads.unity3d.com/webview/" + getWebViewBranch() + "/" + flavor + "/config.json";
79+
return "https://config.unityads.unity3d.com/webview/" + getWebViewBranch() + "/" + flavor + "/config.json";
8080
}
8181

8282
private static String getWebViewBranch() {

print-changelog.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,15 @@
22

33
# Prints all merged github pull requests after last release tag
44

5-
REPOURL=$(git info|awk -F= '/^remote.origin.url=/ {print $2}')
6-
PREVTAG=$(git tag|sed -n '$p')
5+
REPOURL=$(git config --get remote.origin.url)
6+
if [[ $REPOURL != https* ]]; then
7+
SSH_PREFIX="[email protected]:"
8+
REPOURL=${REPOURL%.git}
9+
REPOURL="https://github.com/${REPOURL#$SSH_PREFIX}"
10+
fi
11+
12+
CURRENT_TAG=$(git describe --abbrev=0 --tags)
13+
PREVTAG=$(git describe --abbrev=0 --tags ${CURRENT_TAG}~1)
714
COMMIT=$(git rev-parse $PREVTAG)
815
git log $PREVTAG..HEAD --merges --grep "Merge pull request #" | grep "^ Merge pull request #" -A2 | grep -v "^--" | while read FOO1 FOO2 FOO3 PRNUMBER FOO5 PRBRANCH; do
916
read FOO

unity-ads-android.iml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module external.linked.project.id="unity-ads-android" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
3+
<component name="FacetManager">
4+
<facet type="java-gradle" name="Java-Gradle">
5+
<configuration>
6+
<option name="BUILD_FOLDER_PATH" value="$MODULE_DIR$/build" />
7+
<option name="BUILDABLE" value="false" />
8+
</configuration>
9+
</facet>
10+
</component>
11+
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7" inherit-compiler-output="true">
12+
<exclude-output />
13+
<content url="file://$MODULE_DIR$">
14+
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
15+
</content>
16+
<orderEntry type="inheritedJdk" />
17+
<orderEntry type="sourceFolder" forTests="false" />
18+
</component>
19+
</module>

0 commit comments

Comments
 (0)