Browse Source

1.2.162 fixes (#67)

* Removed android.permission.READ_PHONE_STATE from manual

* Android related fixes

* Removed IDFA question from FAQ

* Fixes fo FAQ
Alexey Gulev 6 years ago
parent
commit
cb324e05ff

+ 2 - 2
docs/en/faq/faq.md

@@ -112,13 +112,13 @@ Can I use external Git tools?
 
 I try to publish my game to Appstore. How should I respond to IDFA?
 
-: Defold has built in support for IDFA (Advertising Identifier). You can fetch it via `sys.get_sys_info()`. When submitting, Apple has three checkboxes for their three valid use cases for the IDFA:
+: When submitting, Apple has three checkboxes for their three valid use cases for the IDFA:
 
   1. Serve ads within the app
   2. Install attribution from ads
   3. User action attribution from ads
 
-  If you check option 1, the app reviewer will look for ads to show up in the app. If your game does not show ads, the game might get rejected. Defold uses the id for cross promotion of your games, so you should check option 2.
+  If you check option 1, the app reviewer will look for ads to show up in the app. If your game does not show ads, the game might get rejected. Defold itself doesn't use AD id.
 
 How do I monetize from my game?
 

+ 0 - 3
docs/en/manuals/android.md

@@ -74,9 +74,6 @@ Google Play Billing is a service that lets you sell digital content from inside
 ### android.permission.WRITE_EXTERNAL_STORAGE (Protection level: dangerous)
 Allows an application to write to external storage. Starting in API level 19, this permission is not required to read/write files in your application-specific directories returned by Context.getExternalFilesDir(String) and Context.getExternalCacheDir(). This permission is needed if you intend to save/load files from disk (using io.* or sys.save/load) outside of the folder provided by [sys.get_save_file()](/ref/sys/#sys.get_save_file:application_id-file_name) and have `android:minSdkVersion` set to less than 19 in the Android manifest. ([Android official docs](https://developer.android.com/reference/android/Manifest.permission#WRITE_EXTERNAL_STORAGE)).
 
-### android.permission.READ_PHONE_STATE (Protection level: dangerous)
-Allows read only access to phone state, including the phone number of the device, current cellular network information, the status of any ongoing calls, and a list of any PhoneAccounts registered on the device. This permission is used to detect if a call is ongoing (for [sound.is_phone_call_active()](/ref/sound/#sound.is_phone_call_active)) as well as to populate the `device_ident` field of [sys.get_sys_info()](/ref/sys/#sys.get_sys_info). ([Android official docs](https://developer.android.com/reference/android/Manifest.permission#READ_PHONE_STATE))
-
 ### android.permission.WAKE_LOCK (Protection level: normal)
 Allows using PowerManager WakeLocks to keep processor from sleeping or screen from dimming. This permission is needed to temporarily prevent the device from sleeping while receiving a push notification. ([Android official docs](https://developer.android.com/reference/android/Manifest.permission#WAKE_LOCK))
 

+ 0 - 34
docs/en/manuals/extensions-details.md

@@ -44,40 +44,6 @@ For iOS/MacOS, we use `-miphoneos-version-min=8.0` and `-mmacosx-version-min=10.
 
 We don't specify a specific C++ version, so we use the default of each compiler.
 
-## Android
-
-We include the following libraries into the Android bundle:
-```
-com.google.android.gms.play-services-ads-identifier:16.0.0
-com.google.android.gms.play-services-base:16.0.1
-com.google.android.gms.play-services-tasks:16.0.1
-com.google.android.gms.play-services-basement:16.0.1
-com.android.support.support-v4:27.1.1
-android.arch.lifecycle.extensions:1.1.1
-com.android.support.support-fragment:27.1.1
-com.android.support.support-core-ui:27.1.1
-com.android.support.support-core-utils:27.1.1
-com.android.support.support-media-compat:27.1.1
-com.android.support.support-compat:27.1.1
-android.arch.lifecycle.compiler:1.1.1
-android.arch.lifecycle.reactivestreams:1.1.1
-android.arch.lifecycle.runtime:1.1.1
-android.arch.lifecycle.livedata:1.1.1
-android.arch.lifecycle.livedata-core:1.1.1
-android.arch.lifecycle.common:1.1.1
-android.arch.core.runtime:1.1.1
-android.arch.core.common:1.1.1
-android.arch.lifecycle.viewmodel:1.1.1
-com.android.support.support-annotations:27.1.1
-org.jetbrains.kotlin.kotlin-stdlib:1.2.20
-com.google.auto.auto-common:0.6
-com.squareup.javapoet:1.8.0
-org.reactivestreams.reactive-streams:1.0.0
-org.jetbrains.annotations:13.0
-com.google.guava.guava:18.0
-```
-*We plan to move Google Play Services to its own extension.*
-
 ## Win32 + Clang
 
 A recent addition is to be able to build the Windows builds using clang.

+ 5 - 5
docs/en/manuals/extensions-manifest-merge-tool.md

@@ -33,8 +33,10 @@ The extension manifests must be placed in a certain structure for the extension
 The Android platform already has a manifest merging tool (based on `ManifestMerger2`), and we use it inside `bob.jar` to merge manifests.
 For a complete set of instructions on how to modify your Android manifests, please refer to [their documentation](https://developer.android.com/studio/build/manifest-merge)
 
-> If you don't set your app's `android:minSdkVersion='9'` in your extension manifest, the following permissions will be added automatically:  `WRITE_EXTERNAL_STORAGE`, `READ_PHONE_STATE`, `READ_EXTERNAL_STORAGE`.
-
+::: important
+If you don't set your app's `android:targetSdkVersion` in your extension manifest, the following permissions will be added automatically:  `WRITE_EXTERNAL_STORAGE`, `READ_PHONE_STATE`, `READ_EXTERNAL_STORAGE`. You can read more about it in the official documentation [here](https://developer.android.com/studio/build/manifest-merge#implicit_system_permissions).
+We recommend to use: `<uses-sdk android:targetSdkVersion=“{{android.target_sdk_version}}” />`
+:::
 ### Example
 
 Base manifest
@@ -56,7 +58,7 @@ Extension manifest:
 
     <?xml version='1.0' encoding='utf-8'?>
     <manifest xmlns:android='http://schemas.android.com/apk/res/android' package='com.defold.testmerge'>
-        <uses-sdk android:minSdkVersion='9' />
+         <uses-sdk android:targetSdkVersion=“{{android.target_sdk_version}}” />
         <uses-feature android:required='true' android:glEsVersion='0x00030000' />
         <application>
             <meta-data android:name='com.facebook.sdk.ApplicationName'
@@ -249,5 +251,3 @@ Result
         </script>
     </body>
     </html>
-
-