Skip to content
This repository has been archived by the owner on Jul 1, 2023. It is now read-only.

Commit

Permalink
feat: remove in-app purchase and admob
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyloi committed Mar 30, 2021
1 parent b5a3bfb commit 53f6bf2
Show file tree
Hide file tree
Showing 100 changed files with 104 additions and 4,860 deletions.
52 changes: 0 additions & 52 deletions packages/ulangi-action/src/ActionType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,58 +12,6 @@ export enum ActionType {
APP__INITIALIZE_FAILED = 'APP__INITIALIZE_FAILED',
APP__ALREADY_INITIALIZED = 'APP__ALREADY_INITIALIZED',

DATA_SHARING__ENABLE_ANALYTICS = 'DATA_SHARING__ENABLE_ANALYTICS',
DATA_SHARING__ENABLING_ANALYTICS = 'DATA_SHARING__ENABLING_ANALYTICS',
DATA_SHARING__ENABLE_ANALYTICS_SUCCEEDED = 'DATA_SHARING__ENABLE_ANALYTICS_SUCCEEDED',
DATA_SHARING__ENABLE_ANALYTICS_FAILED = 'DATA_SHARING__ENABLE_ANALYTICS_FAILED',
DATA_SHARING__DISABLE_ANALYTICS = 'DATA_SHARING__DISABLE_ANALYTICS',
DATA_SHARING__DISABLING_ANALYTICS = 'DATA_SHARING__DISABLING_ANALYTICS',
DATA_SHARING__DISABLE_ANALYTICS_SUCCEEDED = 'DATA_SHARING__DISABLE_ANALYTICS_SUCCEEDED',
DATA_SHARING__DISABLE_ANALYTICS_FAILED = 'DATA_SHARING__DISABLE_ANALYTICS_FAILED',

IAP__INIT = 'IAP__INIT',
IAP__INITING = 'IAP__INITING',
IAP__INIT_SUCCEEDED = 'IAP__INIT_SUCCEEDED',
IAP__INIT_FAILED = 'IAP__INIT_FAILED',
IAP__GET_PRODUCTS = 'IAP__GET_PRODUCTS',
IAP__GETTING_PRODUCTS = 'IAP__GETTING_PRODUCTS',
IAP__GET_PRODUCTS_SUCCEEDED = 'IAP__GET_PRODUCTS_SUCCEEDED',
IAP__GET_PRODUCTS_FAILED = 'IAP__GET_PRODUCTS_FAILED',
IAP__REQUEST_PURCHASE = 'IAP__REQUEST_PURCHASE',
IAP__REQUESTING_PURCHASE = 'IAP__REQUESTING_PURCHASE',
IAP__REQUEST_PURCHASE_SUCCEEDED = 'IAP__REQUEST_PURCHASE_SUCCEEDED',
IAP__REQUEST_PURCHASE_FAILED = 'IAP__REQUEST_PURCHASE_FAILED',
IAP__RESTORE_PURCHASES = 'IAP__RESTORE_PURCHASES',
IAP__RESTORING_PURCHASES = 'IAP__RESTORING_PURCHASES',
IAP__RESTORE_PURCHASES_SUCCEEDED = 'IAP__RESTORE_PURCHASES_SUCCEEDED',
IAP__RESTORE_PURCHASES_FAILED = 'IAP__RESTORE_PURCHASES_FAILED',
IAP__PROCESSING_PURCHASE = 'IAP__PROCESSING_PURCHASE',
IAP__PROCESS_PURCHASE_SUCCEEDED = 'IAP__PROCESS_PURCHASE_SUCCEEDED',
IAP__PROCESS_PURCHASE_FAILED = 'IAP__PROCESS_PURCHASE_FAILED',

AD__SET_UP = 'AD__SET_UP',
AD__SET_UP_SUCCEEDED = 'AD__SET_UP_SUCCEEDED',
AD__SET_UP_FAILED = 'AD__SET_UP_FAILED',
AD__INITIALIZE = 'AD__INITIALIZE',
AD__INITIALIZE_SUCCEEDED = 'AD__INITIALIZE_SUCCEEDED',
AD__INITIALIZE_FAILED = 'AD__INITIALIZE_FAILED',
AD__GET_CONSENT_STATUS_SUCCEEDED = 'AD__GET_CONSENT_STATUS_SUCCEEDED',
AD__GET_REQUEST_LOCATION_SUCCEEDED = 'AD__GET_REQUEST_LOCATION_SUCCEEDED',
AD__CONSENT_STATUS_CHANGED = 'AD__CONSENT_STATUS_CHANGED',
AD__SHOW_GOOGLE_CONSENT_FORM = 'AD__SHOW_GOOGLE_CONSENT_FORM',
AD__SHOW_GOOGLE_CONSENT_FORM_FAILED = 'AD__SHOW_GOOGLE_CONSENT_FORM_FAILED',
AD__LOAD_AD = 'AD__LOAD_AD',
AD__LOADING_AD = 'AD__LOADING_AD',
AD__LOAD_AD_SUCCEEDED = 'AD__LOAD_AD_SUCCEEDED',
AD__LOAD_AD_FAILED = 'AD__LOAD_AD_FAILED',
AD__SHOW_AD = 'AD__SHOW_AD',
AD__SHOWING_AD = 'AD__SHOWING_AD',
AD__SHOW_AD_SUCCEEDED = 'AD__SHOW_AD_SUCCEEDED',
AD__SHOW_AD_FAILED = 'AD__SHOW_AD_FAILED',
AD__AD_OPENED = 'AD__AD_OPENED',
AD__AD_CLOSED = 'AD__AD_CLOSED',
AD__CLEAR_AD = 'AD__CLEAR_AD',

API_KEY__GET_API_KEY = 'API_KEY__GET_API_KEY',
API_KEY__GETTING_API_KEY = 'API_KEY__GETTING_API_KEY',
API_KEY__GET_API_KEY_SUCCEEDED = 'API_KEY__GET_API_KEY_SUCCEEDED',
Expand Down
3 changes: 0 additions & 3 deletions packages/ulangi-common/src/enums/ScreenName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
export enum ScreenName {
ADD_SET_SCREEN = 'ADD_SET_SCREEN',
ADD_VOCABULARY_SCREEN = 'ADD_VOCABULARY_SCREEN',
AD_SCREEN = 'AD_SCREEN',
ATOM_GAME_OVER_SCREEN = 'ATOM_GAME_OVER_SCREEN',
ATOM_PAUSED_SCREEN = 'ATOM_PAUSED_SCREEN',
ATOM_PLAY_SCREEN = 'ATOM_PLAY_SCREEN',
Expand All @@ -23,7 +22,6 @@ export enum ScreenName {
CONTACT_US_SCREEN = 'CONTACT_US_SCREEN',
CONTRIBUTE_SCREEN = 'CONTRIBUTE_SCREEN',
CREATE_FIRST_SET_SCREEN = 'CREATE_FIRST_SET_SCREEN',
DATA_SHARING_SCREEN = 'DATA_SHARING_SCREEN',
DICTIONARY_PICKER_SCREEN = 'DICTIONARY_PICKER_SCREEN',
SUGGESTIONS_PICKER_SCREEN = 'SUGGESTIONS_PICKER_SCREEN',
DISCOVER_SCREEN = 'DISCOVER_SCREEN',
Expand All @@ -44,7 +42,6 @@ export enum ScreenName {
LIGHT_BOX_DIALOG_SCREEN = 'LIGHT_BOX_DIALOG_SCREEN',
LIGHT_BOX_SELECTION_MENU_SCREEN = 'LIGHT_BOX_SELECTION_MENU_SCREEN',
MANAGE_SCREEN = 'MANAGE_SCREEN',
MEMBERSHIP_SCREEN = 'MEMBERSHIP_SCREEN',
MORE_SCREEN = 'MORE_SCREEN',
PRELOAD_SCREEN = 'PRELOAD_SCREEN',
PUBLIC_SET_DETAIL_SCREEN = 'PUBLIC_SET_DETAIL_SCREEN',
Expand Down
1 change: 0 additions & 1 deletion packages/ulangi-mobile/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ dependencies {
implementation "com.google.firebase:firebase-core:16.0.9"
implementation "com.google.firebase:firebase-auth:17.0.0"
implementation "com.google.firebase:firebase-database:17.0.0"
implementation "com.google.firebase:firebase-ads:17.2.1"
implementation "com.google.firebase:firebase-messaging:18.0.0"
implementation('com.crashlytics.sdk.android:crashlytics:2.9.9@aar') {
transitive = true
Expand Down
19 changes: 0 additions & 19 deletions packages/ulangi-mobile/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,6 @@
android:name="firebase_crashlytics_collection_enabled"
android:value="false" />

<!-- FBSDK -->
<meta-data
android:name="com.facebook.sdk.ApplicationId"
android:value="@string/facebook_app_id" />
<meta-data
android:name='com.facebook.sdk.AutoLogAppEventsEnabled'
android:value='false'/>

<!-- AdMob -->
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-1363672124516644~3363203395" />
<!-- Delay app measurement until MobileAds.initialize() is called. -->
<meta-data
android:name="com.google.android.gms.ads.DELAY_APP_MEASUREMENT_INIT"
android:value="true"/>
<!-- Add this line to avoid crashes on Android 9 until AdMob SDK update -->
<uses-library android:name="org.apache.http.legacy" android:required="false"/>

<!-- Local notifications -->
<receiver android:name="io.invertase.firebase.notifications.RNFirebaseNotificationReceiver"/>
<receiver android:enabled="true" android:exported="true" android:name="io.invertase.firebase.notifications.RNFirebaseNotificationsRebootReceiver">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.ulangi;

import io.invertase.firebase.admob.RNFirebaseAdMobPackage;
import io.invertase.firebase.analytics.RNFirebaseAnalyticsPackage;
import io.invertase.firebase.auth.RNFirebaseAuthPackage;
import io.invertase.firebase.database.RNFirebaseDatabasePackage;
Expand Down Expand Up @@ -39,7 +38,6 @@ public boolean isDebug() {
public List<ReactPackage> createAdditionalReactPackages() {
List<ReactPackage> packages = new PackageList(this).getPackages();
// Packages that might not support autolinking can still go here
packages.add(new RNFirebaseAdMobPackage());
packages.add(new RNFirebaseAnalyticsPackage());
packages.add(new RNFirebaseAuthPackage());
packages.add(new RNFirebaseCrashlyticsPackage());
Expand Down
17 changes: 0 additions & 17 deletions packages/ulangi-mobile/config/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,3 @@ ENABLE_SPLASH_SCREEN=false
IOS_APP_ID=1435524341
ANDROID_PACKAGE_NAME=com.ulangi
ANDROID_STORE=Google

# (Optional) In-app purchase
# IOS_PREMIUM_LIFETIME_PRODUCT_ID=
# ANDROID_PREMIUM_LIFETIME_PRODUCT_ID=

# (Optional) AdMob
# ADMOB_PUBLISHER_ID=
# CONSENT_FORM_SHOULD_OFFER_AD_FREE=
# CONSENT_FORM_DEBUG_GEOGRAPHY=
# IOS_AD_APP_ID=
# IOS_AD_UNIT_ID=
# IOS_AD_TEST_DEVICE_ID=
# IOS_CONSENT_FORM_DEBUG_DEVICE_ID=
# ANDROID_AD_APP_ID=
# ANDROID_AD_UNIT_ID=
# ANDROID_AD_TEST_DEVICE_ID=
# ANDROID_CONSENT_FORM_DEBUG_DEVICE_ID=
4 changes: 0 additions & 4 deletions packages/ulangi-mobile/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,9 @@ target 'UlangiMobile' do
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'Firebase/AdMob'
pod 'Firebase/Messaging'
pod 'PersonalizedAdConsent'
pod 'Google-Mobile-Ads-SDK'
pod 'Fabric'
pod 'Crashlytics'
pod 'GoogleIDFASupport'
pod 'ReactNativeNavigation', :podspec => '../node_modules/@ulangi/react-native-navigation/ReactNativeNavigation.podspec'

target 'UlangiMobileTests' do
Expand Down
Loading

0 comments on commit 53f6bf2

Please sign in to comment.