This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Currently, I have modified three functions to insert Qonversion-related code. Can you help me review whether I have done it correctly? | |
I have another concern. If, after trying, I am not satisfied with the outcome and decide not to purchase any plan from Qonversion, will the newly added Qonversion-related code affect my app’s performance in production? | |
Thank you. | |
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { | |
... | |
let config = Qonversion.Configuration(projectKey: "XXX", launchMode: .analytics) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class TodoInputAccessoryView: UIView { | |
@IBOutlet weak var textView: UITextView! | |
override init(frame: CGRect) { | |
super.init(frame: frame) | |
commonInit() | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static ScreenDensity getScreenDensity() { | |
try { | |
final String screenDensity = MyApplication.instance().getResources().getString(R.string.screen_density); | |
if ("ldpi".equals(screenDensity)) { | |
return ScreenDensity.ldpi; | |
} else if ("hdpi".equals(screenDensity)) { | |
return ScreenDensity.hdpi; | |
} else if ("xhdpi".equals(screenDensity)) { | |
return ScreenDensity.xhdpi; | |
} else if ("xxhdpi".equals(screenDensity)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (C) 2015 Paul Burke | |
* | |
* 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.github.luizgrp.sectionedrecyclerviewadapter; | |
import static io.github.luizgrp.sectionedrecyclerviewadapter.Section.State; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import androidx.annotation.LayoutRes; | |
import androidx.annotation.NonNull; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// FadeScrollView.swift | |
// | |
// Created by Luís Machado on 23/06/2017. | |
// Copyright © 2017 Luis Machado. All rights reserved. | |
// | |
import UIKit | |
class FadeScrollView: UIScrollView, UIScrollViewDelegate { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ShopCollectionViewCell: UICollectionViewCell { | |
... | |
func collapse() { | |
zeroHeightConstraint.isActive = true | |
} | |
func expand() { | |
zeroHeightConstraint.isActive = false | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public enum FragmentType implements Parcelable { | |
Notes, | |
Archive, | |
Trash, | |
Backup; | |
public static final Parcelable.Creator<FragmentType> CREATOR = new Parcelable.Creator<FragmentType>() { | |
public FragmentType createFromParcel(Parcel in) { | |
return FragmentType.valueOf(in.readString()); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static <E extends Enum<E>> void putExtra( | |
@NonNull Intent intent, | |
@NonNull String key, | |
@NonNull E enumValue) { | |
intent.putExtra( | |
key, | |
enumValue.name() | |
); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A user cancelled his subscription on order id "GPA.3383-0878-7727-50427..8" on 17 December 2023 | |
Then same user subscribed again on order id "GPA.3359-8897-6679-16612" on 11 January 2024 | |
I believe he is using same product_id "cloud" and same purchase token "npmlplegcoomopcgiigbhkne.AO-J1Oz2kDBGXjy0Q0aLYyCfq4XZouWBHtQHQdbBtxIdxxBZCV1RxSoCo9AH72AosddxEmPbeJFQszl2kvJ1tAI9BxD-wqqCog" (Such a purchase token is copied from Copy purchase token button at Google Play Console) | |
When I make query using | |
androidpublisher.purchases().subscriptions().get( | |
packageName = "...", |