Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
1
1weather
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitriy Stepanets
1weather
Commits
eaad2e8f
Commit
eaad2e8f
authored
Sep 10, 2021
by
Demid Merzlyakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IOS-155: hardcode default subscription ids and enable subscriptions by default.
parent
ff2092c0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
18 deletions
+18
-18
1Weather/Configuration/LocalConfig.plist
+13
-13
OneWeatherCore/OneWeatherCore/ModelObjects/Config/Subscriptions/SubscriptionsListConfig.swift
+5
-5
No files found.
1Weather/Configuration/LocalConfig.plist
View file @
eaad2e8f
...
@@ -4,19 +4,19 @@
...
@@ -4,19 +4,19 @@
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
ios_subscription_config
<
/k
e
y
>
<
k
e
y
>
ios_subscription_config
<
/k
e
y
>
<
string
>{
<
string
>{
&
quot
;
subscriptions_enabled
&
quot
;
:
fals
e
,
&
quot
;
subscriptions_enabled
&
quot
;
:
tru
e
,
&
quot
;
monthly
&
quot
;
:
{
&
quot
;
monthly
&
quot
;
:
{
&
quot
;
product_id
&
quot
;
:
&
quot
;
&
quot
;
&
quot
;
product_id
&
quot
;
:
&
quot
;
com.onelouder.oneweather.subscription.premium
&
quot
;
}
,
}
,
&
quot
;
yearly
&
quot
;
:
{
&
quot
;
yearly
&
quot
;
:
{
&
quot
;
product_id
&
quot
;
:
&
quot
;
&
quot
;
&
quot
;
product_id
&
quot
;
:
&
quot
;
com.onelouder.oneweather.subscription.premium.yearly
&
quot
;
}
,
}
,
&
quot
;
monthly_discounted
&
quot
;
:
{
&
quot
;
monthly_discounted
&
quot
;
:
{
&
quot
;
product_id
&
quot
;
:
&
quot
;
&
quot
;
&
quot
;
product_id
&
quot
;
:
&
quot
;
com.onelouder.oneweather.subscription.premium.forpro
&
quot
;
}
,
}
,
&
quot
;
yearly_discounted
&
quot
;
:
{
&
quot
;
yearly_discounted
&
quot
;
:
{
&
quot
;
product_id
&
quot
;
:
&
quot
;
&
quot
;
&
quot
;
product_id
&
quot
;
:
&
quot
;
com.onelouder.oneweather.subscription.premium.yearly.forPro
&
quot
;
}
}
}<
/string
>
}<
/string
>
<
k
e
y
>
search_screen_popular_cities
<
/k
e
y
>
<
k
e
y
>
search_screen_popular_cities
<
/k
e
y
>
<
string
>
[
{
&
quot
;
lat
&
quot
;
:
&
quot
;
40.7127
&
quot
;
,&
quot
;
lon
&
quot
;
:
&
quot
;
-74.006
&
quot
;
,&
quot
;
city
&
quot
;
:
&
quot
;
New
York
&
quot
;
,&
quot
;
state
&
quot
;
:
&
quot
;
New
York
&
quot
;
,&
quot
;
stateCode
&
quot
;
:
&
quot
;
NY
&
quot
;
,&
quot
;
country
&
quot
;
:
&
quot
;
United
States
of
America
&
quot
;
,&
quot
;
countryCode
&
quot
;
:
&
quot
;
US
&
quot
;
,&
quot
;
order
&
quot
;
:1
}
,
{
&
quot
;
lat
&
quot
;
:
&
quot
;
41.8756
&
quot
;
,&
quot
;
lon
&
quot
;
:
&
quot
;
-87.6244
&
quot
;
,&
quot
;
city
&
quot
;
:
&
quot
;
Chicago
&
quot
;
,&
quot
;
state
&
quot
;
:
&
quot
;
Illinois
&
quot
;
,&
quot
;
stateCode
&
quot
;
:
&
quot
;
IL
&
quot
;
,&
quot
;
country
&
quot
;
:
&
quot
;
United
States
of
America
&
quot
;
,&
quot
;
countryCode
&
quot
;
:
&
quot
;
US
&
quot
;
,&
quot
;
order
&
quot
;
:2
}
,
{
&
quot
;
lat
&
quot
;
:
&
quot
;
29.7589
&
quot
;
,&
quot
;
lon
&
quot
;
:
&
quot
;
-95.3677
&
quot
;
,&
quot
;
city
&
quot
;
:
&
quot
;
Houston
&
quot
;
,&
quot
;
state
&
quot
;
:
&
quot
;
Texas
&
quot
;
,&
quot
;
stateCode
&
quot
;
:
&
quot
;
TX
&
quot
;
,&
quot
;
country
&
quot
;
:
&
quot
;
United
States
of
America
&
quot
;
,&
quot
;
countryCode
&
quot
;
:
&
quot
;
US
&
quot
;
,&
quot
;
order
&
quot
;
:3
}
,
{
&
quot
;
lat
&
quot
;
:
&
quot
;
34.0537
&
quot
;
,&
quot
;
lon
&
quot
;
:
&
quot
;
-118.243
&
quot
;
,&
quot
;
city
&
quot
;
:
&
quot
;
Los
Angeles
&
quot
;
,&
quot
;
state
&
quot
;
:
&
quot
;
California
&
quot
;
,&
quot
;
stateCode
&
quot
;
:
&
quot
;
CA
&
quot
;
,&
quot
;
country
&
quot
;
:
&
quot
;
United
States
of
America
&
quot
;
,&
quot
;
countryCode
&
quot
;
:
&
quot
;
US
&
quot
;
,&
quot
;
order
&
quot
;
:4
}
,
{
&
quot
;
lat
&
quot
;
:
&
quot
;
29.4246
&
quot
;
,&
quot
;
lon
&
quot
;
:
&
quot
;
-98.4951
&
quot
;
,&
quot
;
city
&
quot
;
:
&
quot
;
San
Antonio
&
quot
;
,&
quot
;
state
&
quot
;
:
&
quot
;
Texas
&
quot
;
,&
quot
;
stateCode
&
quot
;
:
&
quot
;
TX
&
quot
;
,&
quot
;
country
&
quot
;
:
&
quot
;
United
States
of
America
&
quot
;
,&
quot
;
countryCode
&
quot
;
:
&
quot
;
US
&
quot
;
,&
quot
;
order
&
quot
;
:5
}
,
{
&
quot
;
lat
&
quot
;
:
&
quot
;
39.7683
&
quot
;
,&
quot
;
lon
&
quot
;
:
&
quot
;
-86.1584
&
quot
;
,&
quot
;
city
&
quot
;
:
&
quot
;
Indianapolis
&
quot
;
,&
quot
;
state
&
quot
;
:
&
quot
;
Indiana
&
quot
;
,&
quot
;
stateCode
&
quot
;
:
&
quot
;
IN
&
quot
;
,&
quot
;
country
&
quot
;
:
&
quot
;
United
States
of
America
&
quot
;
,&
quot
;
countryCode
&
quot
;
:
&
quot
;
US
&
quot
;
,&
quot
;
order
&
quot
;
:6
}
,
{
&
quot
;
lat
&
quot
;
:
&
quot
;
39.9527
&
quot
;
,&
quot
;
lon
&
quot
;
:
&
quot
;
-75.1635
&
quot
;
,&
quot
;
city
&
quot
;
:
&
quot
;
Philadelphia
&
quot
;
,&
quot
;
state
&
quot
;
:
&
quot
;
Pennsylvania
&
quot
;
,&
quot
;
stateCode
&
quot
;
:
&
quot
;
PA
&
quot
;
,&
quot
;
country
&
quot
;
:
&
quot
;
United
States
of
America
&
quot
;
,&
quot
;
countryCode
&
quot
;
:
&
quot
;
US
&
quot
;
,&
quot
;
order
&
quot
;
:7
}
,
{
&
quot
;
lat
&
quot
;
:
&
quot
;
36.1673
&
quot
;
,&
quot
;
lon
&
quot
;
:
&
quot
;
-115.149
&
quot
;
,&
quot
;
city
&
quot
;
:
&
quot
;
Las
Vegas
&
quot
;
,&
quot
;
state
&
quot
;
:
&
quot
;
Nevada
&
quot
;
,&
quot
;
stateCode
&
quot
;
:
&
quot
;
NV
&
quot
;
,&
quot
;
country
&
quot
;
:
&
quot
;
United
States
of
America
&
quot
;
,&
quot
;
countryCode
&
quot
;
:
&
quot
;
US
&
quot
;
,&
quot
;
order
&
quot
;
:8
}
,
{
&
quot
;
lat
&
quot
;
:
&
quot
;
39.9623
&
quot
;
,&
quot
;
lon
&
quot
;
:
&
quot
;
-83.0007
&
quot
;
,&
quot
;
city
&
quot
;
:
&
quot
;
Columbus
&
quot
;
,&
quot
;
state
&
quot
;
:
&
quot
;
Ohio
&
quot
;
,&
quot
;
stateCode
&
quot
;
:
&
quot
;
OH
&
quot
;
,&
quot
;
country
&
quot
;
:
&
quot
;
United
States
of
America
&
quot
;
,&
quot
;
countryCode
&
quot
;
:
&
quot
;
US
&
quot
;
,&
quot
;
order
&
quot
;
:9
}
,
{
&
quot
;
lat
&
quot
;
:
&
quot
;
30.3322
&
quot
;
,&
quot
;
lon
&
quot
;
:
&
quot
;
-81.6557
&
quot
;
,&
quot
;
city
&
quot
;
:
&
quot
;
Jacksonville
&
quot
;
,&
quot
;
state
&
quot
;
:
&
quot
;
Florida
&
quot
;
,&
quot
;
stateCode
&
quot
;
:
&
quot
;
FL
&
quot
;
,&
quot
;
country
&
quot
;
:
&
quot
;
United
States
of
America
&
quot
;
,&
quot
;
countryCode
&
quot
;
:
&
quot
;
US
&
quot
;
,&
quot
;
order
&
quot
;
:10
}
]
<
/string
>
<
string
>
[
{
&
quot
;
lat
&
quot
;
:
&
quot
;
40.7127
&
quot
;
,&
quot
;
lon
&
quot
;
:
&
quot
;
-74.006
&
quot
;
,&
quot
;
city
&
quot
;
:
&
quot
;
New
York
&
quot
;
,&
quot
;
state
&
quot
;
:
&
quot
;
New
York
&
quot
;
,&
quot
;
stateCode
&
quot
;
:
&
quot
;
NY
&
quot
;
,&
quot
;
country
&
quot
;
:
&
quot
;
United
States
of
America
&
quot
;
,&
quot
;
countryCode
&
quot
;
:
&
quot
;
US
&
quot
;
,&
quot
;
order
&
quot
;
:1
}
,
{
&
quot
;
lat
&
quot
;
:
&
quot
;
41.8756
&
quot
;
,&
quot
;
lon
&
quot
;
:
&
quot
;
-87.6244
&
quot
;
,&
quot
;
city
&
quot
;
:
&
quot
;
Chicago
&
quot
;
,&
quot
;
state
&
quot
;
:
&
quot
;
Illinois
&
quot
;
,&
quot
;
stateCode
&
quot
;
:
&
quot
;
IL
&
quot
;
,&
quot
;
country
&
quot
;
:
&
quot
;
United
States
of
America
&
quot
;
,&
quot
;
countryCode
&
quot
;
:
&
quot
;
US
&
quot
;
,&
quot
;
order
&
quot
;
:2
}
,
{
&
quot
;
lat
&
quot
;
:
&
quot
;
29.7589
&
quot
;
,&
quot
;
lon
&
quot
;
:
&
quot
;
-95.3677
&
quot
;
,&
quot
;
city
&
quot
;
:
&
quot
;
Houston
&
quot
;
,&
quot
;
state
&
quot
;
:
&
quot
;
Texas
&
quot
;
,&
quot
;
stateCode
&
quot
;
:
&
quot
;
TX
&
quot
;
,&
quot
;
country
&
quot
;
:
&
quot
;
United
States
of
America
&
quot
;
,&
quot
;
countryCode
&
quot
;
:
&
quot
;
US
&
quot
;
,&
quot
;
order
&
quot
;
:3
}
,
{
&
quot
;
lat
&
quot
;
:
&
quot
;
34.0537
&
quot
;
,&
quot
;
lon
&
quot
;
:
&
quot
;
-118.243
&
quot
;
,&
quot
;
city
&
quot
;
:
&
quot
;
Los
Angeles
&
quot
;
,&
quot
;
state
&
quot
;
:
&
quot
;
California
&
quot
;
,&
quot
;
stateCode
&
quot
;
:
&
quot
;
CA
&
quot
;
,&
quot
;
country
&
quot
;
:
&
quot
;
United
States
of
America
&
quot
;
,&
quot
;
countryCode
&
quot
;
:
&
quot
;
US
&
quot
;
,&
quot
;
order
&
quot
;
:4
}
,
{
&
quot
;
lat
&
quot
;
:
&
quot
;
29.4246
&
quot
;
,&
quot
;
lon
&
quot
;
:
&
quot
;
-98.4951
&
quot
;
,&
quot
;
city
&
quot
;
:
&
quot
;
San
Antonio
&
quot
;
,&
quot
;
state
&
quot
;
:
&
quot
;
Texas
&
quot
;
,&
quot
;
stateCode
&
quot
;
:
&
quot
;
TX
&
quot
;
,&
quot
;
country
&
quot
;
:
&
quot
;
United
States
of
America
&
quot
;
,&
quot
;
countryCode
&
quot
;
:
&
quot
;
US
&
quot
;
,&
quot
;
order
&
quot
;
:5
}
,
{
&
quot
;
lat
&
quot
;
:
&
quot
;
39.7683
&
quot
;
,&
quot
;
lon
&
quot
;
:
&
quot
;
-86.1584
&
quot
;
,&
quot
;
city
&
quot
;
:
&
quot
;
Indianapolis
&
quot
;
,&
quot
;
state
&
quot
;
:
&
quot
;
Indiana
&
quot
;
,&
quot
;
stateCode
&
quot
;
:
&
quot
;
IN
&
quot
;
,&
quot
;
country
&
quot
;
:
&
quot
;
United
States
of
America
&
quot
;
,&
quot
;
countryCode
&
quot
;
:
&
quot
;
US
&
quot
;
,&
quot
;
order
&
quot
;
:6
}
,
{
&
quot
;
lat
&
quot
;
:
&
quot
;
39.9527
&
quot
;
,&
quot
;
lon
&
quot
;
:
&
quot
;
-75.1635
&
quot
;
,&
quot
;
city
&
quot
;
:
&
quot
;
Philadelphia
&
quot
;
,&
quot
;
state
&
quot
;
:
&
quot
;
Pennsylvania
&
quot
;
,&
quot
;
stateCode
&
quot
;
:
&
quot
;
PA
&
quot
;
,&
quot
;
country
&
quot
;
:
&
quot
;
United
States
of
America
&
quot
;
,&
quot
;
countryCode
&
quot
;
:
&
quot
;
US
&
quot
;
,&
quot
;
order
&
quot
;
:7
}
,
{
&
quot
;
lat
&
quot
;
:
&
quot
;
36.1673
&
quot
;
,&
quot
;
lon
&
quot
;
:
&
quot
;
-115.149
&
quot
;
,&
quot
;
city
&
quot
;
:
&
quot
;
Las
Vegas
&
quot
;
,&
quot
;
state
&
quot
;
:
&
quot
;
Nevada
&
quot
;
,&
quot
;
stateCode
&
quot
;
:
&
quot
;
NV
&
quot
;
,&
quot
;
country
&
quot
;
:
&
quot
;
United
States
of
America
&
quot
;
,&
quot
;
countryCode
&
quot
;
:
&
quot
;
US
&
quot
;
,&
quot
;
order
&
quot
;
:8
}
,
{
&
quot
;
lat
&
quot
;
:
&
quot
;
39.9623
&
quot
;
,&
quot
;
lon
&
quot
;
:
&
quot
;
-83.0007
&
quot
;
,&
quot
;
city
&
quot
;
:
&
quot
;
Columbus
&
quot
;
,&
quot
;
state
&
quot
;
:
&
quot
;
Ohio
&
quot
;
,&
quot
;
stateCode
&
quot
;
:
&
quot
;
OH
&
quot
;
,&
quot
;
country
&
quot
;
:
&
quot
;
United
States
of
America
&
quot
;
,&
quot
;
countryCode
&
quot
;
:
&
quot
;
US
&
quot
;
,&
quot
;
order
&
quot
;
:9
}
,
{
&
quot
;
lat
&
quot
;
:
&
quot
;
30.3322
&
quot
;
,&
quot
;
lon
&
quot
;
:
&
quot
;
-81.6557
&
quot
;
,&
quot
;
city
&
quot
;
:
&
quot
;
Jacksonville
&
quot
;
,&
quot
;
state
&
quot
;
:
&
quot
;
Florida
&
quot
;
,&
quot
;
stateCode
&
quot
;
:
&
quot
;
FL
&
quot
;
,&
quot
;
country
&
quot
;
:
&
quot
;
United
States
of
America
&
quot
;
,&
quot
;
countryCode
&
quot
;
:
&
quot
;
US
&
quot
;
,&
quot
;
order
&
quot
;
:10
}
]
<
/string
>
...
...
OneWeatherCore/OneWeatherCore/ModelObjects/Config/Subscriptions/SubscriptionsListConfig.swift
View file @
eaad2e8f
...
@@ -24,11 +24,11 @@ public struct SubscriptionsListConfig {
...
@@ -24,11 +24,11 @@ public struct SubscriptionsListConfig {
}
}
public
init
()
{
public
init
()
{
self
.
subscriptionsEnabled
=
fals
e
self
.
subscriptionsEnabled
=
tru
e
self
.
monthly
=
SubscriptionConfig
(
productId
:
""
)
self
.
monthly
=
SubscriptionConfig
(
productId
:
"
com.onelouder.oneweather.subscription.premium
"
)
self
.
yearly
=
SubscriptionConfig
(
productId
:
""
)
self
.
yearly
=
SubscriptionConfig
(
productId
:
"
com.onelouder.oneweather.subscription.premium.yearly
"
)
self
.
monthlyDiscounted
=
SubscriptionConfig
(
productId
:
""
)
self
.
monthlyDiscounted
=
SubscriptionConfig
(
productId
:
"
com.onelouder.oneweather.subscription.premium.forpro
"
)
self
.
yearlyDiscounted
=
SubscriptionConfig
(
productId
:
""
)
self
.
yearlyDiscounted
=
SubscriptionConfig
(
productId
:
"
com.onelouder.oneweather.subscription.premium.yearly.forPro
"
)
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment