moengage / moengage-segment-integration

segment.com Android code forked.
0 stars 1 forks source link

InApp Message's Not Showing #27

Open AbdullahQureshi opened 1 year ago

AbdullahQureshi commented 1 year ago

apply plugin: 'com.android.library' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlin-kapt' apply plugin: 'dagger.hilt.android.plugin' apply plugin: 'androidx.navigation.safeargs.kotlin'

def INT = "int" def ENVIRONMENT = "ENVIRONMENT" def PRODUCTION = '0' def STAGING = '1' def DEVELOPMENT = '2'

android {

compileSdkVersion 33
buildToolsVersion '33.0.0'

defaultConfig {
    minSdkVersion 21
    targetSdkVersion 33
    multiDexEnabled true

    resValue "string", "GOOGLE_GEO_API_KEY", ""
    resValue "string", "BRANCH_API_KEY", ""
    resValue "string", "SEGMENT_API_KEY", ""
    resValue "string", "MIXPANEL_TOKEN", ""
    resValue "string", "FRESH_CHAT_APP_ID", ""
    resValue "string", "FRESH_CHAT_KEY", ""
    resValue "string", "ONESIGNAL_APP_ID", ""
    resValue "string", "APP_CENTER_SECRET", ""
    resValue "string", "APPS_FLYER_DEV_KEY", ""
    resValue "string", "KUSTOMER_TOKEN", ""

    File propertiesFile = rootProject.file('gradle.properties')
    if (propertiesFile.exists()) {
        Properties properties = new Properties()
        properties.load(new FileInputStream(propertiesFile))
        buildConfigField "String", "AUTH_TOKEN", "\"${properties.getProperty("AUTH_TOKEN")}\""
    }
}

buildTypes {
    release {
        buildConfigField INT, ENVIRONMENT, PRODUCTION
    }
    qa {
        buildConfigField INT, ENVIRONMENT, STAGING
    }
    debug {
        buildConfigField INT, ENVIRONMENT, DEVELOPMENT
        buildConfigField "String", "APP_NAME", '"default"'
    }
}

compileOptions {
    targetCompatibility JavaVersion.VERSION_1_8
    sourceCompatibility JavaVersion.VERSION_1_8
}

kotlinOptions {
    jvmTarget = JavaVersion.VERSION_1_8.toString()
}

packagingOptions {
    exclude 'META-INF/ASL2.0'
}

buildFeatures {
    dataBinding true
}

}

buildscript {

ext.hiltVersion = '2.38.1'
ext.activity_version = "1.6.0"
ext.nav_version = "2.5.2"
ext.room_version = "2.4.3"

repositories {
    mavenCentral()
    gradlePluginPortal()
    maven { url 'https://plugins.gradle.org/m2/' }
    maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
    google()
    jcenter()
}
dependencies {
    classpath "com.google.dagger:hilt-android-gradle-plugin:$hiltVersion"
    classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version"
}

}

repositories { mavenCentral() maven { url 'https://maven.google.com' } maven { url "https://jitpack.io" } maven { url 'https://oss.sonatype.org/content/repositories/snapshots' } }

dependencies {

//CORE APIS
api "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"

api "androidx.constraintlayout:constraintlayout:2.1.4"
api "androidx.legacy:legacy-support-v4:1.0.0"
api "androidx.recyclerview:recyclerview:1.2.1"
api "com.google.android.material:material:1.6.1"
api "com.applandeo:material-calendar-view:1.7.0"
api "me.relex:photodraweeview:2.0.0"
api "com.facebook.fresco:fresco:2.6.0"
api 'androidx.viewpager:viewpager:1.0.0'
api "com.github.AhmMhd:SeeMoreTextView-Android:1.0.0"
implementation 'androidx.room:room-common:2.4.3'

//MultiDex Enabled
def multidex_version = "2.0.1"
api "androidx.multidex:multidex:$multidex_version"

implementation "org.apache.commons:commons-lang3:3.12.0"
implementation "com.android.installreferrer:installreferrer:2.2"

//Google Play Service Libraries.
implementation "com.google.android.play:core:1.10.3"
implementation "com.google.android.gms:play-services-ads-identifier:18.0.1"

//GOOGLE APIS
api "com.google.maps.android:android-maps-utils:2.3.0"
api "com.google.android.gms:play-services-auth:20.2.0"
api "com.google.android.gms:play-services-maps:18.1.0"
api "com.google.android.gms:play-services-location:20.0.0"
api "com.google.android.gms:play-services-analytics:18.0.2"
api "com.google.android.libraries.places:places:2.6.0"

implementation "net.danlew:android.joda:2.10.7" // please don"t update the library
api "com.googlecode.libphonenumber:libphonenumber:8.12.16"

//Logging Library
api "com.jakewharton.timber:timber:5.0.1"
implementation "com.fenchtose:tooltip:0.1.6"
implementation "org.apache.commons:commons-text:1.9"
implementation "org.greenrobot:eventbus:3.2.0"
implementation "org.codehaus.jackson:jackson-mapper-asl:1.9.13"
api "com.github.joielechong:countrycodepicker:2.4.2"

api "com.leinardi.android:speed-dial:3.2.0"
api "org.jetbrains.anko:anko-commons:0.10.8"

// Chrome Tab matching (enables 100% guaranteed matching based on cookies)
implementation "androidx.browser:browser:1.4.0"

api "com.hellofresh.android:deeplink:0.3.1"
api "com.github.ome450901:SimpleRatingBar:1.5.0"
api "com.google.android:flexbox:2.0.1"
api "androidx.webkit:webkit:1.5.0"

// Retrofit & Volley & gson
def retrofit_version = "2.9.0"
api "com.squareup.retrofit2:retrofit:$retrofit_version"
api "com.squareup.retrofit2:converter-gson:$retrofit_version"
api "com.android.volley:volley:1.2.1"
api "com.google.code.gson:gson:2.9.0"

// OkHTTP
implementation(platform("com.squareup.okhttp3:okhttp-bom:4.9.2"))
implementation("com.squareup.okhttp3:okhttp")
implementation("com.squareup.okhttp3:logging-interceptor")

// FaceBook SDK
def facebook_version = "14.0.0"
implementation "com.facebook.android:facebook-core:$facebook_version"
implementation "com.facebook.android:facebook-login:$facebook_version"
implementation "com.facebook.android:facebook-share:$facebook_version"
implementation "com.facebook.android:facebook-android-sdk:$facebook_version"

// Import the Firebase BoM
implementation platform('com.google.firebase:firebase-bom:29.0.3')
implementation "com.firebaseui:firebase-ui-auth:7.2.0"
implementation 'com.google.firebase:firebase-common-ktx'
implementation "com.google.firebase:firebase-analytics-ktx"
implementation "com.google.firebase:firebase-auth-ktx"
implementation "com.google.firebase:firebase-analytics-ktx"
implementation "com.google.firebase:firebase-crashlytics-ktx"
implementation "com.google.firebase:firebase-core"
implementation "com.google.firebase:firebase-appindexing"
implementation "com.google.firebase:firebase-messaging-ktx"
implementation "com.google.firebase:firebase-iid"
implementation "com.google.firebase:firebase-inappmessaging-display-ktx"

implementation("com.google.guava:guava:30.1-android")

// Segment , One Signal, MixPanel, Branch IO and FreshChat
implementation "com.segment.analytics.android:analytics:4.10.4"
implementation "com.segment.analytics.android.integrations:firebase:2.1.1@aar"
implementation "com.segment.analytics.android.integrations:adjust:0.3.5"
implementation "com.segment.analytics.android.integrations:google-analytics:2.1.0"
implementation "com.webengage:android-segment:2.0.6"
implementation "com.onesignal:OneSignal:4.8.2"
implementation "com.mixpanel.android:mixpanel-android:5.9.1"
implementation "com.github.freshdesk:freshchat-android:5.0.5"
implementation "io.branch.sdk.android:library:5.0.3"
implementation "io.branch.segment.analytics.android.integrations:branch:+"

//FlowLayout Manger That we are using in Basket Fragment
implementation "com.xiaofeng.android:flowlayoutmanager:1.2.3.2"
implementation "com.github.hotchemi:android-rate:1.0.1"

// Android KTX extensions
implementation "androidx.fragment:fragment-ktx:1.5.3"
implementation "androidx.activity:activity-ktx:$activity_version"

//Glide - Image Library
def glide_version = "4.12.0"
implementation "com.github.bumptech.glide:glide:$glide_version"
kapt "com.github.bumptech.glide:compiler:$glide_version"

//for loading gif
api 'pl.droidsonroids.gif:android-gif-drawable:1.2.24'

// Kotlin Coroutines & lifecycle & viewModel version
def lifecycle_version = "2.4.1"
api "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.5.1'
api "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4"
kapt 'com.android.databinding:compiler:3.1.4'

// leak canary Added for debug mode for detection of memory leaks.

// debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'

def appCenterSdkVersion = '4.4.5'
api "com.microsoft.appcenter:appcenter-analytics:${appCenterSdkVersion}"
api "com.microsoft.appcenter:appcenter-crashes:${appCenterSdkVersion}"

api 'com.appsflyer:af-android-sdk:6.3.2'
api 'com.appsflyer:segment-android-integration:6.3.2'

api 'androidx.work:work-runtime:2.7.1'

// RootBear for checking whether the device is rooted or emulated.
implementation 'com.scottyab:rootbeer-lib:0.1.0'

// Kustomer chat is support chat system that is integrated in our app
implementation 'com.kustomer.chat:ui:2.9.5'

// Navigation Component
implementation "androidx.navigation:navigation-fragment-ktx:$nav_version"
implementation "androidx.navigation:navigation-ui-ktx:$nav_version"
implementation "androidx.navigation:navigation-runtime-ktx:$nav_version"

// Dependency Injection Hilt
implementation "com.google.dagger:hilt-android:$hiltVersion"
kapt "com.google.dagger:hilt-compiler:$hiltVersion"
kapt("org.jetbrains.kotlinx:kotlinx-metadata-jvm:0.5.0")

// For securing credentials
implementation "androidx.security:security-crypto:1.1.0-alpha01"

implementation "androidx.room:room-runtime:$room_version"
annotationProcessor "androidx.room:room-compiler:$room_version"
kapt "androidx.room:room-compiler:$room_version"

implementation("com.moengage:moengage-segment-integration:6.5.1")

implementation("androidx.core:core:1.3.1")
implementation("androidx.appcompat:appcompat:1.2.0")
implementation("androidx.lifecycle:lifecycle-process:2.2.0")

implementation(moengage.inapp)

}

GamalSebaee commented 5 months ago

@AbdullahQureshi Hello Abdullah I'm facing the same issue Have you solved this?