17 |
18 | true
19 |
20 |
21 |
--------------------------------------------------------------------------------
/noop/src/main/java/es/rafaco/inappdevtools/library/logic/reports/ReportType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This source file is part of InAppDevTools, which is available under
3 | * Apache License, Version 2.0 at https://github.com/rafaco/InAppDevTools
4 | *
5 | * Copyright 2018-2019 Rafael Acosta Alvarez
6 | *
7 | * Licensed under the Apache License, Version 2.0 (the "License");
8 | * you may not use this file except in compliance with the License.
9 | * You may obtain a copy of the License at
10 | *
11 | * http://www.apache.org/licenses/LICENSE-2.0
12 | *
13 | * Unless required by applicable law or agreed to in writing, software
14 | * distributed under the License is distributed on an "AS IS" BASIS,
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 | * See the License for the specific language governing permissions and
17 | * limitations under the License.
18 | */
19 |
20 | package es.rafaco.inappdevtools.library.logic.reports;
21 |
22 | public enum ReportType { SESSION, CRASH, WIZARD, FULL }
--------------------------------------------------------------------------------
/library/src/main/res/drawable/ic_portable_wifi_off_white_24dp.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/compat/src/androidTest/java/es/rafaco/compat/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package es.rafaco.compat;
2 |
3 | import android.content.Context;
4 |
5 | //#ifdef ANDROIDX
6 | //@import androidx.test.InstrumentationRegistry;
7 | //@import androidx.test.runner.AndroidJUnit4;
8 | //#else
9 | import android.support.test.InstrumentationRegistry;
10 | import android.support.test.runner.AndroidJUnit4;
11 | //#endif
12 |
13 | import org.junit.Test;
14 | import org.junit.runner.RunWith;
15 |
16 | import static org.junit.Assert.*;
17 |
18 | /**
19 | * Instrumented test, which will execute on an Android device.
20 | *
21 | * @see Testing documentation
22 | */
23 | @RunWith(AndroidJUnit4.class)
24 | public class ExampleInstrumentedTest {
25 | @Test
26 | public void useAppContext() {
27 | // Context of the app under test.
28 | Context appContext = InstrumentationRegistry.getTargetContext();
29 |
30 | assertEquals("es.rafaco.compat.test", appContext.getPackageName());
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/library/src/main/java/es/rafaco/inappdevtools/library/storage/db/DatabaseVersion.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This source file is part of InAppDevTools, which is available under
3 | * Apache License, Version 2.0 at https://github.com/rafaco/InAppDevTools
4 | *
5 | * Copyright 2018-2020 Rafael Acosta Alvarez
6 | *
7 | * Licensed under the Apache License, Version 2.0 (the "License");
8 | * you may not use this file except in compliance with the License.
9 | * You may obtain a copy of the License at
10 | *
11 | * http://www.apache.org/licenses/LICENSE-2.0
12 | *
13 | * Unless required by applicable law or agreed to in writing, software
14 | * distributed under the License is distributed on an "AS IS" BASIS,
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 | * See the License for the specific language governing permissions and
17 | * limitations under the License.
18 | */
19 |
20 | package es.rafaco.inappdevtools.library.storage.db;
21 |
22 | public class DatabaseVersion {
23 | public static final int VALUE = 1;
24 | }
25 |
--------------------------------------------------------------------------------
/library/src/androidTest/java/es/rafaco/inappdevtools/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package es.rafaco.inappdevtools;
2 |
3 | import android.content.Context;
4 |
5 | //#ifdef ANDROIDX
6 | //@import androidx.test.InstrumentationRegistry;
7 | //@import androidx.test.runner.AndroidJUnit4;
8 | //#else
9 | import android.support.test.InstrumentationRegistry;
10 | import android.support.test.runner.AndroidJUnit4;
11 | //#endif
12 |
13 | import org.junit.Test;
14 | import org.junit.runner.RunWith;
15 |
16 | import static org.junit.Assert.*;
17 |
18 | /**
19 | * Instrumented test, which will execute on an Android device.
20 | *
21 | * @see Testing documentation
22 | */
23 | @RunWith(AndroidJUnit4.class)
24 | public class ExampleInstrumentedTest {
25 | @Test
26 | public void useAppContext() {
27 | // Context of the app under test.
28 | Context appContext = InstrumentationRegistry.getTargetContext();
29 |
30 | assertEquals("es.rafaco.devtools.test", appContext.getPackageName());
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/demo/src/androidTest/java/es/rafaco/inappdevtools/demo/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package es.rafaco.inappdevtools.demo;
2 |
3 | import android.content.Context;
4 |
5 | //#ifdef ANDROIDX
6 | //@import androidx.test.InstrumentationRegistry;
7 | //@import androidx.test.runner.AndroidJUnit4;
8 | //#else
9 | import android.support.test.InstrumentationRegistry;
10 | import android.support.test.runner.AndroidJUnit4;
11 | //#endif
12 |
13 | import org.junit.Test;
14 | import org.junit.runner.RunWith;
15 |
16 | import static org.junit.Assert.*;
17 |
18 | /**
19 | * Instrumented test, which will execute on an Android device.
20 | *
21 | * @see Testing documentation
22 | */
23 | @RunWith(AndroidJUnit4.class)
24 | public class ExampleInstrumentedTest {
25 | @Test
26 | public void useAppContext() {
27 | // Context of the app under test.
28 | Context appContext = InstrumentationRegistry.getTargetContext();
29 |
30 | assertEquals("es.rafaco.inappdevtools.demo", appContext.getPackageName());
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/library/src/main/res/menu/source.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/flex_container.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
--------------------------------------------------------------------------------
/demo/src/debug/java/es/rafaco/inappdevtools/demo/test/BuildFolderedSource.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This source file is part of InAppDevTools, which is available under
3 | * Apache License, Version 2.0 at https://github.com/rafaco/InAppDevTools
4 | *
5 | * Copyright 2018-2020 Rafael Acosta Alvarez
6 | *
7 | * Licensed under the Apache License, Version 2.0 (the "License");
8 | * you may not use this file except in compliance with the License.
9 | * You may obtain a copy of the License at
10 | *
11 | * http://www.apache.org/licenses/LICENSE-2.0
12 | *
13 | * Unless required by applicable law or agreed to in writing, software
14 | * distributed under the License is distributed on an "AS IS" BASIS,
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 | * See the License for the specific language governing permissions and
17 | * limitations under the License.
18 | */
19 |
20 | package es.rafaco.inappdevtools.demo.test;
21 |
22 | public class BuildFolderedSource {
23 |
24 | public static String getStatus(){
25 | return "I'm here! From BuildType debug";
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/.idea/runConfigurations/Install_Start_Demo_SupportDebug.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | true
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/demo/src/supportDebug/java/es/rafaco/inappdevtools/demo/test/VariantFolderedSource.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This source file is part of InAppDevTools, which is available under
3 | * Apache License, Version 2.0 at https://github.com/rafaco/InAppDevTools
4 | *
5 | * Copyright 2018-2020 Rafael Acosta Alvarez
6 | *
7 | * Licensed under the Apache License, Version 2.0 (the "License");
8 | * you may not use this file except in compliance with the License.
9 | * You may obtain a copy of the License at
10 | *
11 | * http://www.apache.org/licenses/LICENSE-2.0
12 | *
13 | * Unless required by applicable law or agreed to in writing, software
14 | * distributed under the License is distributed on an "AS IS" BASIS,
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 | * See the License for the specific language governing permissions and
17 | * limitations under the License.
18 | */
19 |
20 | package es.rafaco.inappdevtools.demo.test;
21 |
22 | public class VariantFolderedSource {
23 |
24 | public static String getStatus(){
25 | return "I'm here! From variant supportDebug";
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/library/src/main/assets/highlightjs/styles/androidstudio.css:
--------------------------------------------------------------------------------
1 | /*
2 | Date: 24 Fev 2015
3 | Author: Pedro Oliveira
4 | */
5 |
6 | .hljs {
7 | color: #a9b7c6;
8 | background: #121212;
9 | display: block;
10 | overflow-x: auto;
11 | padding: 0.5em;
12 | }
13 |
14 | .hljs-number,
15 | .hljs-literal,
16 | .hljs-symbol,
17 | .hljs-bullet {
18 | color: #6897BB;
19 | }
20 |
21 | .hljs-keyword,
22 | .hljs-selector-tag,
23 | .hljs-deletion {
24 | color: #cc7832;
25 | }
26 |
27 | .hljs-variable,
28 | .hljs-template-variable,
29 | .hljs-link {
30 | color: #629755;
31 | }
32 |
33 | .hljs-comment,
34 | .hljs-quote {
35 | color: #808080;
36 | }
37 |
38 | .hljs-meta {
39 | color: #bbb529;
40 | }
41 |
42 | .hljs-string,
43 | .hljs-attribute,
44 | .hljs-addition {
45 | color: #6A8759;
46 | }
47 |
48 | .hljs-section,
49 | .hljs-title,
50 | .hljs-type {
51 | color: #ffc66d;
52 | }
53 |
54 | .hljs-name,
55 | .hljs-selector-id,
56 | .hljs-selector-class {
57 | color: #e8bf6a;
58 | }
59 |
60 | .hljs-emphasis {
61 | font-style: italic;
62 | }
63 |
64 | .hljs-strong {
65 | font-weight: bold;
66 | }
67 |
--------------------------------------------------------------------------------
/.idea/copyright/Chuck_NOTICE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/3party-licenses/wcviewpager-LICENSE.txt:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 Raanan Nevet
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
--------------------------------------------------------------------------------
/demo/src/main/java/es/rafaco/inappdevtools/demo/api/Change.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This source file is part of InAppDevTools, which is available under
3 | * Apache License, Version 2.0 at https://github.com/rafaco/InAppDevTools
4 | *
5 | * Copyright 2018-2019 Rafael Acosta Alvarez
6 | *
7 | * Licensed under the Apache License, Version 2.0 (the "License");
8 | * you may not use this file except in compliance with the License.
9 | * You may obtain a copy of the License at
10 | *
11 | * http://www.apache.org/licenses/LICENSE-2.0
12 | *
13 | * Unless required by applicable law or agreed to in writing, software
14 | * distributed under the License is distributed on an "AS IS" BASIS,
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 | * See the License for the specific language governing permissions and
17 | * limitations under the License.
18 | */
19 |
20 | package es.rafaco.inappdevtools.demo.api;
21 |
22 | public class Change {
23 | String subject;
24 |
25 | public String getSubject() {
26 | return subject;
27 | }
28 |
29 | public void setSubject(String subject) {
30 | this.subject = subject;
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/demo/src/main/res/drawable/ic_settings_white_24dp.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/flex_separator.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
27 |
28 |
--------------------------------------------------------------------------------
/3party-licenses/codeview-LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2016-2017 Tiago Melo
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable/ic_settings_white_24dp.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/demo/src/main/java/es/rafaco/inappdevtools/demo/api/GerritAPI.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This source file is part of InAppDevTools, which is available under
3 | * Apache License, Version 2.0 at https://github.com/rafaco/InAppDevTools
4 | *
5 | * Copyright 2018-2019 Rafael Acosta Alvarez
6 | *
7 | * Licensed under the Apache License, Version 2.0 (the "License");
8 | * you may not use this file except in compliance with the License.
9 | * You may obtain a copy of the License at
10 | *
11 | * http://www.apache.org/licenses/LICENSE-2.0
12 | *
13 | * Unless required by applicable law or agreed to in writing, software
14 | * distributed under the License is distributed on an "AS IS" BASIS,
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 | * See the License for the specific language governing permissions and
17 | * limitations under the License.
18 | */
19 |
20 | package es.rafaco.inappdevtools.demo.api;
21 |
22 | import java.util.List;
23 |
24 | import retrofit2.Call;
25 | import retrofit2.http.GET;
26 | import retrofit2.http.Query;
27 |
28 | public interface GerritAPI {
29 |
30 | @GET("changes/")
31 | Call> loadChanges(@Query("q") String status);
32 | }
33 |
--------------------------------------------------------------------------------
/.idea/copyright/CursorAdapter_NOTICE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/flexible_item_button_group_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
28 |
29 |
--------------------------------------------------------------------------------
/demo/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
13 |
14 |
15 |
16 |
17 |
18 |
24 |
25 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/noop/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.library'
2 | apply from: '../gradle/constants.gradle'
3 | apply from: 'publish.gradle'
4 |
5 | android {
6 | compileSdkVersion PROJECT_COMPILE_SDK
7 | buildToolsVersion PROJECT_BUILD_TOOLS
8 |
9 | defaultConfig {
10 | minSdkVersion PROJECT_MIN_SDK
11 | targetSdkVersion PROJECT_TARGET_SDK
12 | versionCode PROJECT_VERSION_CODE
13 | versionName PROJECT_VERSION
14 |
15 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
16 | }
17 |
18 | compileOptions {
19 | targetCompatibility PROJECT_TARGET_COMPATIBILITY
20 | sourceCompatibility PROJECT_SOURCE_COMPATIBILITY
21 | }
22 |
23 | buildTypes {
24 | release {
25 | minifyEnabled false
26 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
27 | }
28 | }
29 | }
30 |
31 | dependencies {
32 | testImplementation "junit:junit:$JUNIT_VERSION"
33 | androidTestImplementation "com.android.support.test:runner:$SUPPORT_TEST_RUNNER"
34 | androidTestImplementation "com.android.support.test.espresso:espresso-core:$SUPPORT_TEST_ESPRESSO"
35 | }
36 |
37 |
38 | sonarqube {
39 | androidVariant 'debug'
40 | }
41 |
--------------------------------------------------------------------------------
/library/src/main/res/menu/screen_net.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/website/src/js/map-active.js:
--------------------------------------------------------------------------------
1 | var map;
2 | var latlng = new google.maps.LatLng(40.730610, -73.935242);
3 | var stylez = [{
4 | featureType: "all",
5 | elementType: "all",
6 | stylers: [{
7 | saturation: -10
8 | }]
9 | }];
10 | var mapOptions = {
11 | zoom: 15,
12 | center: latlng,
13 | scrollwheel: false,
14 | scaleControl: false,
15 | disableDefaultUI: true,
16 | mapTypeControlOptions: {
17 | mapTypeIds: [google.maps.MapTypeId.ROADMAP, 'gMap']
18 | }
19 | };
20 | map = new google.maps.Map(document.getElementById("googleMap"), mapOptions);
21 | var geocoder_map = new google.maps.Geocoder();
22 | var address = 'New york';
23 | geocoder_map.geocode({
24 | 'address': address
25 | }, function (results, status) {
26 | if (status == google.maps.GeocoderStatus.OK) {
27 | map.setCenter(results[0].geometry.location);
28 | var marker = new google.maps.Marker({
29 | map: map,
30 | position: map.getCenter()
31 | });
32 | } else {
33 | alert("Geocode was not successful for the following reason: " + status);
34 | }
35 | });
36 | var mapType = new google.maps.StyledMapType(stylez, {
37 | name: "Grayscale"
38 | });
39 | map.mapTypes.set('gMap', mapType);
40 | map.setMapTypeId('gMap');
--------------------------------------------------------------------------------
/library/src/main/res/drawable/toggle_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/flex_group_recycler.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/flex_button_borderless.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
32 |
33 |
--------------------------------------------------------------------------------
/library/src/main/java/es/rafaco/inappdevtools/library/storage/files/utils/IOUtil.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This source file is part of InAppDevTools, which is available under
3 | * Apache License, Version 2.0 at https://github.com/rafaco/InAppDevTools
4 | *
5 | * Copyright 2018-2020 Rafael Acosta Alvarez
6 | *
7 | * Licensed under the Apache License, Version 2.0 (the "License");
8 | * you may not use this file except in compliance with the License.
9 | * You may obtain a copy of the License at
10 | *
11 | * http://www.apache.org/licenses/LICENSE-2.0
12 | *
13 | * Unless required by applicable law or agreed to in writing, software
14 | * distributed under the License is distributed on an "AS IS" BASIS,
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 | * See the License for the specific language governing permissions and
17 | * limitations under the License.
18 | */
19 |
20 | package es.rafaco.inappdevtools.library.storage.files.utils;
21 |
22 | import java.io.Closeable;
23 |
24 | public final class IOUtil {
25 | private IOUtil() {}
26 |
27 | public static void closeQuietly(Closeable... closeables) {
28 | for (Closeable c : closeables) {
29 | if (c != null) {
30 | try {
31 | c.close();
32 | } catch (Exception ex) {}
33 | }
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/library/src/main/java/es/rafaco/inappdevtools/library/view/components/base/ContainerFlexData.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This source file is part of InAppDevTools, which is available under
3 | * Apache License, Version 2.0 at https://github.com/rafaco/InAppDevTools
4 | *
5 | * Copyright 2018-2020 Rafael Acosta Alvarez
6 | *
7 | * Licensed under the Apache License, Version 2.0 (the "License");
8 | * you may not use this file except in compliance with the License.
9 | * You may obtain a copy of the License at
10 | *
11 | * http://www.apache.org/licenses/LICENSE-2.0
12 | *
13 | * Unless required by applicable law or agreed to in writing, software
14 | * distributed under the License is distributed on an "AS IS" BASIS,
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 | * See the License for the specific language governing permissions and
17 | * limitations under the License.
18 | */
19 |
20 | package es.rafaco.inappdevtools.library.view.components.base;
21 |
22 | public class ContainerFlexData extends FlexData {
23 |
24 | protected FlexData child;
25 |
26 | public ContainerFlexData(FlexData child) {
27 | super();
28 | this.child = child;
29 | }
30 |
31 | public FlexData getChild() {
32 | return child;
33 | }
34 |
35 | public void setChild(FlexData child) {
36 | this.child = child;
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/flex_item_button_icon.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
31 |
32 |
--------------------------------------------------------------------------------
/library/src/main/java/es/rafaco/inappdevtools/library/storage/files/IadtFileProvider.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This source file is part of InAppDevTools, which is available under
3 | * Apache License, Version 2.0 at https://github.com/rafaco/InAppDevTools
4 | *
5 | * Copyright 2018-2019 Rafael Acosta Alvarez
6 | *
7 | * Licensed under the Apache License, Version 2.0 (the "License");
8 | * you may not use this file except in compliance with the License.
9 | * You may obtain a copy of the License at
10 | *
11 | * http://www.apache.org/licenses/LICENSE-2.0
12 | *
13 | * Unless required by applicable law or agreed to in writing, software
14 | * distributed under the License is distributed on an "AS IS" BASIS,
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 | * See the License for the specific language governing permissions and
17 | * limitations under the License.
18 | */
19 |
20 | package es.rafaco.inappdevtools.library.storage.files;
21 |
22 | //#ifdef ANDROIDX
23 | //@import androidx.core.content.FileProvider;
24 | //#else
25 | import android.support.v4.content.FileProvider;
26 | //#endif
27 |
28 | public class IadtFileProvider extends FileProvider {
29 | // This class is intentionally empty and only referenced in our library manifest
30 | // We extend it to avoid collision and to allow default FileProvider implementation
31 | // at host app
32 | }
33 |
--------------------------------------------------------------------------------
/library/src/main/java/es/rafaco/inappdevtools/library/storage/prefs/utils/LastLogcatPrefs.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This source file is part of InAppDevTools, which is available under
3 | * Apache License, Version 2.0 at https://github.com/rafaco/InAppDevTools
4 | *
5 | * Copyright 2018-2019 Rafael Acosta Alvarez
6 | *
7 | * Licensed under the Apache License, Version 2.0 (the "License");
8 | * you may not use this file except in compliance with the License.
9 | * You may obtain a copy of the License at
10 | *
11 | * http://www.apache.org/licenses/LICENSE-2.0
12 | *
13 | * Unless required by applicable law or agreed to in writing, software
14 | * distributed under the License is distributed on an "AS IS" BASIS,
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 | * See the License for the specific language governing permissions and
17 | * limitations under the License.
18 | */
19 |
20 | package es.rafaco.inappdevtools.library.storage.prefs.utils;
21 |
22 | import es.rafaco.inappdevtools.library.storage.prefs.IadtPrefs;
23 |
24 | public class LastLogcatPrefs {
25 |
26 | public static final String PREF_VALUE_KEY = "LAST_LOGCAT";
27 |
28 | public static Long get(){
29 | return IadtPrefs.getLong(PREF_VALUE_KEY, 0);
30 | }
31 |
32 | public static void set(long value){
33 | IadtPrefs.setLong(PREF_VALUE_KEY, value);
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/library/src/main/java/es/rafaco/inappdevtools/library/storage/prefs/utils/DatabaseVersionPrefs.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This source file is part of InAppDevTools, which is available under
3 | * Apache License, Version 2.0 at https://github.com/rafaco/InAppDevTools
4 | *
5 | * Copyright 2018-2020 Rafael Acosta Alvarez
6 | *
7 | * Licensed under the Apache License, Version 2.0 (the "License");
8 | * you may not use this file except in compliance with the License.
9 | * You may obtain a copy of the License at
10 | *
11 | * http://www.apache.org/licenses/LICENSE-2.0
12 | *
13 | * Unless required by applicable law or agreed to in writing, software
14 | * distributed under the License is distributed on an "AS IS" BASIS,
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 | * See the License for the specific language governing permissions and
17 | * limitations under the License.
18 | */
19 |
20 | package es.rafaco.inappdevtools.library.storage.prefs.utils;
21 |
22 | import es.rafaco.inappdevtools.library.storage.prefs.IadtPrefs;
23 |
24 | public class DatabaseVersionPrefs {
25 |
26 | public static final String PREF_VALUE_KEY = "DATABASE_VERSION";
27 |
28 | public static int get(){
29 | return IadtPrefs.getInt(PREF_VALUE_KEY, -1);
30 | }
31 |
32 | public static void set(int value){
33 | IadtPrefs.setInt(PREF_VALUE_KEY, value);
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/flex_item_button.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
31 |
32 |
--------------------------------------------------------------------------------
/library/src/main/java/es/rafaco/inappdevtools/library/storage/prefs/utils/FirstStartPrefs.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This source file is part of InAppDevTools, which is available under
3 | * Apache License, Version 2.0 at https://github.com/rafaco/InAppDevTools
4 | *
5 | * Copyright 2018-2019 Rafael Acosta Alvarez
6 | *
7 | * Licensed under the Apache License, Version 2.0 (the "License");
8 | * you may not use this file except in compliance with the License.
9 | * You may obtain a copy of the License at
10 | *
11 | * http://www.apache.org/licenses/LICENSE-2.0
12 | *
13 | * Unless required by applicable law or agreed to in writing, software
14 | * distributed under the License is distributed on an "AS IS" BASIS,
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 | * See the License for the specific language governing permissions and
17 | * limitations under the License.
18 | */
19 |
20 | package es.rafaco.inappdevtools.library.storage.prefs.utils;
21 |
22 | import es.rafaco.inappdevtools.library.storage.prefs.IadtPrefs;
23 |
24 | public class FirstStartPrefs {
25 |
26 | public static final String PREF_VALUE_KEY = "IS_FIRST_START";
27 |
28 | public static boolean isFirstStart(){
29 | return IadtPrefs.getBoolean(PREF_VALUE_KEY, true);
30 | }
31 |
32 | public static void saveFirstStart(){
33 | IadtPrefs.setBoolean(PREF_VALUE_KEY, false);
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/noop/src/main/java/es/rafaco/inappdevtools/library/logic/config/BuildConfigField.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This source file is part of InAppDevTools, which is available under
3 | * Apache License, Version 2.0 at https://github.com/rafaco/InAppDevTools
4 | *
5 | * Copyright 2018-2019 Rafael Acosta Alvarez
6 | *
7 | * Licensed under the Apache License, Version 2.0 (the "License");
8 | * you may not use this file except in compliance with the License.
9 | * You may obtain a copy of the License at
10 | *
11 | * http://www.apache.org/licenses/LICENSE-2.0
12 | *
13 | * Unless required by applicable law or agreed to in writing, software
14 | * distributed under the License is distributed on an "AS IS" BASIS,
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 | * See the License for the specific language governing permissions and
17 | * limitations under the License.
18 | */
19 |
20 | package es.rafaco.inappdevtools.library.logic.config;
21 |
22 | public enum BuildConfigField {
23 |
24 | ENABLED(),
25 | ENABLED_ON_RELEASE(),
26 | DEBUG(),
27 | SOURCE_INCLUSION(),
28 | SOURCE_INSPECTION(),
29 |
30 | NOTES(),
31 | TEAM_NAME(),
32 | TEAM_EMAIL(),
33 | TEAM_DESC(),
34 | TEAM_LINKS(),
35 |
36 | OVERLAY_ENABLED(),
37 | INVOCATION_BY_SHAKE(),
38 | INVOCATION_BY_ICON(),
39 | CALL_DEFAULT_CRASH_HANDLER(),
40 | INJECT_EVENTS_ON_LOGCAT(),
41 | }
42 |
--------------------------------------------------------------------------------
/library/src/main/java/es/rafaco/inappdevtools/library/logic/utils/ListUtils.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This source file is part of InAppDevTools, which is available under
3 | * Apache License, Version 2.0 at https://github.com/rafaco/InAppDevTools
4 | *
5 | * Copyright 2018-2020 Rafael Acosta Alvarez
6 | *
7 | * Licensed under the Apache License, Version 2.0 (the "License");
8 | * you may not use this file except in compliance with the License.
9 | * You may obtain a copy of the License at
10 | *
11 | * http://www.apache.org/licenses/LICENSE-2.0
12 | *
13 | * Unless required by applicable law or agreed to in writing, software
14 | * distributed under the License is distributed on an "AS IS" BASIS,
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 | * See the License for the specific language governing permissions and
17 | * limitations under the License.
18 | */
19 |
20 | package es.rafaco.inappdevtools.library.logic.utils;
21 |
22 | import java.util.ArrayList;
23 | import java.util.Collection;
24 | import java.util.List;
25 |
26 | public class ListUtils {
27 |
28 | private ListUtils() { throw new IllegalStateException("Utility class"); }
29 |
30 | public static List cast(Class extends T> clazz, Collection> c) {
31 | List r = new ArrayList<>(c.size());
32 | for(Object o: c)
33 | r.add(clazz.cast(o));
34 | return r;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/compat/src/main/java/es/rafaco/compat/AppBarLayout.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This source file is part of InAppDevTools, which is available under
3 | * Apache License, Version 2.0 at https://github.com/rafaco/InAppDevTools
4 | *
5 | * Copyright 2018-2019 Rafael Acosta Alvarez
6 | *
7 | * Licensed under the Apache License, Version 2.0 (the "License");
8 | * you may not use this file except in compliance with the License.
9 | * You may obtain a copy of the License at
10 | *
11 | * http://www.apache.org/licenses/LICENSE-2.0
12 | *
13 | * Unless required by applicable law or agreed to in writing, software
14 | * distributed under the License is distributed on an "AS IS" BASIS,
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 | * See the License for the specific language governing permissions and
17 | * limitations under the License.
18 | */
19 |
20 | package es.rafaco.compat;
21 |
22 | import android.content.Context;
23 | import android.util.AttributeSet;
24 |
25 | //#ifdef ANDROIDX
26 | //@public class AppBarLayout extends com.google.android.material.appbar.AppBarLayout {
27 | //#else
28 | public class AppBarLayout extends android.support.design.widget.AppBarLayout {
29 | //#endif
30 |
31 | public AppBarLayout(Context context) {
32 | super(context);
33 | }
34 |
35 | public AppBarLayout(Context context, AttributeSet attrs) {
36 | super(context, attrs);
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/library/src/main/java/es/rafaco/inappdevtools/library/storage/prefs/utils/PrivacyConsentPrefs.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This source file is part of InAppDevTools, which is available under
3 | * Apache License, Version 2.0 at https://github.com/rafaco/InAppDevTools
4 | *
5 | * Copyright 2018-2019 Rafael Acosta Alvarez
6 | *
7 | * Licensed under the Apache License, Version 2.0 (the "License");
8 | * you may not use this file except in compliance with the License.
9 | * You may obtain a copy of the License at
10 | *
11 | * http://www.apache.org/licenses/LICENSE-2.0
12 | *
13 | * Unless required by applicable law or agreed to in writing, software
14 | * distributed under the License is distributed on an "AS IS" BASIS,
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 | * See the License for the specific language governing permissions and
17 | * limitations under the License.
18 | */
19 |
20 | package es.rafaco.inappdevtools.library.storage.prefs.utils;
21 |
22 | import es.rafaco.inappdevtools.library.storage.prefs.IadtPrefs;
23 |
24 | public class PrivacyConsentPrefs {
25 |
26 | public static final String PREF_VALUE_KEY = "IS_PRIVACY_ACCEPTED";
27 |
28 | public static boolean isAccepted(){
29 | return IadtPrefs.getBoolean(PREF_VALUE_KEY, false);
30 | }
31 |
32 | public static void saveAccepted(){
33 | IadtPrefs.setBoolean(PREF_VALUE_KEY, true);
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/demo/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
14 |
15 |
21 |
22 |
23 |
24 |
30 |
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------