0
0
Fork 0
mirror of https://github.com/YTVanced/VancedMicroG synced 2024-11-30 15:13:02 +00:00

Increase basement version and add initial parts of cast-framework-api

This commit is contained in:
Marvin W 2016-11-06 02:21:11 +01:00
parent 107d70080a
commit f7716698da
No known key found for this signature in database
GPG key ID: 072E9235DB996F2A
22 changed files with 227 additions and 2 deletions

View file

@ -44,6 +44,7 @@ android {
dependencies {
compile project(':play-services-basement')
compile project(':play-services-cast-api')
compile project(':play-services-cast-framework-api')
compile project(':play-services-iid-api')
compile project(':play-services-location-api')
compile project(':play-services-wearable-api')

View file

@ -47,6 +47,6 @@ android {
}
dependencies {
compile 'com.android.support:support-v4:23.4.0'
compile 'com.android.support:support-v4:24.2.1'
compile 'org.microg:safe-parcel:1.4.0'
}

View file

@ -17,7 +17,7 @@
package org.microg.gms.common;
public class Constants {
public static final int MAX_REFERENCE_VERSION = 9683000;
public static final int MAX_REFERENCE_VERSION = 10084000;
public static final String GMS_PACKAGE_NAME = "com.google.android.gms";
public static final String GSF_PACKAGE_NAME = "com.google.android.gsf";
public static final String GMS_PACKAGE_SIGNATURE_SHA1 = "38918a453d07199354f8b19af05ec6562ced5788";

View file

@ -0,0 +1,46 @@
/*
* Copyright 2013-2015 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.
*/
apply plugin: 'com.android.library'
String getMyVersionName() {
def stdout = new ByteArrayOutputStream()
if (rootProject.file("gradlew").exists())
exec { commandLine 'git', 'describe', '--tags', '--always', '--dirty'; standardOutput = stdout }
else // automatic build system, don't tag dirty
exec { commandLine 'git', 'describe', '--tags', '--always'; standardOutput = stdout }
return stdout.toString().trim().substring(1)
}
group = 'org.microg'
version = getMyVersionName()
android {
compileSdkVersion androidCompileSdk()
buildToolsVersion "$androidBuildVersionTools"
defaultConfig {
versionName getMyVersionName()
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_6
}
}
dependencies {
compile project(':play-services-basement')
}

View file

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright 2013-2015 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.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.microg.gms.cast.framework.api">
<uses-sdk android:minSdkVersion="9" />
<application />
</manifest>

View file

@ -0,0 +1,3 @@
package com.google.android.gms.cast.framework;
parcelable CastOptions;

View file

@ -0,0 +1,5 @@
package com.google.android.gms.cast.framework;
interface ICastConnectionController {
}

View file

@ -0,0 +1,15 @@
package com.google.android.gms.cast.framework;
import com.google.android.gms.cast.framework.ISessionManager;
import com.google.android.gms.dynamic.IObjectWrapper;
interface ICastContext {
Bundle getMergedSelectorAsBundle() = 0;
boolean isApplicationVisible() = 1;
//void addAppVisibilityListener(IAppVisibilityListener listener) = 2;
//void removeAppVisibilityListener(IAppVisibilityListener listener) = 3;
ISessionManager getSessionManager() = 4;
void destroy() = 5;
void onActivityResumed(in IObjectWrapper activity) = 6;
void onActivityPaused(in IObjectWrapper activity) = 7;
}

View file

@ -0,0 +1,5 @@
package com.google.android.gms.cast.framework;
interface ICastSession {
}

View file

@ -0,0 +1,5 @@
package com.google.android.gms.cast.framework;
interface IReconnectionService {
}

View file

@ -0,0 +1,5 @@
package com.google.android.gms.cast.framework;
interface ISession {
}

View file

@ -0,0 +1,13 @@
package com.google.android.gms.cast.framework;
import com.google.android.gms.dynamic.IObjectWrapper;
interface ISessionManager {
IObjectWrapper getWrappedCurrentSession() = 0;
//void addSessionManagerListener(ISessionManagerListener listener) = 1;
//void removeSessionManagerListener(ISessionManagerListener listener) = 2;
//void addCastStateListener(ICastStateListener listener) = 3;
//void removeCastStateListener(ICastStateListener listener) = 4;
void endCurrentSession(boolean b, boolean stopCasting) = 5;
IObjectWrapper getWrappedThis() = 6;
}

View file

@ -0,0 +1,5 @@
package com.google.android.gms.cast.framework;
interface ISessionProxy {
}

View file

@ -0,0 +1,24 @@
package com.google.android.gms.cast.framework.internal;
import com.google.android.gms.cast.framework.CastOptions;
import com.google.android.gms.cast.framework.ICastConnectionController;
import com.google.android.gms.cast.framework.ICastContext;
import com.google.android.gms.cast.framework.ICastSession;
import com.google.android.gms.cast.framework.IReconnectionService;
import com.google.android.gms.cast.framework.ISession;
import com.google.android.gms.cast.framework.ISessionProxy;
import com.google.android.gms.cast.framework.internal.IMediaRouter;
import com.google.android.gms.cast.framework.media.CastMediaOptions;
import com.google.android.gms.cast.framework.media.IMediaNotificationService;
import com.google.android.gms.cast.framework.media.internal.IFetchBitmapTask;
import com.google.android.gms.cast.framework.media.internal.IFetchBitmapTaskProgressPublisher;
import com.google.android.gms.dynamic.IObjectWrapper;
interface ICastDynamiteModule {
ICastContext newCastContextImpl(in IObjectWrapper context, in CastOptions options, IMediaRouter router, in Map map) = 0;
ISession newSessionImpl(String s1, String s2, ISessionProxy proxy) = 1;
ICastSession newCastSessionImpl(in CastOptions options, in IObjectWrapper session, ICastConnectionController controller) = 2;
IMediaNotificationService newMediaNotificationServiceImpl(in IObjectWrapper service, in IObjectWrapper castContext, in IObjectWrapper resources, in CastMediaOptions options) = 3;
IReconnectionService newReconnectionServiceImpl(in IObjectWrapper service, in IObjectWrapper sessionManager, in IObjectWrapper discoveryManager) = 4;
IFetchBitmapTask newFetchBitmapTaskImpl(in IObjectWrapper asyncTask, IFetchBitmapTaskProgressPublisher progressPublisher, int i1, int i2, boolean b1, long l1, int i3, int i4, int i5) = 5;
}

View file

@ -0,0 +1,5 @@
package com.google.android.gms.cast.framework.internal;
interface IMediaRouter {
}

View file

@ -0,0 +1,3 @@
package com.google.android.gms.cast.framework.media;
parcelable CastMediaOptions;

View file

@ -0,0 +1,5 @@
package com.google.android.gms.cast.framework.media;
interface IMediaNotificationService {
}

View file

@ -0,0 +1,5 @@
package com.google.android.gms.cast.framework.media.internal;
interface IFetchBitmapTask {
}

View file

@ -0,0 +1,5 @@
package com.google.android.gms.cast.framework.media.internal;
interface IFetchBitmapTaskProgressPublisher {
}

View file

@ -0,0 +1,25 @@
/*
* 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 com.google.android.gms.cast.framework;
import org.microg.safeparcel.AutoSafeParcelable;
public class CastOptions extends AutoSafeParcelable {
public static Creator<CastOptions> CREATOR = new AutoCreator<CastOptions>(CastOptions.class);
}

View file

@ -0,0 +1,25 @@
/*
* 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 com.google.android.gms.cast.framework.media;
import org.microg.safeparcel.AutoSafeParcelable;
public class CastMediaOptions extends AutoSafeParcelable {
public static Creator<CastMediaOptions> CREATOR = new AutoCreator<CastMediaOptions>(CastMediaOptions.class);
}

View file

@ -1,6 +1,7 @@
include ':play-services-basement'
include ':play-services-api'
include ':play-services-cast-api'
include ':play-services-cast-framework-api'
include ':play-services-iid-api'
include ':play-services-location-api'
include ':play-services-wearable-api'