Skip to content

Commit

Permalink
Release 2.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Janne Sinivirta committed Oct 27, 2016
1 parent 6a754f4 commit ebc4ba0
Show file tree
Hide file tree
Showing 8 changed files with 52 additions and 11 deletions.
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.gradle
local.properties
.idea
.DS_Store
build
captures
testServerAddress.txt
app/app.iml
lib/lib.iml
javadoc
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "com.unity3d.ads.example"
minSdkVersion 9
targetSdkVersion 23
versionCode = 2004
versionName = "2.0.4"
versionCode = 2005
versionName = "2.0.5"
}
buildTypes {
release {
Expand Down
Binary file removed app/src/main/ic_launcher-web.png
Binary file not shown.
15 changes: 10 additions & 5 deletions lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ android {
defaultConfig {
minSdkVersion 9
targetSdkVersion 23
versionCode = 2004
versionName = "2.0.4"
versionCode = 2005
versionName = "2.0.5"

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

Expand Down Expand Up @@ -85,9 +85,9 @@ android.libraryVariants.all { variant ->
source = variant.javaCompile.source
ext.androidJar = "${android.sdkDirectory}/platforms/${android.compileSdkVersion}/android.jar"
classpath = files(variant.javaCompile.classpath.files) + files(ext.androidJar)
options {
links "http://docs.oracle.com/javase/7/docs/api/"
linksOffline "http://developer.android.com/reference","${android.sdkDirectory}/docs/reference"
options {
links "http://docs.oracle.com/javase/7/docs/api/"
linksOffline "http://developer.android.com/reference","${android.sdkDirectory}/docs/reference"
}
exclude '**/R.java'
destinationDir = file("../javadoc/")
Expand All @@ -96,5 +96,10 @@ android.libraryVariants.all { variant ->

def getPropertyStringWithDefaultValue(String key, String defaultValue) {
def value = project.getProperties().get(key);
// Ensure that string is quoted
if ((value != null) && (!(value ==~ /^".*"$/)) ){
println "Value for key '$key' is not quoted, adding quotes to '$value'";
value = "\"$value\"";
}
return value != null ? value : defaultValue;
}
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,8 @@ public InitializeStateNetworkError(Exception exception, InitializeState erroredS
public InitializeState execute() {
DeviceLog.error("Unity Ads init: network error, waiting for connection events");

ConnectivityMonitor.addListener(this);
_conditionVariable = new ConditionVariable();
ConnectivityMonitor.addListener(this);

if (_conditionVariable.block(10000L * 60L)) {
ConnectivityMonitor.removeListener(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public static String getConfigUrl() {
}

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

private static String getWebViewBranch() {
Expand Down
11 changes: 9 additions & 2 deletions print-changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@

# Prints all merged github pull requests after last release tag

REPOURL=$(git info|awk -F= '/^remote.origin.url=/ {print $2}')
PREVTAG=$(git tag|sed -n '$p')
REPOURL=$(git config --get remote.origin.url)
if [[ $REPOURL != https* ]]; then
SSH_PREFIX="git@github.com:"
REPOURL=${REPOURL%.git}
REPOURL="https://github.com/${REPOURL#$SSH_PREFIX}"
fi

CURRENT_TAG=$(git describe --abbrev=0 --tags)
PREVTAG=$(git describe --abbrev=0 --tags ${CURRENT_TAG}~1)
COMMIT=$(git rev-parse $PREVTAG)
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
read FOO
Expand Down
19 changes: 19 additions & 0 deletions unity-ads-android.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<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">
<component name="FacetManager">
<facet type="java-gradle" name="Java-Gradle">
<configuration>
<option name="BUILD_FOLDER_PATH" value="$MODULE_DIR$/build" />
<option name="BUILDABLE" value="false" />
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

0 comments on commit ebc4ba0

Please sign in to comment.