Add library patch

This commit is contained in:
Erwan Croze 2017-03-03 09:36:42 +01:00
parent 3abe272517
commit 8c5fbbd031

361
library.patch Normal file
View file

@ -0,0 +1,361 @@
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 950aa71e..cc615068 100755
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -9,309 +9,4 @@
android:minSdkVersion="14"
android:targetSdkVersion="23"/>
- <!-- Permissions for Push Notification -->
- <!--<permission
- android:name="org.linphone.permission.C2D_MESSAGE"
- android:protectionLevel="signature"/> GCM permission--> <!-- Change package ! -->
- <!--<uses-permission android:name="org.linphone.permission.C2D_MESSAGE"/> GCM permission--> <!-- Change package ! -->
- <!--<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/> GCM permission-->
- <uses-permission android:name="android.permission.INTERNET"/>
- <uses-permission android:name="android.permission.RECORD_AUDIO"/>
- <uses-permission android:name="android.permission.READ_CONTACTS"/>
- <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
- <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
- <uses-permission android:name="android.permission.WAKE_LOCK"/>
- <uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS"/>
- <uses-permission android:name="android.permission.CALL_PHONE"/>
- <!-- Needed to allow Linphone to install on tablets, since android.permission.CALL_PHONE implies android.hardware.telephony is required -->
- <uses-feature
- android:name="android.hardware.telephony"
- android:required="false"/>
-
- <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
- <uses-permission android:name="android.permission.VIBRATE"/>
- <uses-permission android:name="android.permission.CAMERA"/>
- <!-- Needed to allow Linphone to install on tablets, since android.permission.CAMERA implies android.hardware.camera and android.hardware.camera.autofocus are required -->
- <uses-feature
- android:name="android.hardware.camera"
- android:required="false"/>
-
- <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
- <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
- <!-- Needed to store received images if the user wants to -->
- <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
- <!-- Needed to use our own Contact editor -->
- <uses-permission android:name="android.permission.WRITE_CONTACTS"/>
- <!-- Needed to route the audio to the bluetooth headset if available -->
- <uses-permission android:name="android.permission.BLUETOOTH"/>
- <uses-permission android:name="android.permission.BROADCAST_STICKY"/>
- <!-- Needed to pre fill the wizard email field (only if enabled in custom settings) -->
- <uses-permission android:name="android.permission.GET_ACCOUNTS"/>
- <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
- <uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE"/>
- <uses-permission android:name="android.permission.READ_SYNC_SETTINGS"/>
- <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS"/>
- <uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS"/>
- <!-- Needed for in-app purchase -->
- <!-- <uses-permission android:name="com.android.vending.BILLING"/> -->
- <!-- Needed for overlay widget -->
- <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
-
- <supports-screens
- android:anyDensity="true"
- android:largeScreens="true"
- android:normalScreens="true"
- android:smallScreens="true"
- android:xlargeScreens="true"/>
-
- <application
- android:allowBackup="true"
- android:icon="@mipmap/ic_launcher"
- android:label="@string/app_name"
- android:largeHeap="true">
- <activity
- android:name=".LinphoneLauncherActivity"
- android:exported="true"
- android:label="@string/app_name"
- android:theme="@style/NoTitle"
- android:windowSoftInputMode="adjustPan|stateHidden">
- <intent-filter>
- <action android:name="android.intent.action.MAIN"/>
-
- <category android:name="android.intent.category.LAUNCHER"/>
- </intent-filter>
- <intent-filter>
- <action android:name="android.intent.action.CALL"/>
- <action android:name="android.intent.action.CALL_PRIVILEGED"/>
-
- <category android:name="android.intent.category.DEFAULT"/>
-
- <data android:scheme="tel"/>
- <data android:scheme="sip"/>
- />
- </intent-filter>
- <intent-filter>
- <action android:name="android.intent.action.SENDTO"/>
-
- <category android:name="android.intent.category.DEFAULT"/>
-
- <data android:scheme="sip"/>
- <data android:scheme="imto"/>
- </intent-filter>
- <intent-filter>
- <data android:mimeType="@string/sync_mimetype"/> <!-- Change package in res/values/non_localizable_custom.xml ! -->
- <action android:name="android.intent.action.VIEW"/>
-
- <category android:name="android.intent.category.BROWSABLE"/>
- <category android:name="android.intent.category.DEFAULT"/>
- </intent-filter>
- </activity>
- <activity
- android:name=".LinphoneActivity"
- android:launchMode="singleTask"
- android:theme="@style/NoTitle">
- <intent-filter>
- <action android:name="android.intent.action.MAIN"/>
- </intent-filter>
- </activity>
- <activity
- android:name=".CallIncomingActivity"
- android:launchMode="singleTop"
- android:theme="@style/NoTitle">
- <intent-filter>
- <action android:name="android.intent.action.MAIN"/>
- </intent-filter>
- </activity>
- <activity
- android:name=".CallOutgoingActivity"
- android:launchMode="singleTop"
- android:theme="@style/NoTitle">
- <intent-filter>
- <action android:name="android.intent.action.MAIN"/>
- </intent-filter>
- </activity>
- <activity
- android:name=".CallActivity"
- android:launchMode="singleTop"
- android:theme="@style/FullScreen">
- <intent-filter>
- <action android:name="android.intent.action.MAIN"/>
- </intent-filter>
-
- <!--
- <intent-filter>
- <action android:name="android.intent.action.VIEW" />
- <data android:mimeType="audio/*" />
- <data android:mimeType="video/*" />
- <category android:name="android.intent.category.DEFAULT" />
- </intent-filter>
- -->
- </activity>
- <activity
- android:name=".assistant.AssistantActivity"
- android:screenOrientation="behind"
- android:theme="@style/NoTitle">
- <intent-filter>
- <action android:name="android.intent.action.MAIN"/>
- </intent-filter>
- </activity>
- <activity
- android:name=".purchase.InAppPurchaseActivity"
- android:screenOrientation="nosensor"
- android:theme="@style/NoTitle">
- <intent-filter>
- <action android:name="android.intent.action.MAIN"/>
- </intent-filter>
- </activity>
- <activity
- android:name=".assistant.RemoteProvisioningLoginActivity"
- android:screenOrientation="nosensor"
- android:theme="@style/NoTitle">
- <intent-filter>
- <action android:name="android.intent.action.MAIN"/>
- </intent-filter>
- </activity>
- <activity
- android:name=".assistant.RemoteProvisioningActivity"
- android:screenOrientation="nosensor"
- android:theme="@style/NoTitle">
- <intent-filter>
- <action android:name="android.intent.action.MAIN"/>
- </intent-filter>
- <intent-filter>
- <data android:scheme="linphone-config"/> <!-- Change if needed -->
- <action android:name="android.intent.action.VIEW"/>
-
- <category android:name="android.intent.category.BROWSABLE"/>
- <category android:name="android.intent.category.DEFAULT"/>
- </intent-filter>
- </activity>
-
- <service
- android:name=".LinphoneService"
- android:label="@string/service_name"
- android:stopWithTask="false"/>
- <service
- android:name=".sync.SyncService"
- android:exported="true">
- <intent-filter>
- <action android:name="android.content.SyncAdapter"/>
- </intent-filter>
-
- <meta-data
- android:name="android.content.SyncAdapter"
- android:resource="@xml/syncadapter"/>
- <meta-data
- android:name="android.provider.CONTACTS_STRUCTURE"
- android:resource="@xml/contacts"/>
- </service>
- <service android:name=".sync.AuthenticationService">
- <intent-filter>
- <action android:name="android.accounts.AccountAuthenticator"/>
- </intent-filter>
-
- <meta-data
- android:name="android.accounts.AccountAuthenticator"
- android:resource="@xml/authenticator"/>
- </service>
-
- <receiver android:name=".NetworkManager">
- <intent-filter>
- <action android:name="android.net.conn.CONNECTIVITY_CHANGE"/>
- </intent-filter>
- </receiver>
- <receiver
- android:name=".BluetoothManager"
- android:enabled="false">
- </receiver>
- <receiver android:name=".BootReceiver">
- <intent-filter>
- <action android:name="android.intent.action.BOOT_COMPLETED"/>
- </intent-filter>
- <intent-filter>
- <action android:name="android.intent.action.ACTION_SHUTDOWN"/>
- </intent-filter>
- </receiver>
- <receiver android:name=".PhoneStateChangedReceiver">
- <intent-filter>
- <action android:name="android.intent.action.PHONE_STATE"/>
- </intent-filter>
- </receiver>
-
- <!-- This one needs to be registered from application -->
- <receiver android:name=".KeepAliveReceiver"/>
-
- <!-- Needed for push notification -->
- <!--<receiver
- android:name=".gcm.GCMReceiver"
- android:permission="com.google.android.c2dm.permission.SEND">
- <intent-filter>
- <action android:name="com.google.android.c2dm.intent.RECEIVE"/>
- <action android:name="com.google.android.c2dm.intent.REGISTRATION"/>
-
- <category android:name="org.linphone"/>--> <!-- Change package ! -->
- <!--</intent-filter>
- </receiver>
-
- <service android:name=".gcm.GCMService"/>-->
-
- <service android:name=".firebase.FirebaseIdService">
- <intent-filter>
- <action android:name="com.google.firebase.INSTANCE_ID_EVENT"/>
- </intent-filter>
- </service>
-
- <service
- android:name=".firebase.FirebaseMessaging">
- <intent-filter>
- <action android:name="com.google.firebase.MESSAGING_EVENT"/>
- </intent-filter>
- </service>
-
- <activity
- android:name=".tutorials.TutorialLauncherActivity"
- android:theme="@style/NoTitle">
- <intent-filter>
- <action android:name="android.intent.action.MAIN"/>
- </intent-filter>
- </activity>
- <activity
- android:name=".tutorials.TutorialBuddyStatusActivity"
- android:theme="@style/NoTitle">
- <intent-filter>
- <action android:name="android.intent.action.MAIN"/>
- </intent-filter>
- </activity>
- <activity
- android:name=".tutorials.TutorialChatRoomActivity"
- android:theme="@style/NoTitle">
- <intent-filter>
- <action android:name="android.intent.action.MAIN"/>
- </intent-filter>
- </activity>
- <activity
- android:name=".tutorials.TutorialHelloWorldActivity"
- android:theme="@style/NoTitle">
- <intent-filter>
- <action android:name="android.intent.action.MAIN"/>
- </intent-filter>
- </activity>
- <activity
- android:name=".tutorials.TutorialRegistrationActivity"
- android:theme="@style/NoTitle">
- <intent-filter>
- <action android:name="android.intent.action.MAIN"/>
- </intent-filter>
- </activity>
- <activity
- android:name=".tutorials.TutorialCardDavSync"
- android:theme="@style/NoTitle">
- <intent-filter>
- <action android:name="android.intent.action.MAIN"/>
- </intent-filter>
- </activity>
- <activity android:name=".LinphoneGenericActivity">
- </activity>
- </application>
-
</manifest>
diff --git a/build.gradle b/build.gradle
index 402368a6..d7835538 100644
--- a/build.gradle
+++ b/build.gradle
@@ -25,7 +25,7 @@ buildscript {
}
}
-apply plugin: 'com.android.application'
+apply plugin: 'com.android.library'
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
@@ -44,7 +44,7 @@ android {
defaultConfig {
compileSdkVersion 23
buildToolsVersion "25.0.2"
- applicationId getPackageName()
+ //applicationId getPackageName()
multiDexEnabled true
}
@@ -57,17 +57,17 @@ android {
// Signing
signingConfigs {
- release {
- storeFile file(RELEASE_STORE_FILE)
- storePassword RELEASE_STORE_PASSWORD
- keyAlias RELEASE_KEY_ALIAS
- keyPassword RELEASE_KEY_PASSWORD
- }
+ //release {
+ //storeFile file(RELEASE_STORE_FILE)
+ //storePassword RELEASE_STORE_PASSWORD
+ //keyAlias RELEASE_KEY_ALIAS
+ //keyPassword RELEASE_KEY_PASSWORD
+ //}
}
buildTypes {
release {
- signingConfig signingConfigs.release
+ signingConfig null//signingConfigs.release
}
}