Skip to content

Commit

Permalink
Added support of OpenIAB from Yandex.
Browse files Browse the repository at this point in the history
Corrected panorama focus.
Corrected default focus.
Corrections for nexus in noght.
  • Loading branch information
sergey.malykhin committed Mar 12, 2014
1 parent 2e9b315 commit da73fc4
Show file tree
Hide file tree
Showing 22 changed files with 56 additions and 2,310 deletions.
3 changes: 2 additions & 1 deletion AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.almalence.opencam"
android:installLocation="auto"
android:versionCode="54"
android:versionCode="55"
android:versionName="3.17">
<!-- -+- -->

Expand Down Expand Up @@ -97,6 +97,7 @@
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<!-- -+- -->
<uses-permission android:name="com.android.vending.BILLING"/>
<uses-permission android:name="org.onepf.openiab.permission.BILLING"/>
<!-- -+- -->

<uses-sdk android:minSdkVersion="14"
Expand Down
8 changes: 4 additions & 4 deletions jni/dro/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ LOCAL_LDLIBS := -ldl -lz -llog

include $(BUILD_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE := gbufferlib
LOCAL_SRC_FILES := ../prebuilt/$(TARGET_ARCH_ABI)/libgbuffer.so
include $(PREBUILT_SHARED_LIBRARY)
#include $(CLEAR_VARS)
#LOCAL_MODULE := gbufferlib
#LOCAL_SRC_FILES := ../prebuilt/$(TARGET_ARCH_ABI)/libgbuffer.so
#include $(PREBUILT_SHARED_LIBRARY)
104 changes: 0 additions & 104 deletions jni/dro/gbuffer.h

This file was deleted.

Binary file removed jni/prebuilt/armeabi-v7a/libgbuffer.so
Binary file not shown.
8 changes: 4 additions & 4 deletions res/layout/plugin_capture_standard_modeswitcher.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@
android:layout_marginTop="20dip"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:textOn="Hi-Res"
app:textOff="Hi-Speed"
app:textOn="DRO On"
app:textOff="DRO off"
app:thumbTextPadding="3dp"
app:switchMinWidth="@dimen/nightmodeswitcher_width"
app:switchMinHeight="@dimen/nightmodeswitcher_height"
app:switchPadding="4dp"
app:switchTextAppearance="@style/TextAppearance"
app:thumb="@drawable/switch_inner_holo_dark"
app:thumb="@drawable/switch_inner_holo_dark_dro"
app:track="@drawable/switch_track_holo_dark"
android:id="@+id/switch_nightmode"/>
android:id="@+id/switch_dromode"/>
+++ -->
20 changes: 13 additions & 7 deletions src/com/almalence/opencam/MainScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ Portions created by Initial Developer are Copyright (C) 2013
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
//import java.io.OutputStreamWriter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import android.annotation.TargetApi;
import android.app.Activity;
Expand Down Expand Up @@ -83,14 +85,16 @@ Portions created by Initial Developer are Copyright (C) 2013
import com.almalence.util.Util;

//<!-- -+-
import com.almalence.opencam.billing.IabHelper;
import com.almalence.opencam.billing.IabResult;
import com.almalence.opencam.billing.Inventory;
import com.almalence.opencam.billing.Purchase;
import com.almalence.opencam.ui.AlmalenceGUI;
import com.almalence.opencam.ui.GLLayer;
import com.almalence.opencam.ui.GUI;
import com.almalence.util.AppRater;

import org.onepf.oms.OpenIabHelper;
import org.onepf.oms.appstore.googleUtils.IabHelper;
import org.onepf.oms.appstore.googleUtils.IabResult;
import org.onepf.oms.appstore.googleUtils.Inventory;
import org.onepf.oms.appstore.googleUtils.Purchase;
//-+- -->
/* <!-- +++
import com.almalence.opencam_plus.ui.AlmalenceGUI;
Expand Down Expand Up @@ -2079,7 +2083,7 @@ public void setScreenBrightness(boolean setMax)
/*******************************************************/
/************************ Billing ************************/
// <!-- -+-
IabHelper mHelper;
OpenIabHelper mHelper;

private boolean bOnSale = false;

Expand Down Expand Up @@ -2117,7 +2121,9 @@ private void createBillingHandler()
// Create the helper, passing it our context and the public key to
// verify signatures with
Log.v("Main billing", "Creating IAB helper.");
mHelper = new IabHelper(this, base64EncodedPublicKey);
Map<String, String> storeKeys = new HashMap<String, String>();
storeKeys.put(OpenIabHelper.NAME_GOOGLE, base64EncodedPublicKey);
mHelper = new OpenIabHelper(this, storeKeys);

mHelper.enableDebugLogging(true);

Expand Down
Loading

0 comments on commit da73fc4

Please sign in to comment.