Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Verified Commit a7eb9a27 authored by Marvin W.'s avatar Marvin W. 🐿️
Browse files

Update firebase dynamic links API

parent ac779f9a
Loading
Loading
Loading
Loading
+17 −31
Original line number Diff line number Diff line
/*
 * Copyright 2019 e Foundation
 *
 * 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.
 * SPDX-FileCopyrightText: 2019, e Foundation
 * SPDX-FileCopyrightText: 2020, microG Project Team
 * SPDX-License-Identifier: Apache-2.0
 */

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()
apply plugin: 'maven-publish'
apply plugin: 'signing'

android {
    compileSdkVersion androidCompileSdk()
    compileSdkVersion androidCompileSdk
    buildToolsVersion "$androidBuildVersionTools"

    defaultConfig {
        versionName getMyVersionName()
        minSdkVersion androidMinSdk()
        targetSdkVersion androidTargetSdk()
        versionName version
        minSdkVersion androidMinSdk
        targetSdkVersion androidTargetSdk
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
        sourceCompatibility = 1.8
        targetCompatibility = 1.8
    }
}

dependencies {
    api project(':play-services-basement')
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
}

apply from: '../gradle/publish-android.gradle'

description = 'microG API for firebase-dynamic-links'
+8 −1
Original line number Diff line number Diff line
/*
 * SPDX-FileCopyrightText: 2019, e Foundation
 * SPDX-FileCopyrightText: 2021, Google LLC
 * SPDX-FileCopyrightText: 2021, microG Project Team
 * SPDX-License-Identifier: Apache-2.0
 */

package com.google.firebase.dynamiclinks.internal;

parcelable DynamicLinkData;
+10 −5
Original line number Diff line number Diff line
package com.google.firebase.dynamiclinks.internal;

/*
 * SPDX-FileCopyrightText: 2019, e Foundation
 * SPDX-FileCopyrightText: 2021, Google LLC
 * SPDX-FileCopyrightText: 2021, microG Project Team
 * SPDX-License-Identifier: Apache-2.0
 */

import com.google.firebase.dynamiclinks.internal.DynamicLinkData;
import com.google.firebase.dynamiclinks.internal.ShortDynamicLink;
package com.google.firebase.dynamiclinks.internal;

import com.google.android.gms.common.api.Status;
import com.google.firebase.dynamiclinks.internal.DynamicLinkData;
import com.google.firebase.dynamiclinks.internal.ShortDynamicLinkImpl;

interface IDynamicLinksCallbacks {
    void onStatusDynamicLinkData(in Status status, in DynamicLinkData dldata) = 0;
    void onStatusShortDynamicLink(in Status status, in ShortDynamicLink sdlink) = 1;
    void onStatusShortDynamicLink(in Status status, in ShortDynamicLinkImpl sdlink) = 1;
}
+9 −5
Original line number Diff line number Diff line
package com.google.firebase.dynamiclinks.internal;
/*
 * SPDX-FileCopyrightText: 2019, e Foundation
 * SPDX-FileCopyrightText: 2021, Google LLC
 * SPDX-FileCopyrightText: 2021, microG Project Team
 * SPDX-License-Identifier: Apache-2.0
 */

package com.google.firebase.dynamiclinks.internal;

import com.google.firebase.dynamiclinks.internal.IDynamicLinksCallbacks;

import android.os.Bundle;


interface IDynamicLinksService {
    void getInitialLink(IDynamicLinksCallbacks callback, String var2) = 0;
    void func2(IDynamicLinksCallbacks callback, in Bundle var2) = 1;
    void getInitialLink(IDynamicLinksCallbacks callback, String link) = 0;
    void createShortDynamicLink(IDynamicLinksCallbacks callback, in Bundle extras) = 1;
}
+0 −3
Original line number Diff line number Diff line
package com.google.firebase.dynamiclinks.internal;

parcelable ShortDynamicLink;
 No newline at end of file
Loading