<feed xmlns='http://www.w3.org/2005/Atom'>
<title>godot.git/platform/android/java/src/com, branch 2.1-stable</title>
<subtitle>Godot Engine – Multi-platform 2D and 3D game engine https://godotengine.org
</subtitle>
<id>https://git.neuromancer.sk/godot.git/atom?h=2.1-stable</id>
<link rel='self' href='https://git.neuromancer.sk/godot.git/atom?h=2.1-stable'/>
<link rel='alternate' type='text/html' href='https://git.neuromancer.sk/godot.git/'/>
<updated>2016-06-24T16:11:21Z</updated>
<entry>
<title>Remove duplicated aidl for android</title>
<updated>2016-06-24T16:11:21Z</updated>
<author>
<name>volzhs</name>
</author>
<published>2016-06-24T16:11:21Z</published>
<link rel='alternate' type='text/html' href='https://git.neuromancer.sk/godot.git/commit/?id=a5a5bdef25f95008e7c4ddecf48694c43000fbdf'/>
<id>urn:sha1:a5a5bdef25f95008e7c4ddecf48694c43000fbdf</id>
<content type='text'>
Tested IAP function on device.
</content>
</entry>
<entry>
<title>Add comments for NotificationCompat to support API &lt; 16</title>
<updated>2016-05-25T13:19:37Z</updated>
<author>
<name>volzhs</name>
</author>
<published>2016-05-25T13:19:37Z</published>
<link rel='alternate' type='text/html' href='https://git.neuromancer.sk/godot.git/commit/?id=e5d16eca466aa50b57a127d660499591f16f2255'/>
<id>urn:sha1:e5d16eca466aa50b57a127d660499591f16f2255</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix compatibility for Android API 14 with supporting API 23</title>
<updated>2016-05-24T02:22:35Z</updated>
<author>
<name>volzhs</name>
</author>
<published>2016-05-24T02:22:35Z</published>
<link rel='alternate' type='text/html' href='https://git.neuromancer.sk/godot.git/commit/?id=ff67c256f52b904bdabe17e755194149da9b219f'/>
<id>urn:sha1:ff67c256f52b904bdabe17e755194149da9b219f</id>
<content type='text'>
using ``NotificationCompat`` in ``support-v4`` library will increase APK filesize a little bit, but it guarantees to run OK with API 4+
tested with API 19 and 23 devices
</content>
</entry>
<entry>
<title>Supporting Android API 23 (Android 6.0)</title>
<updated>2016-05-20T13:57:49Z</updated>
<author>
<name>volzhs</name>
</author>
<published>2016-05-20T13:57:49Z</published>
<link rel='alternate' type='text/html' href='https://git.neuromancer.sk/godot.git/commit/?id=160713d4d36ab4bd5f9b53d0d3e0c69d7e4960f7'/>
<id>urn:sha1:160713d4d36ab4bd5f9b53d0d3e0c69d7e4960f7</id>
<content type='text'>
If we update build gradle to use ``compileSdkVersion 23``,
``org.apache.http`` package causes error. (issue #4711)

We need to use ``useLibrary 'org.apache.http.legacy'`` to solve this problem.
To use ``useLibrary``, we need to use latest gradle also.

And now, we faced another problem with ``APK Expansion`` java sources.

```
/platform/android/java/src/com/google/android/vending/expansion/downloader/impl/DownloadNotification.java
137 :             mCurrentNotification.setLatestEventInfo(mContext, mCurrentTitle, mCurrentText, mContentIntent); // causes error
```

So, some of APK Expansion java sources are updated by referencing commits from https://github.com/danikula/Google-Play-Expansion-File
And dropped V3CustomNotification.java which was for android 3.0, since godot supports android 14 (4.0) above officially.

Unfortunately, another problem, The 'MissingTranslation' error was occurred.
So, build.gradle is updated to use ``disable 'MissingTranslation'``

Additionally, I updated ``buildToolsVersion``, ``targetSdkVersion`` to latest version.

I tested APK Expansion funtionality on Android 6.0 (Nexus 9, Nexus 6p) and Android 4.4 (Galaxy Note 2)  with Google Developer console.
</content>
</entry>
<entry>
<title>Renamed godot domain from com.android.godot (which was incorrect) to org.godotengine.godot</title>
<updated>2016-01-08T20:53:00Z</updated>
<author>
<name>Juan Linietsky</name>
</author>
<published>2016-01-08T20:53:00Z</published>
<link rel='alternate' type='text/html' href='https://git.neuromancer.sk/godot.git/commit/?id=40ba22631bbb7fc4c6b88d01402e132dbaceaf2b'/>
<id>urn:sha1:40ba22631bbb7fc4c6b88d01402e132dbaceaf2b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>-Removed ANT build system for Android, as it was deprecated by Google</title>
<updated>2016-01-08T16:36:44Z</updated>
<author>
<name>Juan Linietsky</name>
</author>
<published>2016-01-08T16:36:44Z</published>
<link rel='alternate' type='text/html' href='https://git.neuromancer.sk/godot.git/commit/?id=401622cc229317bd218f070dd07a3bd8db582f16'/>
<id>urn:sha1:401622cc229317bd218f070dd07a3bd8db582f16</id>
<content type='text'>
-Added new Gradle build system, as it is the required build system
</content>
</entry>
<entry>
<title>Update copyright to 2016 in headers</title>
<updated>2016-01-01T13:50:53Z</updated>
<author>
<name>George Marques</name>
</author>
<published>2016-01-01T13:50:53Z</published>
<link rel='alternate' type='text/html' href='https://git.neuromancer.sk/godot.git/commit/?id=5be9ff7b6715a661e85f99b108f96340de7ef435'/>
<id>urn:sha1:5be9ff7b6715a661e85f99b108f96340de7ef435</id>
<content type='text'>
</content>
</entry>
<entry>
<title>-several fixes to Android to work better on Tegra 3/4 devices, uses 16 bits FBOs so all 2D shader effects should now work in every single Android device.</title>
<updated>2015-12-02T14:15:48Z</updated>
<author>
<name>Juan Linietsky</name>
</author>
<published>2015-12-02T14:15:48Z</published>
<link rel='alternate' type='text/html' href='https://git.neuromancer.sk/godot.git/commit/?id=4b1f0afb014cae7c9a84c8d7c0429f45f425214b'/>
<id>urn:sha1:4b1f0afb014cae7c9a84c8d7c0429f45f425214b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tegra 3 fix</title>
<updated>2015-11-21T22:21:36Z</updated>
<author>
<name>mikica1986vee</name>
</author>
<published>2015-11-21T22:21:36Z</published>
<link rel='alternate' type='text/html' href='https://git.neuromancer.sk/godot.git/commit/?id=d6b317a2c1d6560323d37831ab1d40f3b2674adc'/>
<id>urn:sha1:d6b317a2c1d6560323d37831ab1d40f3b2674adc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>improve android payments</title>
<updated>2015-10-28T06:48:37Z</updated>
<author>
<name>volzhs</name>
</author>
<published>2015-10-28T06:48:37Z</published>
<link rel='alternate' type='text/html' href='https://git.neuromancer.sk/godot.git/commit/?id=3fbaa479e33466394cd243ab652bd1c4c082549a'/>
<id>urn:sha1:3fbaa479e33466394cd243ab652bd1c4c082549a</id>
<content type='text'>
GodotPaymentV3 currently consumes purchased item right after purchasing.
But, some in-app item should not consume like "remove ads permanently"
So, I added "setAutoConsume(boolean)", "requestPurchased()",
"consume(sku_string)".
AutoConsume is true by default as before.

usage:

func _ready():
	var payment = Globals.get_singleton("GodotPayments")
	payment.setPurchaseCallbackId(get_instance_ID())
	payment.setAutoConsume(false) # default : true
	payment.requestPurchased() # callback : has_purchased
	payment.purchase("item_name") # callback : purchase_success,
purchase_fail, purchase_cancel, purchase_owned
	payment.consume("item_name") # callback : consume_success

func purchase_success(receipt, signature, sku):
	print("purchase_success : ", sku)

func purchase_fail():
	print("purchase_fail")

func purchase_cancel():
	print("purchase_cancel")

func purchase_owned(sku):
	print("purchase_owned : ", sku)

func consume_success(receipt, signature, sku):
	print("consume_success : ", sku)

func has_purchased(receipt, signature, sku):
	if sku == "":
		print("has_purchased : nothing")
	else:
		print("has_purchased : ", sku)
</content>
</entry>
</feed>
