Skip to content

Commit

Permalink
Squashed commit
Browse files Browse the repository at this point in the history
- Update sublibs
- Update build tools
- Add reminders service stub
- Update play services version, fixes TeamVanced#138
  • Loading branch information
mar-v-in committed Jun 2, 2016
1 parent 7011908 commit ec93cc4
Show file tree
Hide file tree
Showing 9 changed files with 221 additions and 6 deletions.
2 changes: 1 addition & 1 deletion extern/GmsApi
Submodule GmsApi updated 22 files
+1 −1 extern/SafeParcel
+1 −1 play-services-api/build.gradle
+3 −0 play-services-api/src/main/aidl/com/google/android/gms/reminders/AccountState.aidl
+3 −0 play-services-api/src/main/aidl/com/google/android/gms/reminders/CreateReminderOptionsInternal.aidl
+3 −0 play-services-api/src/main/aidl/com/google/android/gms/reminders/LoadRemindersOptions.aidl
+3 −0 play-services-api/src/main/aidl/com/google/android/gms/reminders/ReindexDueDatesOptions.aidl
+3 −0 play-services-api/src/main/aidl/com/google/android/gms/reminders/UpdateRecurrenceOptions.aidl
+17 −0 play-services-api/src/main/aidl/com/google/android/gms/reminders/internal/IRemindersCallbacks.aidl
+5 −0 play-services-api/src/main/aidl/com/google/android/gms/reminders/internal/IRemindersListener.aidl
+37 −0 play-services-api/src/main/aidl/com/google/android/gms/reminders/internal/IRemindersService.aidl
+3 −0 play-services-api/src/main/aidl/com/google/android/gms/reminders/model/CustomizedSnoozePresetEntity.aidl
+3 −0 play-services-api/src/main/aidl/com/google/android/gms/reminders/model/TaskEntity.aidl
+3 −0 play-services-api/src/main/aidl/com/google/android/gms/reminders/model/TaskIdEntity.aidl
+23 −0 play-services-api/src/main/java/com/google/android/gms/reminders/AccountState.java
+23 −0 play-services-api/src/main/java/com/google/android/gms/reminders/CreateReminderOptionsInternal.java
+23 −0 play-services-api/src/main/java/com/google/android/gms/reminders/LoadRemindersOptions.java
+23 −0 play-services-api/src/main/java/com/google/android/gms/reminders/ReindexDueDatesOptions.java
+23 −0 play-services-api/src/main/java/com/google/android/gms/reminders/UpdateRecurrenceOptions.java
+23 −0 play-services-api/src/main/java/com/google/android/gms/reminders/model/CustomizedSnoozePresetEntity.java
+23 −0 play-services-api/src/main/java/com/google/android/gms/reminders/model/TaskEntity.java
+23 −0 play-services-api/src/main/java/com/google/android/gms/reminders/model/TaskIdEntity.java
+1 −1 play-services-api/src/main/java/org/microg/gms/common/Constants.java
2 changes: 1 addition & 1 deletion extern/UnifiedNlp
2 changes: 1 addition & 1 deletion extern/Wearable
4 changes: 2 additions & 2 deletions play-services-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.0.0'
classpath 'com.android.tools.build:gradle:2.1.0'
}
}

Expand Down Expand Up @@ -81,7 +81,7 @@ android {
def x = getMyVersionCode()
// We are not allowed to freely choose the hundreds column as it defines the device type
// Update commit id to current when increasing gms version code
versionCode(8490200 + x % 100 + ((int) (x / 100)) * 1000)
versionCode(9083200 + x % 100 + ((int) (x / 100)) * 1000)

ndk {
abiFilters "armeabi", "armeabi-v7a", "arm64-v8a", "x86"
Expand Down
7 changes: 6 additions & 1 deletion play-services-core/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,12 @@
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</service>
<service android:name="org.microg.gms.reminders.RemindersService">
<intent-filter>
<action android:name="com.google.android.gms.reminders.service.START"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</service>

<service android:name="org.microg.gms.DummyService">
<intent-filter>
Expand All @@ -442,7 +448,6 @@
<action android:name="com.google.android.gms.wearable.BIND"/>
<action android:name="com.google.android.gms.auth.service.START"/>
<action android:name="com.google.android.gms.fitness.GoogleFitnessService.START"/>
<action android:name="com.google.android.gms.reminders.service.START"/>
<action android:name="com.google.android.gms.deviceconnection.service.START"/>
<action android:name="com.google.android.gms.droidguard.service.START"/>
<action android:name="com.google.android.gms.lockbox.service.START"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

import java.util.Set;

public class DatabaseHelper extends SQLiteOpenHelper {
private static final int DB_VERSION = 3;
private static final String DB_NAME = "pluscontacts.db";
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
* Copyright 2013-2016 microG Project Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.microg.gms.reminders;

import android.os.RemoteException;

import com.google.android.gms.common.internal.GetServiceRequest;
import com.google.android.gms.common.internal.IGmsCallbacks;

import org.microg.gms.BaseService;
import org.microg.gms.common.GmsService;

public class RemindersService extends BaseService {

public RemindersService() {
super("GmsRemindSvc", GmsService.REMINDERS);
}

@Override
public void handleServiceRequest(IGmsCallbacks callback, GetServiceRequest request, GmsService service) throws RemoteException {
callback.onPostInitComplete(0, new RemindersServiceImpl(), null);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
/*
* Copyright 2013-2016 microG Project Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.microg.gms.reminders;

import android.os.RemoteException;
import android.util.Log;

import com.google.android.gms.reminders.AccountState;
import com.google.android.gms.reminders.CreateReminderOptionsInternal;
import com.google.android.gms.reminders.LoadRemindersOptions;
import com.google.android.gms.reminders.ReindexDueDatesOptions;
import com.google.android.gms.reminders.UpdateRecurrenceOptions;
import com.google.android.gms.reminders.internal.IRemindersCallbacks;
import com.google.android.gms.reminders.internal.IRemindersService;
import com.google.android.gms.reminders.model.CustomizedSnoozePresetEntity;
import com.google.android.gms.reminders.model.TaskEntity;
import com.google.android.gms.reminders.model.TaskIdEntity;

import java.util.List;

public class RemindersServiceImpl extends IRemindersService.Stub {
private static final String TAG = RemindersServiceImpl.class.getSimpleName();

@Override
public void loadReminders(IRemindersCallbacks callbacks, LoadRemindersOptions options) throws RemoteException {
Log.d(TAG, "unimplemented Method: loadReminders");

}

@Override
public void addListener(IRemindersCallbacks callbacks) throws RemoteException {
Log.d(TAG, "unimplemented Method: addListener");

}

@Override
public void createReminder(IRemindersCallbacks callbacks, TaskEntity task) throws RemoteException {
Log.d(TAG, "unimplemented Method: createReminder");

}

@Override
public void updateReminder(IRemindersCallbacks callbacks, TaskEntity task) throws RemoteException {
Log.d(TAG, "unimplemented Method: updateReminder");

}

@Override
public void deleteReminder(IRemindersCallbacks callbacks, TaskIdEntity taskId) throws RemoteException {
Log.d(TAG, "unimplemented Method: deleteReminder");

}

@Override
public void bumpReminder(IRemindersCallbacks callbacks, TaskIdEntity taskId) throws RemoteException {
Log.d(TAG, "unimplemented Method: bumpReminder");

}

@Override
public void hasUpcomingReminders(IRemindersCallbacks callbacks) throws RemoteException {
Log.d(TAG, "unimplemented Method: hasUpcomingReminders");

}

@Override
public void createRecurrence(IRemindersCallbacks callbacks, TaskEntity task) throws RemoteException {
Log.d(TAG, "unimplemented Method: createRecurrence");

}

@Override
public void updateRecurrence(IRemindersCallbacks callbacks, String s1, TaskEntity task, UpdateRecurrenceOptions options) throws RemoteException {
Log.d(TAG, "unimplemented Method: updateRecurrence");

}

@Override
public void deleteRecurrence(IRemindersCallbacks callbacks, String s1, UpdateRecurrenceOptions options) throws RemoteException {
Log.d(TAG, "unimplemented Method: deleteRecurrence");

}

@Override
public void changeRecurrence(IRemindersCallbacks callbacks, String s1, TaskEntity task, UpdateRecurrenceOptions options) throws RemoteException {
Log.d(TAG, "unimplemented Method: changeRecurrence");

}

@Override
public void makeTaskRecurring(IRemindersCallbacks callbacks, TaskEntity task) throws RemoteException {
Log.d(TAG, "unimplemented Method: makeTaskRecurring");

}

@Override
public void makeRecurrenceSingleInstance(IRemindersCallbacks callbacks, String s1, TaskEntity task, UpdateRecurrenceOptions options) throws RemoteException {
Log.d(TAG, "unimplemented Method: makeRecurrenceSingleInstance");

}

@Override
public void clearListeners() throws RemoteException {
Log.d(TAG, "unimplemented Method: clearListeners");

}

@Override
public void batchUpdateReminders(IRemindersCallbacks callbacks, List<TaskEntity> tasks) throws RemoteException {
Log.d(TAG, "unimplemented Method: batchUpdateReminders");

}

@Override
public void createReminderWithOptions(IRemindersCallbacks callbacks, TaskEntity task, CreateReminderOptionsInternal options) throws RemoteException {
Log.d(TAG, "unimplemented Method: createReminderWithOptions");

}

@Override
public void getCustomizedSnoozePreset(IRemindersCallbacks callbacks) throws RemoteException {
Log.d(TAG, "unimplemented Method: getCustomizedSnoozePreset");

}

@Override
public void setCustomizedSnoozePreset(IRemindersCallbacks callbacks, CustomizedSnoozePresetEntity preset) throws RemoteException {
Log.d(TAG, "unimplemented Method: setCustomizedSnoozePreset");

}

@Override
public void setAccountState(IRemindersCallbacks callbacks, AccountState accountState) throws RemoteException {
Log.d(TAG, "unimplemented Method: setAccountState");

}

@Override
public void getAccountState(IRemindersCallbacks callbacks) throws RemoteException {
Log.d(TAG, "unimplemented Method: getAccountState");

}

@Override
public void checkReindexDueDatesNeeded(IRemindersCallbacks callbacks, ReindexDueDatesOptions options) throws RemoteException {
Log.d(TAG, "unimplemented Method: checkReindexDueDatesNeeded");

}

@Override
public void reindexDueDates(IRemindersCallbacks callbacks, ReindexDueDatesOptions options) throws RemoteException {
Log.d(TAG, "unimplemented Method: reindexDueDates");

}
}
2 changes: 2 additions & 0 deletions proguard.flags
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
-keep public class com.google.android.gms.maps.internal.CreatorImpl { public *; }
-keep public class com.google.android.gms.common.security.ProviderInstallerImpl { public *; }
-keep public class com.google.android.gms.plus.plusone.PlusOneButtonCreatorImpl { public *; }
-keep public class com.google.android.gms.dynamic.IObjectWrapper { public *; }

# Keep AutoSafeParcelables
-keep public class * extends org.microg.safeparcel.AutoSafeParcelable {
Expand All @@ -37,5 +38,6 @@
-keep class **.BuildConfig { *; }

# Keep protobuf class builders
-keep public class com.squareup.wire.Message
-keep public class * extends com.squareup.wire.Message
-keep public class * extends com.squareup.wire.Message$Builder { public <init>(...); }

0 comments on commit ec93cc4

Please sign in to comment.