diff --git a/.idea/encodings.xml b/.idea/encodings.xml index 0d832da5..bb0b1d76 100644 --- a/.idea/encodings.xml +++ b/.idea/encodings.xml @@ -2,7 +2,11 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index ca746379..aa89dc92 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -37,6 +37,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.idea/runConfigurations/C__.xml b/.idea/runConfigurations/C__.xml index 28e9c4f5..dc16b715 100644 --- a/.idea/runConfigurations/C__.xml +++ b/.idea/runConfigurations/C__.xml @@ -6,7 +6,7 @@ - + diff --git a/.idea/runConfigurations/Debug.xml b/.idea/runConfigurations/Debug.xml new file mode 100644 index 00000000..4e3c720a --- /dev/null +++ b/.idea/runConfigurations/Debug.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Run.xml b/.idea/runConfigurations/Run.xml new file mode 100644 index 00000000..d2a72f56 --- /dev/null +++ b/.idea/runConfigurations/Run.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/android-app-core-tests/android-app-core-tests.iml b/android-app-core-tests/android-app-core-tests.iml index ce839fb9..1197dc73 100644 --- a/android-app-core-tests/android-app-core-tests.iml +++ b/android-app-core-tests/android-app-core-tests.iml @@ -71,42 +71,40 @@ - - + + + + + + + - - - - - - - + - - - - - + + + + \ No newline at end of file diff --git a/android-app-core/android-app-core.iml b/android-app-core/android-app-core.iml index 7a8b4b93..e6ac0687 100644 --- a/android-app-core/android-app-core.iml +++ b/android-app-core/android-app-core.iml @@ -84,10 +84,10 @@ - + - + @@ -98,8 +98,8 @@ - + diff --git a/android-app-core/build.gradle b/android-app-core/build.gradle index 2cf84a17..f1986fc9 100644 --- a/android-app-core/build.gradle +++ b/android-app-core/build.gradle @@ -48,13 +48,13 @@ dependencies { compile 'org.solovyev.android:android-common-menus:1.1.18@aar' compile 'org.solovyev.android:android-common-core:1.1.18@aar' compile 'org.solovyev.android:android-common-preferences:1.1.18@aar' - compile 'org.solovyev.android:android-common-app:1.1.18@aar' compile('org.solovyev:jscl:1.0.8') { exclude(module: 'xercesImpl') } compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' - compile 'com.google.android.admob:admob:6.4.1-r11.0.0' compile 'com.android.support:support-v4:21.0.3' + compile 'org.solovyev.android:checkout:0.6.0@aar' + compile 'com.google.android.gms:play-services:6.5.87@aar' //testCompile group: 'org.robolectric', name: 'robolectric', version: '2.1.1' } diff --git a/android-app-core/src/main/AndroidManifest.xml b/android-app-core/src/main/AndroidManifest.xml index a755358f..7ee835bb 100644 --- a/android-app-core/src/main/AndroidManifest.xml +++ b/android-app-core/src/main/AndroidManifest.xml @@ -8,4 +8,8 @@ android:minSdkVersion="4" android:targetSdkVersion="17"/> + + \ No newline at end of file diff --git a/android-app-core/src/main/java/org/solovyev/android/calculator/App.java b/android-app-core/src/main/java/org/solovyev/android/calculator/App.java new file mode 100644 index 00000000..2842253f --- /dev/null +++ b/android-app-core/src/main/java/org/solovyev/android/calculator/App.java @@ -0,0 +1,166 @@ +/* + * Copyright 2013 serso aka se.solovyev + * + * 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. + * + * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + * Contact details + * + * Email: se.solovyev@gmail.com + * Site: http://se.solovyev.org + */ + +package org.solovyev.android.calculator; + +import android.app.Application; +import org.solovyev.android.UiThreadExecutor; +import org.solovyev.common.listeners.JEvent; +import org.solovyev.common.listeners.JEventListener; +import org.solovyev.common.listeners.JEventListeners; +import org.solovyev.common.listeners.Listeners; +import org.solovyev.common.threads.DelayedExecutor; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * User: serso + * Date: 12/1/12 + * Time: 3:58 PM + */ + +/** + * This class aggregates several useful in any Android application interfaces and provides access to {@link android.app.Application} object from a static context. + * NOTE: use this class only if you don't use and dependency injection library (if you use any you can directly set interfaces through it). + *